tweak PR #925 - don't expose shop bill details

Avoid use of 'struct bill_x' outside of shk.c.
This commit is contained in:
PatR
2022-11-19 00:38:20 -08:00
parent fa0b2b7e94
commit 546930e05e
3 changed files with 18 additions and 5 deletions

View File

@@ -452,8 +452,9 @@ moverock(void)
if (costly && !costly_spot(rx, ry)) {
addtobill(otmp, FALSE, FALSE, FALSE);
} else if (!costly && costly_spot(rx, ry) && otmp->unpaid
&& (shkp = shop_keeper(*in_rooms(rx, ry, SHOPBASE)))
&& onbill(otmp, shkp, TRUE)) {
&& ((shkp = shop_keeper(*in_rooms(rx, ry, SHOPBASE)))
!= 0)
&& onshopbill(otmp, shkp, TRUE)) {
subfrombill(otmp, shkp);
}
} else {