Replaced the id system with a simple flag for deletion

This commit is contained in:
lustlion
2022-03-17 11:46:10 +01:00
parent 8edcbe2d9b
commit 410c00dcd4
10 changed files with 74 additions and 62 deletions

View File

@@ -36,8 +36,6 @@ function CursedBook:new(x,y)
light_data.color = nil
o.light = Light:new(o.pos.x,o.pos.y,light_data)
o:id()
setmetatable(o, self)
self.__index = self
return o