Skip to content

Commit

Permalink
fix weird globalvar crash
Browse files Browse the repository at this point in the history
  • Loading branch information
omicronrex committed Oct 23, 2024
1 parent 44a0adb commit cc04aea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions source/gm82core.gml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
globalvar delta_time,fps_real,fps_fast;
globalvar __gm82core_timer,__gm82core_fpsmem,__gm82core_fps_queue;
globalvar __gm82core_pixel;
globalvar __gm82core_hasfocus;

globalvar __gm82core_index_sprites; __gm82core_index_sprites=noone
globalvar __gm82core_index_sounds; __gm82core_index_sounds=noone
Expand Down
6 changes: 3 additions & 3 deletions source/system.gml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
#define mouse_back_button
///mouse_back_button()
//returns: whether the mouse's back nav button is currently pressed.
if (gm82core_object.__gm82core_hasfocus) {
if (__gm82core_hasfocus) {
keyboard_check_direct(5)
return keyboard_check_direct(5)
}
Expand All @@ -119,7 +119,7 @@
///mouse_forward_button()
//returns: whether the mouse's forward nav button is currently pressed.

if (gm82core_object.__gm82core_hasfocus) {
if (__gm82core_hasfocus) {
keyboard_check_direct(6)
return keyboard_check_direct(6)
}
Expand Down Expand Up @@ -192,7 +192,7 @@
///window_has_focus()
//returns: whether the game window is currently in front and accepting input.

return gm82core_object.__gm82core_hasfocus
return __gm82core_hasfocus


#define file_find_list
Expand Down

0 comments on commit cc04aea

Please sign in to comment.