rewind a demo, set time remaining

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6424 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lucas GAUTHERON
2011-05-14 12:11:51 +00:00
parent 79dc0e46e2
commit 414572e574
6 changed files with 74 additions and 14 deletions
+3 -1
View File
@@ -1268,7 +1268,9 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_DEMOPLAYBACK:
{
watchingdemo = demoplayback = getint(p)!=0;
extern string demofile;
getstring(demofile, p);
watchingdemo = demoplayback = demofile && demofile[0];
if(demoplayback)
{
player1->resetspec();