From 315a8c2dff9b76ac5e1ebbef265f13ac19d65e3d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Nov 2008 13:53:44 +0000 Subject: engine trails --- src/game/base/ship.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game') 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) { -- cgit v1.2.3