- fix logic error with shader compatibility layer

This commit is contained in:
Rachael Alexanderson 2022-01-21 16:40:04 -05:00
parent 4c4fafc2c0
commit 2ab4539d40

View file

@ -704,7 +704,7 @@ struct Shader native
// This interface was deprecated for the pointless player dependency
private static bool IsConsolePlayer(PlayerInfo player)
{
return player && !player.mo && player == players[consoleplayer];
return player && player.mo && player == players[consoleplayer];
}
deprecated("4.8", "Use PPShader.SetEnabled() instead") clearscope static void SetEnabled(PlayerInfo player, string shaderName, bool enable)
{