struct plnstr plane;
cp = getstarg(player->argp[2], "Target satellite? ", buf);
- if (!check_plane_ok(pp))
- return RET_FAIL;
if (!cp || !*cp)
return RET_SYN;
+ if (!check_plane_ok(pp))
+ return RET_FAIL;
if (!getplane(atoi(cp), &plane) || !plane.pln_own
|| !pln_is_in_orbit(&plane)) {
pr("No such satellite exists!\n");
pr("\n");
cp = getstarg(player->argp[2], "Target sector? ", buf);
- if (!check_plane_ok(pp))
- return RET_FAIL;
if (!cp || !*cp)
return RET_SYN;
+ if (!check_plane_ok(pp))
+ return RET_FAIL;
if (!sarg_xy(cp, &sx, &sy)) {
pr("Bad sector designation!\n");
return RET_SYN;
if (!player->owner)
continue;
p = getstarg(player->argp[2], "Name? ", buf);
- if (!check_ship_ok(&ship))
- return RET_FAIL;
if (!p || !*p)
return RET_SYN;
+ if (!check_ship_ok(&ship))
+ return RET_FAIL;
if (!strcmp(p, "~")) {
ship.shp_name[0] = 0;
} else {
|| (trade.trd_type == EF_NUKE)) {
while (1) {
p = getstring("Destination sector: ", buf);
- if (!trade_check_ok(&trade, &tg.gen))
+ if (!p)
return RET_FAIL;
- if (!p) {
+ if (!trade_check_ok(&trade, &tg.gen))
return RET_FAIL;
- }
if (!sarg_xy(p, &sx, &sy) || !getsect(sx, sy, §)) {
pr("Bad sector designation; try again!\n");
continue;
} else if (trade.trd_type == EF_LAND) {
while (1) {
p = getstring("Destination sector: ", buf);
- if (!trade_check_ok(&trade, &tg.gen))
+ if (!p)
return RET_FAIL;
- if (!p) {
+ if (!trade_check_ok(&trade, &tg.gen))
return RET_FAIL;
- }
if (!sarg_xy(p, &sx, &sy) || !getsect(sx, sy, §)) {
pr("Bad sector designation; try again!\n");
continue;