SpiderZord
Out to lunch
Originally posted by Nexushyper
... On the subject of teleport, is it possible to 'refresh' the memory so it realizes where the unit now is. It seems to me, and this is just a guess, that when you teleport the unit that some where else in memory is a reference to the image of that unit on the map. (If that makes sense?) Perhaps the map itself has a placemarker for all units and that when you teleport a unit it gets them out of sync? (Or maybe I'm very far off and have no clue what I'm talking about)
Teleport was by far the most complicated function to create. Not only the actual unit coordinates, but their previous turn coordinates (for directional facing) and the unit index at the map tile location are updated... but I'm still missing something. I spent a quite a bit of time looking for what was missing, but I had to move on for sanity reasons. I may revisit that code at some point...


