1
0

Pre 1.8 release

Added Spectator gamemode
This commit is contained in:
nesco 2014-09-16 20:04:17 +02:00
parent 8dedbe4db5
commit 120b23d65e

View File

@ -1043,6 +1043,14 @@ bool cPlayer::IsGameModeAdventure(void) const
bool cPlayer::IsGameModeSpectator(void) const
{
return (m_GameMode == gmSpectator) || // Either the player is explicitly in Spectator
((m_GameMode == gmNotSet) && m_World->IsGameModeSpectator()); // or they inherit from the world and the world is Adventure
}
void cPlayer::SetTeam(cTeam * a_Team)
{