mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 23:10:08 +01:00
Use "not" instead of the exclamation mark in GDScript files
Also add String casts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user