Skip to content

Commit

Permalink
Run pilot board hook for all pilot, not just player
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Mar 30, 2015
1 parent 8b4ceb3 commit 0b545ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ static void board_update( unsigned int wdw )
int pilot_board( Pilot *p )
{
Pilot *target;
HookParam hparam[2];

/* Make sure target is sane. */
target = pilot_get(p->target);
Expand Down Expand Up @@ -555,6 +556,12 @@ int pilot_board( Pilot *p )
/* Set time it takes to board. */
p->ptimer = 3.;

/* Run pilot board hook. */
hparam[0].type = HOOK_PARAM_PILOT;
hparam[0].u.lp.pilot = p->id;
hparam[1].type = HOOK_PARAM_SENTINEL;
pilot_runHookParam(target, PILOT_HOOK_BOARD, hparam, 1);

return 1;
}

Expand Down

0 comments on commit 0b545ee

Please sign in to comment.