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>2010-11-13 00:31:20 +0000
committerStijn Buys <ingar@osirion.org>2010-11-13 00:31:20 +0000
commit650cca5da5e15b9d4a85e7f734515f538b0cc0f3 (patch)
treee0c526e29a76254baccaa993079eb2324a5924cc /src/game/base/game.cc
parent5f0973366367edd29caf42d113279c792aa890e0 (diff)
fixed broken game::RaceTrack docking, made race entities NonSolid
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);