From 6607fcd7b36face8280b0cc147151a49f63f8b71 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 16 Dec 2012 14:51:15 +0000 Subject: [PATCH] curmodeattr fix (also fixes survival mode for me), svn protocol bumped (to avoid conflicts between beta and SVN) git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6980 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 2 +- source/src/protocol.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 291abd04..b4cbceb8 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -233,7 +233,7 @@ COMMAND(benchme, ""); COMMANDF(isclient, "i", (int *cn) { intret(getclient(*cn) != NULL ? 1 : 0); } ); COMMANDF(curmastermode, "", (void) { intret(servstate.mastermode); }); COMMANDF(curautoteam, "", (void) { intret(servstate.autoteam); }); -COMMAND(curmodeattr, ""); +COMMAND(curmodeattr, "s"); COMMANDF(curmap, "i", (int *cleaned) { result(*cleaned ? behindpath(getclientmap()) : getclientmap()); }); COMMANDF(curplayers, "", (void) { intret(players.length() + 1); }); VARP(showscoresondeath, 0, 1, 1); diff --git a/source/src/protocol.h b/source/src/protocol.h index ac53f904..882efa92 100644 --- a/source/src/protocol.h +++ b/source/src/protocol.h @@ -5,7 +5,7 @@ #define CUBE_SERVINFO_PORT_LAN 28762 #define CUBE_SERVINFO_PORT(serverport) (serverport+1) #define CUBE_SERVINFO_TO_SERV_PORT(servinfoport) (servinfoport-1) -#define PROTOCOL_VERSION 1144 // bump when protocol changes (use negative numbers for mods!) +#define PROTOCOL_VERSION 1145 // bump when protocol changes (use negative numbers for mods!) #define DEMO_VERSION 2 // bump when demo format changes #define DEMO_MAGIC "ASSAULTCUBE_DEMO" #define DEMO_MINTIME 10000 // don't keep demo recordings with less than 10 seconds