Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-06-08 18:39:17 +0000
committerStijn Buys <ingar@osirion.org>2008-06-08 18:39:17 +0000
commit70fc89d31b81a0cc49fc4b8daf527dd187544d9e (patch)
tree5f96e28da7cf095947a8f1c612e9cacb09f2ab41 /src/model
parent513bfb8d9cf3c246dd15cf67b8a5ff9c7a6f9afe (diff)
disable client prediction by default, add --without-client option to configure
Diffstat (limited to 'src/model')
-rw-r--r--src/model/engine.cc2
-rw-r--r--src/model/engine.h2
-rw-r--r--src/model/map.cc4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/model/engine.cc b/src/model/engine.cc
index 1a89ea2..7c8d117 100644
--- a/src/model/engine.cc
+++ b/src/model/engine.cc
@@ -16,6 +16,8 @@ Engine::Engine() :
engine_location()
{
engine_radius = 1.0f;
+ engine_flare = 0;
+ engine_color.assign(1.0f, 0.0f, 0.0f , 1.0f);
}
Engine::Engine(math::Vector3f const & location) :
diff --git a/src/model/engine.h b/src/model/engine.h
index 5254973..569eb4e 100644
--- a/src/model/engine.h
+++ b/src/model/engine.h
@@ -23,6 +23,8 @@ public:
inline math::Vector3f const & location() const { return engine_location; }
+ inline math::Color const & color() const { return engine_color; }
+
inline float radius() const { return engine_radius; }
inline unsigned int flare() const { return engine_flare; }
diff --git a/src/model/map.cc b/src/model/map.cc
index 6769ba8..39e2b9c 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -138,7 +138,9 @@ Model * Map::load(std::string const &name)
} else if (mapfile.got_key_int("flare", engine->engine_flare)) {
continue;
- }
+ } else if (mapfile.got_key_color("_color", engine->engine_color)) {
+ continue;
+ }
}
}