Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-08 13:13:37 +0000
committerStijn Buys <ingar@osirion.org>2008-03-08 13:13:37 +0000
commitada8263817ed45e29d4bd63ab0ac635a83eec4f8 (patch)
treebb71900cdb1a4578f1a04632f1c4e0269709cb0a /src/core
parente0e457510bdd59bbbc77a4f80611066285d39193 (diff)
game reads world.ini
Diffstat (limited to 'src/core')
-rw-r--r--src/core/model.cc4
-rw-r--r--src/core/model.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/model.cc b/src/core/model.cc
index 3b1cabd..1e571c3 100644
--- a/src/core/model.cc
+++ b/src/core/model.cc
@@ -69,6 +69,7 @@ std::map<std::string, Model*> Model::registry;
Model::Model(std::string const & name) :
model_name(name)
{
+ model_valid = false;
model_scale = 1.0f / 1024.0f;
std::string fn("maps/");
@@ -214,6 +215,9 @@ Model::Model(std::string const & name) :
ifs.close();
+ if (model_face.size()) {
+ model_valid = true;
+ }
con_debug << " maps/" << name << ".map " << model_face.size() << " polygons\n";
}
diff --git a/src/core/model.h b/src/core/model.h
index e22d87a..b273c46 100644
--- a/src/core/model.h
+++ b/src/core/model.h
@@ -103,6 +103,7 @@ private:
std::string model_name;
float model_scale;
+ bool model_valid;
};