diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-08 13:13:37 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-08 13:13:37 +0000 |
commit | ada8263817ed45e29d4bd63ab0ac635a83eec4f8 (patch) | |
tree | bb71900cdb1a4578f1a04632f1c4e0269709cb0a /src/core | |
parent | e0e457510bdd59bbbc77a4f80611066285d39193 (diff) |
game reads world.ini
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/model.cc | 4 | ||||
-rw-r--r-- | src/core/model.h | 1 |
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; }; |