fix for players not spawning correctly in demos (fix doesn't seem to break anything, but please confirm)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6773 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2012-03-30 11:46:00 +00:00
parent 71a69d0248
commit 17c20e4ebc
+1 -4
View File
@@ -653,10 +653,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
s->selectweapon(gunselect);
loopi(NUMGUNS) s->ammo[i] = getint(p);
loopi(NUMGUNS) s->mag[i] = getint(p);
//2011oct16:flowtron:keep spectator state
//possible fubar here - trying out ATM!
bool cws = s->state == CS_SPECTATE;
s->state = cws?CS_SPECTATE:CS_SPAWNING;
s->state = CS_SPAWNING;
if(s->lifesequence==0) s->resetstats(); //NEW
break;
}