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:
@@ -970,7 +970,7 @@ void
|
||||
addinv_core1(struct obj *obj)
|
||||
{
|
||||
if (obj->oclass == COIN_CLASS) {
|
||||
gc.context.botl = 1;
|
||||
display.botl = 1;
|
||||
} else if (obj->otyp == AMULET_OF_YENDOR) {
|
||||
if (u.uhave.amulet)
|
||||
impossible("already have amulet?");
|
||||
@@ -1330,7 +1330,7 @@ void
|
||||
freeinv_core(struct obj *obj)
|
||||
{
|
||||
if (obj->oclass == COIN_CLASS) {
|
||||
gc.context.botl = 1;
|
||||
display.botl = 1;
|
||||
return;
|
||||
} else if (obj->otyp == AMULET_OF_YENDOR) {
|
||||
if (!u.uhave.amulet)
|
||||
@@ -1361,7 +1361,7 @@ freeinv_core(struct obj *obj)
|
||||
curse(obj);
|
||||
} else if (confers_luck(obj)) {
|
||||
set_moreluck();
|
||||
gc.context.botl = 1;
|
||||
display.botl = 1;
|
||||
} else if (obj->otyp == FIGURINE && obj->timed) {
|
||||
(void) stop_timer(FIG_TRANSFORM, obj_to_any(obj));
|
||||
}
|
||||
@@ -1992,7 +1992,7 @@ getobj(
|
||||
continue;
|
||||
}
|
||||
}
|
||||
gc.context.botl = 1; /* May have changed the amount of money */
|
||||
display.botl = 1; /* May have changed the amount of money */
|
||||
if (otmp && !gi.in_doagain) {
|
||||
if (cntgiven && cnt > 0)
|
||||
cmdq_add_int(CQ_REPEAT, cnt);
|
||||
|
||||
Reference in New Issue
Block a user