Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-09 12:17:13 +0000
committerStijn Buys <ingar@osirion.org>2011-07-09 12:17:13 +0000
commitf39aec30f0e5c6f466681ed34bffd41150976ab9 (patch)
tree8a8e26c294c98d868d67adb2b0a378727d22cc50 /src/game/base
parentbd421e2b53326657f2746ef0f55c08ea53d7a761 (diff)
Play jump completed sound when using the /jump cheat.
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/ship.cc9
1 files changed, 7 insertions, 2 deletions
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;