From 8587b087d9c686dd4a35a4f90c56856249f704e6 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 27 Dec 2004 18:46:43 +0000 Subject: A few minor changes... --- Dalos/Dalos.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Dalos') diff --git a/Dalos/Dalos.cc b/Dalos/Dalos.cc index 6ab2153..bbfdadf 100644 --- a/Dalos/Dalos.cc +++ b/Dalos/Dalos.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Dalos.cc,v 1.12 2004-12-26 03:29:10 pixel Exp $ */ +/* $Id: Dalos.cc,v 1.13 2004-12-27 18:46:43 pixel Exp $ */ #include #include @@ -48,6 +48,8 @@ #define main SDL_main #endif + +// all these global variables are ugly... bool auto_exec = true; bool lua_started = false; bool do_lua_break = false; @@ -196,7 +198,7 @@ class myprinter : public printer_t { SDL_mutexP(lock); - vsprintf(buffer, m, ap); + vsnprintf(buffer, 20479, m, ap); if (level >= 0) CurrentConsole->add_line("(" + heads[level] + ") " + buffer); else @@ -322,7 +324,8 @@ virtual int startup() throw (GeneralException) { CurrentConsole = new console(sh, Root, 0, 8); console::create_console_thread(); CurrentConsole->move(0, Root->GetH() - CurrentConsole->GetH()); - CurrentConsole->add_line("Dalos v0.1 - LUA console"); + CurrentConsole->add_line("Dalos v0.1 - LUA console - Press ESC to show/hide it."); + CurrentConsole->SetVisible(true); printer = new myprinter(); locker = new threaded_locker(); -- cgit v1.2.3