Zone:doQuake

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Zone:doQuake

#1 Post by HousePet »

I thought I'd have a look into why Rotting Titan was causing lots of clone bugs everywhere last time I saw it.

I believe the error is in mod\class\Zone\doQuake.
To move entities it uses: e.x = nil e.y = nil e:move(l.x, l.y, true)
By setting e.x and e.y to nil, it is causing the move function to skip calling map:remove on the tile to remove the entity.
This causes the entity to be located in two tiles at once, as far as the map is concerned.
e.x = nil e.y = nil should be removed.
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply