Skip to content

Commit 3fccd5a

Browse files
authored
fix: Random exit from creation screen on click (Adeptus-Dominus#462)
1 parent e16ff1d commit 3fccd5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

objects/obj_main_menu_buttons/Step_0.gml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ if (room_get_name(room)="Creation"){
77
xx=x;yy=y;
88
var _spr_height = sprite_get_height(spr_mm_butts_small) * 2;
99
var _spr_width = sprite_get_width(spr_mm_butts_small) * 2;
10-
if (scr_hit(xx,yy,xx+_spr_width,yy+_spr_height)=true) and (fading=0) then hover[1]=1;
10+
if (scr_hit(xx,yy,xx+_spr_width,yy+_spr_height) && fading==0) {
11+
hover[1]=1; //hovering on exit
12+
} else {
13+
hover[1]=0; //not hovering on exit
14+
}
1115
if (cooldown>0) then cooldown-=1;
1216
if (fading=0) and (fade>0) then fade-=1;
1317
if (fading=1) and ((fade<40) or (crap>0) or (button=1)) then fade+=1;

0 commit comments

Comments
 (0)