[Fix] Stop pilot turning/accelerating when dying.
This commit is contained in:
parent
cf88a4b989
commit
32462e21d4
@ -181,7 +181,7 @@
|
|||||||
<mass>3</mass>
|
<mass>3</mass>
|
||||||
<price>75000</price>
|
<price>75000</price>
|
||||||
<description>An enhancement for the shield power system, allowing it to resist much heavier fire.</description>
|
<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>
|
</general>
|
||||||
<specific type="15">
|
<specific type="15">
|
||||||
<shield>15</shield>
|
<shield>15</shield>
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@ -927,7 +927,12 @@ void gui_free(void) {
|
|||||||
// Basically uses keyboard input instead of AI input.
|
// Basically uses keyboard input instead of AI input.
|
||||||
void player_think(Pilot* player) {
|
void player_think(Pilot* player) {
|
||||||
// Last I checked, the dead didn't think..
|
// 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.
|
// PLAYER_FACE will take over navigation.
|
||||||
if(player_isFlag(PLAYER_FACE)) {
|
if(player_isFlag(PLAYER_FACE)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user