Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
Fix missing message, if the host tries to change the settings while t…
Browse files Browse the repository at this point in the history
…he game is in progress
  • Loading branch information
Wunax committed Jan 19, 2021
1 parent 853c49e commit 8e9edae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AnonymousImpostorsMod/PlayerControlPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public static bool Prefix(PlayerControl __instance, string PGIBDIEPGIC)
}
if (GameData.currentGame.GameState == GameStates.Started)
{

HudManager.IAINKLDJAGC.Chat.AddChat(localPlayer.PlayerControl, "You cannot change this setting while the game is in progress.");
HudManager.IAINKLDJAGC.Chat.TextArea.SetText(string.Empty);
return false;
}
string[] args = msg.Split(' ');
if (msg.StartsWith("/anonymous", StringComparison.InvariantCultureIgnoreCase))
Expand Down

0 comments on commit 8e9edae

Please sign in to comment.