AGS: fix all_buttons_disabled check condition

completes commit c77989f2603cc1ff6d8ca27bf62668b16707bcb6
This commit is contained in:
Walter Agazzi 2024-03-28 11:46:10 +01:00
parent 6c8e783e4a
commit 2bcaa19756

View File

@ -1993,7 +1993,7 @@ void draw_gui_and_overlays() {
// If not adding gui controls as textures, simply move the resulting sprlist to render
if (!draw_controls_as_textures ||
(_G(all_buttons_disabled) && (GUI::Options.DisabledStyle == kGuiDis_Blackout))) {
(_G(all_buttons_disabled >= 0) && (GUI::Options.DisabledStyle == kGuiDis_Blackout))) {
draw_sprite_list(false);
put_sprite_list_on_screen(false);
return;