From 01e14e08013140664274417ce4040f883856be2a Mon Sep 17 00:00:00 2001 From: false_genesis Date: Wed, 29 Apr 2009 23:08:54 +0000 Subject: [PATCH] * possibly fixed linux build * made standard conf more secure + some cleanups --- bin/conf/PseuWoW.conf.default | 20 ++++++++++---------- src/Client/GUI/GUIEventReceiver.h | 6 +++--- src/Client/GUI/SceneCharselection.cpp | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/bin/conf/PseuWoW.conf.default b/bin/conf/PseuWoW.conf.default index cc97578..3f10294 100644 --- a/bin/conf/PseuWoW.conf.default +++ b/bin/conf/PseuWoW.conf.default @@ -10,7 +10,10 @@ [#uppercase] [#noprefix] -// 3=max, 0=no debug output +// 0 - No debug output (white text) (Default) +// 1 - Log some details (cyan text) +// 2 - Full debug log (dark blue text) +// 3 - Even more debug logging (purple text, useful only for developers) debug=0 // log time to console? @@ -31,7 +34,7 @@ softquit=1 // default: 5000 ms (5 secs) reconnect=5000 -// 0 - show none +// 0 - show none (Default) // 1 - show only known/handled // 2 - show only unknown/unhandled // 3 - show all @@ -84,19 +87,19 @@ NetworkSleepTime=1 // defines if players may say/yell/whisper commands to PseuWoW // set this to 0 and PseuWoW will not react to given commands -allowgamecmd=1 +allowgamecmd=0 // enable this if you plan to enter commands on the console enablecli=1 // enable's chat ai which makes you bot respond to simple senteces // like "Hi" and "What do you think of x" etc. -enablechatai=1 +enablechatai=0 // show ping responses -notifyping=1 +notifyping=0 -// shows the opcodes pseuwow sends to the server +// show the opcodes pseuwow sends to the server? showmyopcodes=0 // disable the check for learned spells. @@ -107,12 +110,9 @@ disablespellcheck=0 // will be used for all sendchatmessage calls. remove number/leave blank // to use the default language for your race (defined in race.scp) -defaultlang=0 +defaultlang= // set this to 1 if you want to have a 3D-window showing stuff -// NOTE: this is only to activate the window for now, 3D-stuff will come later!! -// until some frame-limiter is implemented, it will always use 100% CPU usage when -// the GUI is enabled and activated. (if its in background - way less CPU load.) enablegui=0 // options for remote control: diff --git a/src/Client/GUI/GUIEventReceiver.h b/src/Client/GUI/GUIEventReceiver.h index adee742..674c453 100644 --- a/src/Client/GUI/GUIEventReceiver.h +++ b/src/Client/GUI/GUIEventReceiver.h @@ -75,7 +75,7 @@ public: inline bool HasKeyEvent(void) { return keyeventqueue.size(); } - inline SEvent::SMouseInput NextMouseEvent(void) + inline const SEvent::SMouseInput NextMouseEvent(void) { ASSERT(HasMouseEvent()) const SEvent::SMouseInput ev = mouseeventqueue.front(); @@ -83,7 +83,7 @@ public: return ev; } - inline SEvent::SGUIEvent NextGUIEvent(void) + inline const SEvent::SGUIEvent NextGUIEvent(void) { ASSERT(HasGUIEvent()) SEvent::SGUIEvent ev = guieventqueue.front(); @@ -91,7 +91,7 @@ public: return ev; } - inline SEvent::SKeyInput NextKeyEvent(void) + inline const SEvent::SKeyInput NextKeyEvent(void) { ASSERT(HasKeyEvent()) SEvent::SKeyInput ev = keyeventqueue.front(); diff --git a/src/Client/GUI/SceneCharselection.cpp b/src/Client/GUI/SceneCharselection.cpp index d68b216..97d82f1 100644 --- a/src/Client/GUI/SceneCharselection.cpp +++ b/src/Client/GUI/SceneCharselection.cpp @@ -110,7 +110,7 @@ void SceneCharSelection::OnUpdate(s32 timepassed) // treat doubleclick on listboxes as OK button click if(eventrecv->HasGUIEvent()) { - SEvent::SGUIEvent& ev = eventrecv->NextGUIEvent(); + const SEvent::SGUIEvent& ev = eventrecv->NextGUIEvent(); if(ev.EventType == EGET_LISTBOX_SELECTED_AGAIN) { if(ev.Caller == realmlistbox)