Clean up use of union empobj_storage * as parameter type
Use it only for functions that assign objects through a pointer parameter. Anything else can and should use struct empobj *.
This commit is contained in:
parent
f75544ee70
commit
d9cafc156c
4 changed files with 26 additions and 26 deletions
|
@ -90,7 +90,7 @@ set(void)
|
|||
}
|
||||
trade.trd_type = type;
|
||||
sprintf(prompt, "%s #%d; price? ",
|
||||
trade_nameof(&trade, &item), ni.cur);
|
||||
trade_nameof(&trade, &item.gen), ni.cur);
|
||||
if (!(p = getstarg(player->argp[3], prompt, buf)))
|
||||
return RET_FAIL;
|
||||
if (!check_obj_ok(&item.gen))
|
||||
|
@ -111,7 +111,7 @@ set(void)
|
|||
if (price <= 0) {
|
||||
if (foundslot >= 0) {
|
||||
pr("%s #%d (lot #%d) removed from trading\n",
|
||||
trade_nameof(&trade, &item), ni.cur, foundslot);
|
||||
trade_nameof(&trade, &item.gen), ni.cur, foundslot);
|
||||
trade.trd_owner = 0;
|
||||
puttrade(ni_trade.cur, &trade);
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ set(void)
|
|||
trade.trd_maxbidder = player->cnum;
|
||||
puttrade(id, &trade);
|
||||
pr("%s #%d (lot #%d) price %s to $%d\n",
|
||||
trade_nameof(&trade, &item), ni.cur,
|
||||
trade_nameof(&trade, &item.gen), ni.cur,
|
||||
id, foundslot >= 0 ? "reset" : "set", price);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue