Always use parentheses when calling assert() in GDScript

This is now required since Godot 3.2.

This also adds an assert message to the Godot interfaces page to match
its C# counterpart.
This commit is contained in:
Hugo Locurcio
2020-04-09 14:46:36 +02:00
parent 0400142b96
commit 32d9019e5e
2 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ Here is a complete class example based on these guidelines:
return
var target_state = get_node(target_state_path)
assert target_state.is_composite == false
assert(target_state.is_composite == false)
_state.exit()
self._state = target_state
@@ -635,7 +635,7 @@ in that order.
return
var target_state = get_node(target_state_path)
assert target_state.is_composite == false
assert(target_state.is_composite == false)
_state.exit()
self._state = target_state