Permalink
Browse files

* Cosmetics et al.

  • Loading branch information...
1 parent 27fd7ae commit 6f757cb2a3bac9d110438b269aa51deeade9e84d @bobbens committed Sep 9, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/board.c
View
@@ -72,21 +72,23 @@ void player_board (void)
HookParam hparam[2];
if (player.p->target==PLAYER_ID) {
- //TODO: find nearest board-able instead of targeting the closest if board-able
+ /* We don't try to find far away targets, only nearest and see if it matches.
+ * However, perhaps looking for first boardable target within a certain range
+ * could be more interesting. */
player_targetNearest();
p = pilot_get(player.p->target);
if ((!pilot_isDisabled(p) && !pilot_isFlag(p,PILOT_BOARDABLE)) ||
- pilot_isFlag(p,PILOT_NOBOARD)) {//TODO:fix style to conform to naev
+ pilot_isFlag(p,PILOT_NOBOARD)) {
player_targetClear();
player_message("\erYou need a target to board first!");
return;
}
}
- else {
+ else
p = pilot_get(player.p->target);
- }
c = pilot_getFactionColourChar( p );
+ /* More checks. */
if (pilot_isFlag(p,PILOT_NOBOARD)) {
player_message("\erTarget ship can not be boarded.");
return;

0 comments on commit 6f757cb

Please sign in to comment.