Skip to content

Commit 6b54a88

Browse files
committed
fix requirement for announces, when captain uses it
1 parent 7a9a770 commit 6b54a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoundStuff/Announce.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool onClientProcessChat( CRules@ this, const string& in textIn, string& out tex
4848
string[]@ tokens = textIn.split(" ");
4949
u8 tlen = tokens.length;
5050

51-
if (textIn.find("!") == 0 && player.getTeamNum() == getLocalPlayer().getTeamNum() && player.isMod() || textIn.find("!") == 0 && (getRules().get_string("team_" + teamNum + "_leader") == player.getUsername()))
51+
if (textIn.find("!") == 0 && player.getTeamNum() == getLocalPlayer().getTeamNum() && player.isMod() || textIn.find("!") == 0 && player.getTeamNum() == getLocalPlayer().getTeamNum() && (getRules().get_string("team_" + teamNum + "_leader") == player.getUsername()))
5252
{
5353
Sound::Play(sound + "AnnounceSound.ogg");
5454
string alert = textIn;

0 commit comments

Comments
 (0)