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

Function reconstrain_map

src/detect.c:84–91  ·  view source on GitHub ↗

put hero back underwater or underground or engulfed */

Source from the content-addressed store, hash-verified

82
83/* put hero back underwater or underground or engulfed */
84staticfn void
85reconstrain_map(void)
86{
87 /* if was in water and taken out, put back; bypass set_uinwater() */
88 u.uinwater = iflags.save_uinwater, iflags.save_uinwater = 0;
89 u.uburied = iflags.save_uburied, iflags.save_uburied = 0;
90 u.uswallow = iflags.save_uswallow, iflags.save_uswallow = 0;
91}
92
93staticfn void
94map_redisplay(void)

Callers 3

map_redisplayFunction · 0.85
do_mappingFunction · 0.85
do_vicinity_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected