Don't let players paradrop their own sectors
Such a paradrop always failed, and the paratroopers were lost.
This commit is contained in:
parent
b2e6663f39
commit
f79d1680a7
1 changed files with 4 additions and 0 deletions
|
@ -78,6 +78,10 @@ para(void)
|
|||
if (flightpath[ap_to_target - 1] == 'h')
|
||||
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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue