Use "not" instead of the exclamation mark in GDScript files

Also add String casts
This commit is contained in:
Aaron Franke
2021-06-28 23:30:05 -04:00
parent 7bfc57d1ae
commit 7e129db12e
30 changed files with 67 additions and 66 deletions

View File

@@ -28,7 +28,7 @@ func _input(event):
if event is InputEventMouseMotion:
r_pos = -event.relative
if event.is_action("ui_cancel") and event.is_pressed() and !event.is_echo():
if event.is_action("ui_cancel") and event.is_pressed() and not event.is_echo():
if (state == STATE_GRAB):
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
state = STATE_MENU