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

@@ -1841,7 +1841,7 @@ pickup_object(
/* Whats left of the special case for gold :-) */
if (obj->oclass == COIN_CLASS)
gc.context.botl = 1;
display.botl = 1;
if (obj->quan != count && obj->otyp != LOADSTONE)
obj = splitobj(obj, count);
@@ -1960,7 +1960,7 @@ encumber_msg(void)
newcap == 4 ? "can barely" : "can't even");
break;
}
gc.context.botl = 1;
display.botl = 1;
} else if (go.oldcap > newcap) {
switch (newcap) {
case 0:
@@ -1977,7 +1977,7 @@ encumber_msg(void)
stagger(gy.youmonst.data, "stagger"));
break;
}
gc.context.botl = 1;
display.botl = 1;
}
go.oldcap = newcap;