Clean up more unreadable assignments within if conditionals
This commit is contained in:
parent
6459cfce7b
commit
a2ed975ec2
19 changed files with 92 additions and 81 deletions
|
@ -100,13 +100,14 @@ sell(void)
|
|||
return RET_FAIL;
|
||||
}
|
||||
number_sub = 0;
|
||||
if ((p = getstarg(player->argp[3], "Quantity: ", buf)) == 0 || *p == 0)
|
||||
p = getstarg(player->argp[3], "Quantity: ", buf);
|
||||
if (!p || !*p)
|
||||
return RET_SYN;
|
||||
if (!check_sect_ok(§))
|
||||
return RET_FAIL;
|
||||
number_set = atoi(p);
|
||||
if ((p = getstarg(player->argp[4], "Price per unit: ", buf)) == 0 ||
|
||||
*p == 0)
|
||||
p = getstarg(player->argp[4], "Price per unit: ", buf);
|
||||
if (!p || !*p)
|
||||
return RET_SYN;
|
||||
if (!check_sect_ok(§))
|
||||
return RET_FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue