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

Function hilite_reset_needed

src/botl.c:2256–2275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254}
2255
2256staticfn boolean
2257hilite_reset_needed(
2258 struct istat_s *bl_p,
2259 long augmented_time) /* no longer augmented; it once encoded fractional
2260 * amounts for multiple moves within same turn */
2261{
2262 /*
2263 * This 'multi' handling may need some tuning...
2264 */
2265 if (gm.multi)
2266 return FALSE;
2267
2268 if (!Is_Temp_Hilite(bl_p->hilite_rule))
2269 return FALSE;
2270
2271 if (bl_p->time == 0 || bl_p->time >= augmented_time)
2272 return FALSE;
2273
2274 return TRUE;
2275}
2276
2277/* called from moveloop(); sets context.botl if temp hilites have timed out */
2278void

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected