Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-01-28 12:42:48 +0000
committerStijn Buys <ingar@osirion.org>2012-01-28 12:42:48 +0000
commit47c565443b9a09344f58a0639d0de5693fbaec31 (patch)
tree390968c719327fc917d29085ef953e0292273b3b /src
parent1870fba873e6680a7d2d93926de4ff8539e3a676 (diff)
FS#78 Print additional warnings if submodels could not be loaded.
Diffstat (limited to 'src')
-rw-r--r--src/model/mapfile.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc
index c3567be..d24a684 100644
--- a/src/model/mapfile.cc
+++ b/src/model/mapfile.cc
@@ -1865,11 +1865,15 @@ Model * MapFile::load(std::string const &name)
if (tag_submodel->name().size()) {
submodel_model = Model::load(tag_submodel->name());
+ } else {
+ con_warn << " invalid misc_model '" << tag_submodel->name() << "'" << std::endl;
+ continue;
}
if (submodel_model) {
// skip empty submodels
if (!submodel_model->groups().size()) {
+ con_warn << " ignoring empty misc_model '" << tag_submodel->name() << "'" << std::endl;
continue;
}