Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r--src/game/base/game.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index 30970f9..d80fb3e 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -191,7 +191,9 @@ void Game::func_target_dock(core::Player *player, core::Entity *entity)
JumpGate *jumpgate = static_cast<JumpGate *>(entity);
jumpgate->func_dock(ship);
return;
-
+ } else if (entity->moduletype() == race_enttype) {
+ RaceTrack *race = static_cast<RaceTrack *>(entity);
+ race->func_dock(ship);
} else {
ship->get_location().assign(entity->location());
ship->set_state(core::Entity::Docked);