Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
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;
};