Pre 1.8 release

Added Spectator gamemode
master
nesco 2014-09-16 20:04:17 +02:00
parent 8dedbe4db5
commit 120b23d65e
1 changed files with 8 additions and 0 deletions

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) void cPlayer::SetTeam(cTeam * a_Team)
{ {