* ---
*
* expl.c: Take over unoccupied sectors
- *
+ *
* Known contributors to this file:
* Jeff Wallace, 1989
*/
sprintf(prompt, "Number of %s to explore with? (max %d) ",
ip->i_name, amt_src);
amount = onearg(player->argp[3], prompt);
+ if (amount <= 0)
+ return RET_SYN;
if (!check_sect_ok(§))
return RET_FAIL;
if (amount > amt_src) {
if (!check_sect_ok(§))
return RET_FAIL;
- if (amount <= 0)
- return RET_SYN;
weight = (double)amount * ip->i_lbs;
/* remove commodities from source sector */
getsect(x, y, &start);