Always store previous color

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
This commit is contained in:
miniduikboot committed 2025-05-22 23:48:50 +02:00
1 parent 104376b43f
commit c672e19e99
1 file changed
+1 -1
@@ -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;
}