Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions mp/src/game/server/neo/neo_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,13 @@ void CNEO_Player::Precache( void )

void CNEO_Player::Spawn(void)
{
ShowViewPortPanel(PANEL_SPECGUI, (GetTeamNumber() == TEAM_SPECTATOR ? true : false));
int teamNumber = GetTeamNumber();
ShowViewPortPanel(PANEL_SPECGUI, teamNumber == TEAM_SPECTATOR);

if (teamNumber == TEAM_JINRAI || teamNumber == TEAM_NSF)
{
State_Transition(STATE_ACTIVE);
}

// Should do this class update first, because most of the stuff below depends on which player class we are.
if ((m_iNextSpawnClassChoice != -1) && (m_iNeoClass != m_iNextSpawnClassChoice))
Expand Down Expand Up @@ -2403,8 +2409,6 @@ bool CNEO_Player::ProcessTeamSwitchRequest(int iTeam)
}

StopObserverMode();

State_Transition(STATE_ACTIVE);
}
else
{
Expand Down