MCPcopy Index your code
hub / github.com/NetHack/NetHack / set_uinwater

Function set_uinwater

src/hack.c:3220–3227  ·  view source on GitHub ↗

set or clear u.uinwater */

Source from the content-addressed store, hash-verified

3218
3219/* set or clear u.uinwater */
3220void
3221set_uinwater(int in_out)
3222{
3223 if (in_out != (int) u.uinwater) {
3224 u.uinwater = in_out ? 1 : 0;
3225 switch_terrain();
3226 }
3227}
3228
3229/* extracted from spoteffects; called by spoteffects to check for entering or
3230 leaving a pool of water/lava, and by moveloop to check for staying on one;

Callers 7

boulder_hits_poolFunction · 0.85
goto_levelFunction · 0.85
wizterrainwishFunction · 0.85
pooleffectsFunction · 0.85
drownFunction · 0.85
zap_over_floorFunction · 0.85
makemap_prepostFunction · 0.85

Calls 1

switch_terrainFunction · 0.85

Tested by

no test coverage detected