From: Rhonda D'Vine Date: Sat, 5 Sep 2026 17:35:03 +0000 (+0200) Subject: fix snitch bug with evil lobby host X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;ds=inline;p=rhonda%2Ftheotherroles.git fix snitch bug with evil lobby host When the lobby host is a an evil role it isn't shown due to a race condition in cleaning the playerRoom too quickly. Moving the cleaning room gives the host time to send the correct information before it gets cleaned. --- diff --git a/TheOtherRoles/Patches/MeetingPatch.cs b/TheOtherRoles/Patches/MeetingPatch.cs index f022048..05e1dd5 100644 --- a/TheOtherRoles/Patches/MeetingPatch.cs +++ b/TheOtherRoles/Patches/MeetingPatch.cs @@ -749,6 +749,7 @@ namespace TheOtherRoles.Patches { output += "- " + RoleInfo.GetRolesString(p, false, false, true) + ", was last seen " + roomName + "\n"; } FastDestroyableSingleton.Instance.Chat.AddChat(Snitch.snitch, $"{output}"); + Snitch.playerRoomMap = new Dictionary(); } }))); } @@ -757,7 +758,6 @@ namespace TheOtherRoles.Patches { if (PlayerControl.LocalPlayer.Data.IsDead && output != "") FastDestroyableSingleton.Instance.Chat.AddChat(PlayerControl.LocalPlayer, $"{output}"); Trapper.playersOnMap = new (); - Snitch.playerRoomMap = new Dictionary(); // Remove revealed traps Trap.clearRevealedTraps();