diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-15 15:12:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-15 15:12:44 +0000 |
commit | 48481ab5d0d8254e0ce08faeb662f65b16c280c4 (patch) | |
tree | e1e091e476754f1cdb7fdc78e170de0c78007fd5 /src | |
parent | 8a4eb790261737104be262cdeab4b0e7d0f5566d (diff) |
fix docking box drawing
Diffstat (limited to 'src')
-rw-r--r-- | src/model/map.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/model/map.cc b/src/model/map.cc index 6494cd7..0e124c6 100644 --- a/src/model/map.cc +++ b/src/model/map.cc @@ -877,15 +877,15 @@ Model * Map::load(std::string const &name) dock = new Dock(); model->add_dock(dock); - } else if (mapfile.classname().compare("target_dock") == 0) { + } else if (mapfile.classname().compare("trigger_dock") == 0) { // dock attributes if (mapfile.got_key_vector3f("origin", dock->dock_location)) { - flare->light_location *= SCALE; + dock->dock_location *= SCALE; continue; } else if (mapfile.got_key_float("radius", dock->dock_radius)) { - dock->dock_radius /= 100.0f; + dock->dock_radius /= 100.0f; continue; } @@ -973,6 +973,10 @@ Model * Map::load(std::string const &name) (*eit)->engine_location -= mapfile.map_center; } + for (Model::Docks::iterator dit = model->docks().begin(); dit != model->docks().end(); dit++) { + (*dit)->dock_location -= mapfile.map_center; + } + con_debug << " " << mapfile.name() << " " << mapfile.map_brushes << " brushes " << mapfile.map_faces << "/" << mapfile.map_faces_detail << " faces/detail " << std::endl; |