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