Prevent player from firing when mission is complete / failed.

This commit is contained in:
Steve 2015-11-21 18:54:45 +00:00
parent e96ea6712c
commit f273862c19
1 changed files with 45 additions and 42 deletions

View File

@ -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;