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

Function spot_time_left

src/timeout.c:2458–2463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2456}
2457
2458long
2459spot_time_left(coordxy x, coordxy y, short func_index)
2460{
2461 long expires = spot_time_expires(x, y, func_index);
2462 return (expires > 0L) ? expires - svm.moves : 0L;
2463}
2464
2465/* Insert timer into the global queue */
2466staticfn void

Callers 4

spoteffectsFunction · 0.85
spot_checksFunction · 0.85
zap_over_floorFunction · 0.85
ice_descrFunction · 0.85

Calls 1

spot_time_expiresFunction · 0.85

Tested by

no test coverage detected