switching between spect modes, demo recording fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1462 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-15 20:45:02 +00:00
parent 1da623b451
commit ad52973b6f
8 changed files with 35 additions and 32 deletions
+6 -2
View File
@@ -605,9 +605,13 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_DEMOPLAYBACK:
{
int on = getint(p);
if(on) { player1->state = CS_SPECTATE; } // player1->state = CS_SPECTATOR; // fixme,ah
if(on)
{
player1->state = CS_SPECTATE;
player1->spectating = SM_FLY;
}
//else stopdemo();
else callvote(SA_STOPDEMO);
else callvote(SA_STOPDEMO); // FIXME
demoplayback = on!=0;
break;
}