From 8a4eb790261737104be262cdeab4b0e7d0f5566d Mon Sep 17 00:00:00 2001 From: Stijn Buys <ingar@osirion.org> Date: Fri, 15 Aug 2008 14:03:22 +0000 Subject: render dock locations on active targets, fix star texture loading and rendering --- src/model/dock.cc | 2 +- src/model/dock.h | 2 +- src/model/map.cc | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/model') diff --git a/src/model/dock.cc b/src/model/dock.cc index b850722..bdc63e3 100644 --- a/src/model/dock.cc +++ b/src/model/dock.cc @@ -10,7 +10,7 @@ namespace model { Dock::Dock() { - dock_radius = 1.0f; + dock_radius = 0.01f; } Dock::~Dock() diff --git a/src/model/dock.h b/src/model/dock.h index 0ad2738..89a4026 100644 --- a/src/model/dock.h +++ b/src/model/dock.h @@ -26,7 +26,7 @@ public: return dock_location; } - /// trigger distance in game units, default is 1.0f + /// trigger distance default is 0.01f inline float radius() const { return dock_radius; diff --git a/src/model/map.cc b/src/model/map.cc index d138b49..6494cd7 100644 --- a/src/model/map.cc +++ b/src/model/map.cc @@ -885,6 +885,7 @@ Model * Map::load(std::string const &name) continue; } else if (mapfile.got_key_float("radius", dock->dock_radius)) { + dock->dock_radius /= 100.0f; continue; } -- cgit v1.2.3