Pārlūkot izejas kodu

Fix last standing player suicide

Was colliding with the last tile put after the end of the round, because
this tile was added while the player was still colliding.
DricomDragon 5 gadi atpakaļ
vecāks
revīzija
51084d9750
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Player.gd

+ 1 - 1
Player.gd

@@ -92,7 +92,7 @@ func _on_tween_completed(_o, key):
 		move()
 
 func _on_crash(body):
-	if landed:
+	if landed and running:
 		stop()
 		# TODO : use enum for blocks
 		grid.set_cell(posix, posiy, 2)