mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed /pause making u return as a Team 0 Player
This commit is contained in:
parent
a80ac35cb9
commit
4f3d086b92
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ public:
|
|||
int m_HammerType;
|
||||
bool m_Super;
|
||||
int m_PauseTime;
|
||||
int m_Team;
|
||||
} m_PauseInfo;
|
||||
bool m_InfoSaved;
|
||||
void LoadCharacter();
|
||||
|
|
Loading…
Reference in a new issue