/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2017, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
}
/*
- * Launch anti-sat weapon PP.
+ * Launch anti-sat weapon @pp.
* Return RET_OK if launched (even when missile explodes),
* else RET_SYN or RET_FAIL.
*/
|| !pln_is_in_orbit(&plane)) {
pr("No such satellite exists!\n");
return RET_FAIL;
- /* Can be abused to find satellite ids. Tolerable. */
+ /* Can be abused to find satellite ids. Tolerable. */
}
if (mapdist(pp->pln_x, pp->pln_y, plane.pln_x, plane.pln_y)
}
/*
- * Launch missile PP.
+ * Launch missile @pp.
* Return RET_OK if launched (even when missile explodes),
* else RET_SYN or RET_FAIL.
*/
if (target_ship.shp_effic < SHIP_MINEFF)
pr("%s sunk!\n", prship(&target_ship));
if (dam && (target_ship.shp_rflags & RET_INJURED))
- retreat_ship(&target_ship, 'i');
+ retreat_ship(&target_ship, target_ship.shp_own, 'i');
putship(target_ship.shp_uid, &target_ship);
}
return RET_OK;
}
/*
- * Launch a satellite.
+ * Launch satellite @pp.
* Return RET_OK if launched (even when satellite fails),
* else RET_SYN or RET_FAIL.
*/