diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-12 14:26:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-12 14:26:09 +0000 |
commit | 8c3abbb3c04c6119b8f0ceb546c3aff66703ba14 (patch) | |
tree | 975ff9f73ef7841763111a0e0dc7065e34e3cbf7 /src/game/base/game.cc | |
parent | bbbd41ccf4e7501e93689afecab442cb7e60a5de (diff) |
Removed Entity::Complex flag: collision models will be used if availble,
removed a number of irrelevant comments.
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r-- | src/game/base/game.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 5639e20..2d25993 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -1160,6 +1160,7 @@ bool Game::load_zone(core::Zone *zone) jumppoint = new JumpGate(); entity = jumppoint; jumppoint->set_zone(zone); + jumppoint->set_radius(0); count ++; } else if (zoneini.got_section("jumppoint")) { @@ -1175,12 +1176,16 @@ bool Game::load_zone(core::Zone *zone) racetrack->set_radius(0); } else if (zoneini.got_section("checkpoint")) { - checkpoint = new CheckPoint(racetrack); - entity = checkpoint; + if (!racetrack) { zoneini.unknown_error("checkpoint without racetrack"); + entity = 0; + checkpoint = 0; + } else { + checkpoint = new CheckPoint(racetrack); + entity = checkpoint; + checkpoint->set_radius(0); } - checkpoint->set_radius(0); } else if (zoneini.got_section("planet")) { planet = new Planet(); @@ -1533,7 +1538,6 @@ bool Game::generate_entity_menus(core::Entity *entity) using core::ButtonDescription; if ((entity->moduletype() != planet_enttype) && (entity->moduletype() != station_enttype)) { - //con_warn << "Can not generate menus for entity '" << entity->label() << "'" << std::endl; // not dockable return false; } |