]> git.deb.at Git - rhonda/impostor.git/commitdiff
Always store previous color
authorminiduikboot <mini@duikbo.at>
Sat, 4 Jan 2025 20:10:20 +0000 (21:10 +0100)
committerminiduikboot <mini@duikbo.at>
Thu, 22 May 2025 21:48:50 +0000 (23:48 +0200)
Because it's only restored in standard SA networking, the stored value
will be ignored in HA. This is preferred to logging when in HA mode

src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs

index e9cec15ca5b7ff4377a27c7421637ac80b8c759a..a35e7464596674c75fcd1cfed9f1b06a1ad17011 100644 (file)
@@ -846,7 +846,7 @@ namespace Impostor.Server.Net.Inner.Objects
             PlayerInfo.CurrentOutfit.Color = color;
 
             // Record the color so it can be restored on the next game
-            if (!Game.IsHostAuthoritive && Game.TryGetPlayer(OwnerId, out var clientPlayer))
+            if (Game.TryGetPlayer(OwnerId, out var clientPlayer))
             {
                 clientPlayer.Client.PreviousColor = color;
             }