dont' reset sleeps on mapchange (fixes going from multiplayer to singleplayer), debug cleanups

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3167 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-10-21 19:59:40 +00:00
parent 849f7a692b
commit 005b7ee93c
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -669,7 +669,7 @@ COMMAND(gamemodedesc, ARG_2STR);
void resetmap()
{
resetsleep();
//resetsleep();
clearminimap();
cleardynlights();
pruneundos();
+1 -1
View File
@@ -5,7 +5,7 @@
#include "bot/bot.h"
VARP(networkdebug, 0, 0, 1);
#define DEBUGCOND (networkdebug)
#define DEBUGCOND (networkdebug==1)
extern bool c2sinit, senditemstoserver, watchingdemo;
extern string clientpassword;
+2 -1
View File
@@ -6,8 +6,9 @@
#ifdef _DEBUG
bool protocoldbg = false;
#define DEBUGCOND (protocoldbg)
void protocoldebug(bool enable) { protocoldbg = enable; }
extern int networkdebug;
#define DEBUGCOND (protocoldbg && networkdebug==1)
#endif
// all network traffic is in 32bit ints, which are then compressed using the following simple scheme (assumes that most values are small).