Removed the olddeadflag from CPlayer and moved the spawn forward into the PStatus Client Message

This commit is contained in:
Zor
2007-12-28 19:13:24 +00:00
parent 60b3f30ab3
commit e6c8afa5de
5 changed files with 15 additions and 8 deletions

View File

@ -43,7 +43,6 @@ void CPlayer::Disconnect()
bot = false;
savedScore = 0;
olddeadflag = 0;
oldteam = 0;
oldclass = 0;
oldprone = 0;
@ -138,7 +137,6 @@ void CPlayer::Init( int pi, edict_t* pe )
ingame = false;
bot = false;
savedScore = 0;
olddeadflag = 0;
oldteam = 0;
oldclass = 0;
oldprone = 0;
@ -370,10 +368,6 @@ void CPlayer::PreThink()
if(!ingame || ignoreBots(pEdict))
return;
// Died in the normal way
if(olddeadflag != 0 && pEdict->v.deadflag == 0 && iFSpawnForward != -1)
MF_ExecuteForward(iFSpawnForward, index);
if(oldteam != pEdict->v.team && iFTeamForward != -1)
MF_ExecuteForward(iFTeamForward, index, pEdict->v.team, oldteam);
@ -391,7 +385,6 @@ void CPlayer::PreThink()
// Set the old variables for
oldprone = pEdict->v.iuser3;
olddeadflag = pEdict->v.deadflag;
oldteam = pEdict->v.team;
oldclass = pEdict->v.playerclass;
oldstamina = pEdict->v.fuser4;