demoplayback fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3100 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-17 19:51:25 +00:00
parent 894d2b6343
commit 61114a6177
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -755,7 +755,7 @@ void enddemoplayback()
gzclose(demoplayback);
demoplayback = NULL;
sendf(-1, 1, "rii", SV_DEMOPLAYBACK, 0);
loopv(clients) sendf(i, 1, "ri3", SV_DEMOPLAYBACK, 0, i);
sendservmsg("demo playback finished");
@@ -790,7 +790,7 @@ void setupdemoplayback()
s_sprintf(msg)("playing demo \"%s\"", file);
sendservmsg(msg);
sendf(-1, 1, "rii", SV_DEMOPLAYBACK, 1);
sendf(-1, 1, "ri3", SV_DEMOPLAYBACK, 1, -1);
if(gzread(demoplayback, &nextplayback, sizeof(nextplayback))!=sizeof(nextplayback))
{