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:
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user