Remove takeover_ship() and takeover_land() parameter hostile
All callers pass non-zero. Simplify accordingly.
This commit is contained in:
parent
b8ab065a6e
commit
69b74bb5dd
3 changed files with 13 additions and 17 deletions
|
@ -2251,11 +2251,11 @@ take_def(int combat_mode, struct emp_qelem *list, struct combat *off,
|
|||
putsect(§);
|
||||
} else if (def->type == EF_SHIP) {
|
||||
getship(def->shp_uid, &ship);
|
||||
takeover_ship(&ship, player->cnum, 1);
|
||||
takeover_ship(&ship, player->cnum);
|
||||
putship(ship.shp_uid, &ship);
|
||||
} else if (def->type == EF_LAND) {
|
||||
getland(def->lnd_uid, &land);
|
||||
takeover_land(&land, player->cnum, 1);
|
||||
takeover_land(&land, player->cnum);
|
||||
putland(land.lnd_uid, &land);
|
||||
}
|
||||
if (delete_me)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue