Merge pull request #510 from timakro/pr_unlock_team_tile_msg

Send chat message when team is unlocked by a tile
This commit is contained in:
Dennis Felsing 2016-07-03 23:22:51 +02:00 committed by GitHub
commit c323e178d9

View file

@ -1590,9 +1590,13 @@ void CCharacter::HandleTiles(int Index)
}
// unlock team
else if((m_TileIndex == TILE_UNLOCK_TEAM) || (m_TileFIndex == TILE_UNLOCK_TEAM))
else if(((m_TileIndex == TILE_UNLOCK_TEAM) || (m_TileFIndex == TILE_UNLOCK_TEAM)) && Teams()->TeamLocked(Team()))
{
Teams()->SetTeamLock(Team(), false);
for(int i = 0; i < MAX_CLIENTS; i++)
if(Teams()->m_Core.Team(i) == Team())
GameServer()->SendChatTarget(i, "Your team was unlocked by a unlock team tile.");
}
// solo part