Save and restore hero tracks
The tracks left by hero were cleared when player saved and restored the game, or changed levels. Now the tracks are saved in the dungeon level, so changing levels keeps the tracks left by hero in that level. Also increased the length of tracks from 50 to 100, and simplify the tracking function. Thing not done: fade out old tracks when returning to a level. Breaks saves and bones.
This commit is contained in:
@@ -502,7 +502,6 @@ teleds(coordxy nux, coordxy nuy, int teleds_flags)
|
||||
fill_pit(u.ux0, u.uy0);
|
||||
if (ball_active && uchain && uchain->where == OBJ_FREE)
|
||||
placebc(); /* put back the ball&chain if they were taken off map */
|
||||
initrack(); /* teleports mess up tracking monsters without this */
|
||||
update_player_regions();
|
||||
/*
|
||||
* Make sure the hero disappears from the old location. This will
|
||||
|
||||
Reference in New Issue
Block a user