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

Function stat_update_time

src/botl.c:1284–1299  ·  view source on GitHub ↗

update just the status lines' 'time' field */

Source from the content-addressed store, hash-verified

1282
1283/* update just the status lines' 'time' field */
1284staticfn void
1285stat_update_time(void)
1286{
1287 int idx = gn.now_or_before_idx; /* no 0/1 toggle */
1288 int fld = BL_TIME;
1289
1290 /* Time (moves) */
1291 gb.blstats[idx][fld].a.a_long = svm.moves;
1292 gv.valset[fld] = FALSE;
1293
1294 eval_notify_windowport_field(fld, gv.valset, idx);
1295 if ((windowprocs.wincap2 & WC2_FLUSH_STATUS) != 0L)
1296 status_update(BL_FLUSH, (genericptr_t) 0, 0, 0,
1297 NO_COLOR, (unsigned long *) 0);
1298 return;
1299}
1300
1301/* deal with player's choice to change processing of a condition */
1302void

Callers 1

timebotFunction · 0.85

Calls 1

Tested by

no test coverage detected