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

Function reset_eat

src/eat.c:308–319  ·  view source on GitHub ↗

called when eating interrupted by an event */

Source from the content-addressed store, hash-verified

306
307/* called when eating interrupted by an event */
308void
309reset_eat(void)
310{
311 /* we only set a flag here - the actual reset process is done after
312 * the round is spent eating.
313 */
314 if (svc.context.victual.eating && !svc.context.victual.doreset) {
315 debugpline0("reset_eat...");
316 svc.context.victual.doreset = 1;
317 }
318 return;
319}
320
321/* base nutrition of a food-class object; this used to include a variation
322 of the code that is now in adj_victual_nutrition() and was moved due to

Callers 2

allmain.cFile · 0.85
lesshungryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected