Flash gamepad LED when invul or grow

This commit is contained in:
Alug committed 2024-08-09 20:41:29 +02:00
1 parent 15fd488e0d
commit f2e0b4dbc0
1 file changed
+3
+3
View File
@@ -889,6 +889,9 @@ 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]))
return players[displayplayers[player]].mo->color;
if (players[displayplayers[player]].skincolor && gamestate == GS_LEVEL)
return players[displayplayers[player]].skincolor;