From f39aec30f0e5c6f466681ed34bffd41150976ab9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 9 Jul 2011 12:17:13 +0000 Subject: Play jump completed sound when using the /jump cheat. --- src/game/base/ship.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/game/base') diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 2b8411a..a18616e 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -196,8 +196,13 @@ void Ship::func_jump(std::string const &args) owner()->send("Jumping to the " + jumptargetzone->name()); set_zone(jumptargetzone); - ship_jumpdrive_timer = 0; - entity_timer = 0; + //ship_jumpdrive_timer = 0; + //entity_timer = 0; + + // setting the cooldown timer even with cheats on will allow some time for the jump completed sound to play + ship_jumpdrive_timer = core::server()->time(); + entity_timer = jump_cooldown_delay; + set_state(core::Entity::Jump); set_dirty(); return; -- cgit v1.2.3