no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1090 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-06-02 18:05:57 +00:00
parent 54db4fac29
commit ff6a1a2fb3
4 changed files with 11 additions and 4 deletions
-2
View File
@@ -642,8 +642,6 @@ void *kickmenu = NULL, *banmenu = NULL, *forceteammenu = NULL, *givemastermenu =
void refreshsopmenu(void *menu, bool init)
{
if(!init) return;
int item = 0;
mlines.setsize(0);
loopv(players) if(players[i])
+1 -1
View File
@@ -97,7 +97,7 @@ extern int VIRTW; // virtual screen size for text & HUD
#include "protos.h" // external function decls
#define AC_VERSION 920
#define AC_VERSION 930
#endif
+1 -1
View File
@@ -4,7 +4,7 @@
#define CUBE_SERVER_PORT 28763
#define CUBE_SERVINFO_PORT 28764
#define PROTOCOL_VERSION 1125 // bump when protocol changes
#define SAVEGAMEVERSION 1007 // bump if dynent/netprotocol changes or any other savegame/demo data bumped from 5
#define SAVEGAMEVERSION 1008 // bump if dynent/netprotocol changes or any other savegame/demo data bumped from 5
// network messages codes, c2s, c2c, s2c
enum
+9
View File
@@ -201,8 +201,16 @@ void incomingdemodata(int chan, uchar *buf, int len, bool extras)
}
}
void settingsbackup(bool save)
{
static string name;
if(save) s_strcpy(name, player1->name);
else s_strcpy(player1->name, name);
}
void demo(char *name)
{
settingsbackup(true);
s_sprintfd(fn)("demos/%s.cdgz", name);
loadstate(fn);
demoloading = true;
@@ -213,6 +221,7 @@ void stopreset()
conoutf("demo stopped (%d msec elapsed)", lastmillis-starttime);
player1 = newplayerent();
disconnect(0, 0);
settingsbackup(false);
}
VAR(demoplaybackspeed, 10, 100, 1000);