also do this when player gets invul "power"

This commit is contained in:
Alug committed 2024-08-14 12:49:05 +02:00
1 parent 6eca8150f1
commit 23f839dc19
1 file changed
+1 -1
+1 -1
View File
@@ -889,7 +889,7 @@ INT32 G_GetDeviceForPlayer(INT32 player)
inline UINT16 G_GetSkinColor(INT32 player)
{
if (gamestate == GS_LEVEL && (players[displayplayers[player]].kartstuff[k_invincibilitytimer] || players[displayplayers[player]].kartstuff[k_growshrinktimer]))
if (gamestate == GS_LEVEL && (players[displayplayers[player]].kartstuff[k_invincibilitytimer] || players[displayplayers[player]].powers[pw_invulnerability] || players[displayplayers[player]].kartstuff[k_growshrinktimer]))
return players[displayplayers[player]].mo->color;
if (players[displayplayers[player]].skincolor && gamestate == GS_LEVEL)