From 949cdbf79bbb9b6788cd6af4f561273a018614b5 Mon Sep 17 00:00:00 2001 From: a327ex Date: Sat, 22 May 2021 01:32:45 -0300 Subject: [PATCH] Bug fix --- player.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/player.lua b/player.lua index af57fed..6c9d07b 100644 --- a/player.lua +++ b/player.lua @@ -2216,6 +2216,7 @@ Critter:implement(Physics) Critter:implement(Unit) function Critter:init(args) self:init_game_object(args) + if tostring(self.x) == tostring(0/0) or tostring(self.y) == tostring(0/0) then self.dead = true; return end self:init_unit() self:set_as_rectangle(7, 4, 'dynamic', 'player') self:set_restitution(0.5)