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