[Change] Abort hyperspaceing if autonav is aborted during sequence.
This commit is contained in:
parent
fe6f5b27ef
commit
4771db7276
@ -1491,6 +1491,11 @@ void player_abortAutonav(void) {
|
|||||||
if(player_isFlag(PLAYER_AUTONAV)) {
|
if(player_isFlag(PLAYER_AUTONAV)) {
|
||||||
player_message("Autonav aborted!");
|
player_message("Autonav aborted!");
|
||||||
player_rmFlag(PLAYER_AUTONAV);
|
player_rmFlag(PLAYER_AUTONAV);
|
||||||
|
if(pilot_isFlag(player, PILOT_HYP_PREP)) {
|
||||||
|
pilot_hyperspaceAbort(player);
|
||||||
|
player_message("Aborting hyperspace sequence.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user