[Fix] Stop pilot turning/accelerating when dying.

This commit is contained in:
Allanis 2013-03-21 21:35:53 +00:00
parent cf88a4b989
commit 32462e21d4
3 changed files with 7 additions and 2 deletions

View File

@ -181,7 +181,7 @@
<mass>3</mass>
<price>75000</price>
<description>An enhancement for the shield power system, allowing it to resist much heavier fire.</description>
<gfx_store>capacitator</gfx_store>
<gfx_store>capacitor</gfx_store>
</general>
<specific type="15">
<shield>15</shield>

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -927,7 +927,12 @@ void gui_free(void) {
// Basically uses keyboard input instead of AI input.
void player_think(Pilot* player) {
// Last I checked, the dead didn't think..
if(pilot_isFlag(player, PILOT_DEAD)) return;
if(pilot_isFlag(player, PILOT_DEAD)) {
// No point in accelerating or turning.
player->solid->dir_vel = 0.;
vect_pset(&player->solid->force, 0., 0.);
return;
}
// PLAYER_FACE will take over navigation.
if(player_isFlag(PLAYER_FACE)) {