mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
commit
c323e178d9
|
@ -1590,9 +1590,13 @@ void CCharacter::HandleTiles(int Index)
|
||||||
}
|
}
|
||||||
|
|
||||||
// unlock team
|
// 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);
|
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
|
// solo part
|
||||||
|
|
Loading…
Reference in a new issue