(ichrstr): Rename member i_vtype to i_uid.

(ichr_ca): Rename selector vtype to uid.
This commit is contained in:
Markus Armbruster 2006-02-20 05:35:58 +00:00
parent 96a1e8277a
commit 783b00bbad
24 changed files with 59 additions and 59 deletions

View file

@ -131,7 +131,7 @@ sell(void)
pr("Military control required to sell goods.\n");
return RET_FAIL;
}
if ((amt = sect.sct_item[ip->i_vtype]) == 0) {
if ((amt = sect.sct_item[ip->i_uid]) == 0) {
pr("You don't have any %s to sell there.\n", ip->i_name);
return RET_FAIL;
}
@ -145,7 +145,7 @@ sell(void)
amt -= com;
pr("Sold %d %s at %s (%d left)\n", com, ip->i_name,
xyas(sect.sct_x, sect.sct_y, player->cnum), amt);
sect.sct_item[ip->i_vtype] = amt;
sect.sct_item[ip->i_uid] = amt;
putsect(&sect);
if (totalcom > 0) {
for (ii = 0; getcomm(ii, &comm); ii++) {
@ -155,7 +155,7 @@ sell(void)
if (getcomm(ii, &comm) == 0)
ef_extend(EF_COMM, 1);
(void)time(&now);
comm.com_type = ip->i_vtype;
comm.com_type = ip->i_uid;
comm.com_owner = player->cnum;
comm.com_price = price;
comm.com_maxbidder = player->cnum;