Prevent player from firing when mission is complete / failed.
This commit is contained in:
parent
e96ea6712c
commit
f273862c19
|
@ -99,6 +99,8 @@ void doPlayer(void)
|
|||
applyFighterBrakes();
|
||||
}
|
||||
|
||||
if (battle.status == MS_IN_PROGRESS)
|
||||
{
|
||||
if (app.keyboard[SDL_SCANCODE_LCTRL] && !player->reload && player->guns[0].type)
|
||||
{
|
||||
fireGuns(player);
|
||||
|
@ -149,6 +151,7 @@ void doPlayer(void)
|
|||
selectMissionTarget();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
player->angle = ((int)player->angle) % 360;
|
||||
|
||||
|
|
Loading…
Reference in New Issue