MCPcopy Create free account
hub / github.com/NetHack/NetHack / update_mlstmv

Function update_mlstmv

src/dog.c:294–298  ·  view source on GitHub ↗

record `last move time' for all monsters prior to level save so that mon_arrive() can catch up for lost time when they're restored later */

Source from the content-addressed store, hash-verified

292/* record `last move time' for all monsters prior to level save so that
293 mon_arrive() can catch up for lost time when they're restored later */
294void
295update_mlstmv(void)
296{
297 iter_mons(set_mon_lastmove);
298}
299
300/* note: always reset when used so doesn't need to be part of struct 'g' */
301static struct monst *failed_arrivals = 0;

Callers 2

savebonesFunction · 0.85
goto_levelFunction · 0.85

Calls 1

iter_monsFunction · 0.85

Tested by

no test coverage detected