Disambiguate skyVisible from global variable

This commit is contained in:
Eidolon 2022-10-28 15:19:20 -05:00
parent 1b884dd8f2
commit 6db1496aaa

View file

@ -819,8 +819,8 @@ void P_Ticker(boolean run)
for (i = 0; i <= splitscreen; i++)
{
player_t *player = &players[displayplayers[i]];
boolean skyVisible = skyVisiblePerPlayer[i];
if (skyVisible && skyboxmo[0] && cv_skybox.value)
boolean isSkyVisibleForPlayer = skyVisiblePerPlayer[i];
if (isSkyVisibleForPlayer && skyboxmo[0] && cv_skybox.value)
{
R_SkyboxFrame(player);
}