Fixed /pause making u return as a Team 0 Player

This commit is contained in:
GreYFoXGTi 2010-11-22 09:21:02 +02:00
parent a80ac35cb9
commit 4f3d086b92
2 changed files with 5 additions and 0 deletions

View file

@ -274,6 +274,8 @@ void CPlayer::LoadCharacter()
Character->m_LastWeapon = m_PauseInfo.m_LastWeapon;
Character->m_HammerType = m_PauseInfo.m_HammerType;
Character->m_Super = m_PauseInfo.m_Super;
CGameControllerDDRace* Controller = (CGameControllerDDRace*)GameServer()->m_pController;
Controller->m_Teams.m_Core.Team(GetCID(), m_PauseInfo.m_Team);
m_PauseInfo.m_Respawn = false;
m_InfoSaved = false;
}
@ -302,6 +304,8 @@ void CPlayer::SaveCharacter()
m_PauseInfo.m_LastWeapon = Character->m_LastWeapon;
m_PauseInfo.m_HammerType = Character->m_HammerType;
m_PauseInfo.m_Super = Character->m_Super;
CGameControllerDDRace* Controller = (CGameControllerDDRace*)GameServer()->m_pController;
m_PauseInfo.m_Team = Controller->m_Teams.m_Core.Team(GetCID());
m_PauseInfo.m_PauseTime = Server()->Tick();
//m_PauseInfo.m_RefreshTime = Character->m_RefreshTime;
}

View file

@ -58,6 +58,7 @@ public:
int m_HammerType;
bool m_Super;
int m_PauseTime;
int m_Team;
} m_PauseInfo;
bool m_InfoSaved;
void LoadCharacter();