diff options
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/ship.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 214d234..5473581 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -60,7 +60,12 @@ void Ship::reset() } void Ship::func_impulse() { - if ((entity_eventstate == core::Entity::Impulse) || (entity_eventstate == core::Entity::ImpulseInitiate)) { + if (entity_eventstate == core::Entity::Impulse) { + entity_eventstate = core::Entity::Normal; + target_thrust = 1.0f; + entity_thrust = 1.0f; + + } else if (entity_eventstate == core::Entity::ImpulseInitiate) { entity_eventstate = core::Entity::Normal; } else if (entity_eventstate != core::Entity::Normal) { |