forked from team-sg/hero-mark-2
fixed issue where inputted cheat paused the game
This commit is contained in:
parent
e744920cb9
commit
f11679100c
2 changed files with 4 additions and 1 deletions
|
@ -81,6 +81,7 @@ func _input(event):
|
|||
if entry:
|
||||
if event.scancode == KEY_ENTER:
|
||||
_enter_code()
|
||||
Game.set_deferred("can_pause",true)
|
||||
entry = false
|
||||
code = ""
|
||||
elif event.scancode == KEY_BACKSPACE:
|
||||
|
@ -98,6 +99,7 @@ func _input(event):
|
|||
|
||||
func _on_entry():
|
||||
Game.play_sound(Game.a_star, Game.ac_cheat)
|
||||
Game.can_pause = false
|
||||
|
||||
func _enter_code():
|
||||
match code:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue