*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@476 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-06 00:29:50 +00:00
parent 32d145ed05
commit b150789808
31 changed files with 8802 additions and 5542 deletions
+4 -2
View File
@@ -160,11 +160,12 @@ void record(char *name)
void demodamage(int damage, vec &o) { ddamage = damage; dorig = o; };
void demoblend(int damage) { bdamage = damage; };
void incomingdemodata(uchar *buf, int len, bool extras)
void incomingdemodata(int chan, uchar *buf, int len, bool extras)
{
if(!demorecording) return;
gzputi(lastmillis-starttime);
gzputi(len);
gzput(chan);
gzwrite(f, buf, len);
gzput(extras);
if(extras)
@@ -264,9 +265,10 @@ void demoplaybackstep()
stopreset();
return;
};
int chan = gzget();
uchar buf[MAXTRANS];
gzread(f, buf, len);
localservertoclient(0, buf, len); // update game state
localservertoclient(chan, buf, len); // update game state
dynent *target = players[democlientnum];
ASSERT(target);