]> granicus.if.org Git - nethack/commit
hero location bookkeeping bit
authornethack.rankin <nethack.rankin>
Sat, 25 Feb 2006 06:48:52 +0000 (06:48 +0000)
committernethack.rankin <nethack.rankin>
Sat, 25 Feb 2006 06:48:52 +0000 (06:48 +0000)
commitbc4f46665288808d592cd0f45244cbbcc4685b37
tree1c958c590b873a9ad02ae476b5c8204276c5d08b
parent8308afc75cc2c841f161184ad5aa581a56d39869
hero location bookkeeping bit

     On the first move of the game and the first move after each level
change, the "previous position's coordinates" <u.ux0, u.uy0> had bogus
values:  zero at start, last location on old level otherwise.  They're
never used to undo a level change, so the last location on the old level
isn't interesting.  Set them to match current location, as if you'd just
rested on the new spot.  I'm not aware of any bugs attributable to this.
src/dungeon.c