mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Send chat message when team is unlocked by a tile
This commit is contained in:
parent
35bd378a62
commit
96d05e3370
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue