Menu

#633 Hang in dungeon after teleport up spell

open
nobody
None
5
2012-03-06
2012-03-06
No

I had teleported up from lvl 7 of wrong to lvl 6 (trying to end up in the hallway with the sleep fields and the fountain, as I was low on health). When I got there, I didn't immediately recognize the surroundings, so I turned left a few times and was hung. I fired up a debugger and it was in the do/while loop in Location::getReplacementTile() and never met the conditions to exit it. It's possible that I ended up teleporting to a non-walkable tile (I don't know for sure), but I wrote a patch that will work-around the problem and assure that it will at least render grass rather than hang.

The patch also contains some (very) minor cleanups to performance issues (making dirs & dirs_per_step const static assures that compiler will treat them as compile-time constants and promote optimizations).

Discussion

  • daniel_santos

    daniel_santos - 2012-03-06
    • summary: Hang in dungeon after teleport down spell --> Hang in dungeon after teleport up spell
     

Log in to post a comment.