fix: avoids crashes in case of input when room is run directly and interrupted; may look at updating room manager in the future
This commit is contained in:
1 parent
9e247a9218
commit
ff178541fc
4 files changed
+5
-4
No files matched your search
@@ -72,4 +72,5 @@ func run(command_params: Array) -> int:
|
|||||||
|
|
||||||
# Function called when the command is interrupted.
|
# Function called when the command is interrupted.
|
||||||
func interrupt():
|
func interrupt():
|
||||||
walking_object_node.stop_walking_now()
|
if walking_object_node != null:
|
||||||
|
walking_object_node.stop_walking_now()
|
||||||
@@ -73,5 +73,5 @@ func run(command_params: Array) -> int:
|
|||||||
|
|
||||||
# Function called when the command is interrupted.
|
# Function called when the command is interrupted.
|
||||||
func interrupt():
|
func interrupt():
|
||||||
if not walking_object_node is ESCPlayer:
|
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||||
walking_object_node.stop_walking_now()
|
walking_object_node.stop_walking_now()
|
||||||
@@ -62,5 +62,5 @@ func run(command_params: Array) -> int:
|
|||||||
|
|
||||||
# Function called when the command is interrupted.
|
# Function called when the command is interrupted.
|
||||||
func interrupt():
|
func interrupt():
|
||||||
if not walking_object_node is ESCPlayer:
|
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||||
walking_object_node.stop_walking_now()
|
walking_object_node.stop_walking_now()
|
||||||
@@ -66,5 +66,5 @@ func run(command_params: Array) -> int:
|
|||||||
|
|
||||||
# Function called when the command is interrupted.
|
# Function called when the command is interrupted.
|
||||||
func interrupt():
|
func interrupt():
|
||||||
if not walking_object_node is ESCPlayer:
|
if walking_object_node != null and not walking_object_node is ESCPlayer:
|
||||||
walking_object_node.stop_walking_now()
|
walking_object_node.stop_walking_now()
|
||||||
Reference in new issue
Block a user