bundle the display-related hints, that tell bot() and others

that an update is required, into a struct. Remove it from
context since there is no reason to save those.
This commit is contained in:
nhmall
2024-01-04 23:16:27 -05:00
parent 9bcff7b896
commit 22e52ee905
46 changed files with 246 additions and 238 deletions

View File

@@ -366,7 +366,7 @@ mount_steed(
}
remove_monster(mtmp->mx, mtmp->my);
teleds(mtmp->mx, mtmp->my, TELEDS_ALLOW_DRAG);
gc.context.botl = TRUE;
display.botl = TRUE;
return TRUE;
}
@@ -797,11 +797,11 @@ dismount_steed(
gi.in_steed_dismounting = TRUE;
(void) float_down(0L, W_SADDLE);
gi.in_steed_dismounting = FALSE;
gc.context.botl = TRUE;
display.botl = TRUE;
(void) encumber_msg();
gv.vision_full_recalc = 1;
} else
gc.context.botl = TRUE;
display.botl = TRUE;
/* polearms behave differently when not mounted */
if (uwep && is_pole(uwep))
gu.unweapon = TRUE;