tchegito / zildo

The Land of Alembrume
GNU Lesser General Public License v3.0
4 stars 1 forks source link

[2.41] Respawning turtles #129

Closed tchegito closed 6 years ago

tchegito commented 6 years ago

When hero scrolls from a map containing moving turtle, the latter are kept. So when hero returns on the previous map, there is double turtles !

Actually, that could happen with any characters moving by script, so he's declared 'ghost'. He will be kept after a scroll.

That could lead to critical situations, and may cause unresolved issues for now (issue #128 or issue #122).

tchegito commented 6 years ago

[2.42] First fix, just for turtles + UT

4c11a9a2a7ce3ab14b97626d9fe3fb9ef5497a00

tchegito commented 6 years ago

[Fixed in 2.44]

Now we don't need heuristics anymore ;)

After a map scroll, we removed any entities that remains on previous map, except if their target is on current one.

41bea3d9834f8ab8bc2d9873a0307dcb4e89214d