Don't let players paradrop their own sectors

Such a paradrop always failed, and the paratroopers were lost.
This commit is contained in:
Scott C. Zielinski 2009-09-27 12:39:54 -04:00 committed by Markus Armbruster
parent b2e6663f39
commit f79d1680a7

View file

@ -78,6 +78,10 @@ para(void)
if (flightpath[ap_to_target - 1] == 'h') if (flightpath[ap_to_target - 1] == 'h')
ap_to_target--; ap_to_target--;
pr("range to target is %d\n", ap_to_target); pr("range to target is %d\n", ap_to_target);
if (target.sct_own == player->cnum) {
pr("You can't air-assault your own sector!\n");
return RET_FAIL;
}
/* /*
* select planes within range * select planes within range
*/ */