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>2009-03-07 13:56:15 +0000
committerStijn Buys <ingar@osirion.org>2009-03-07 13:56:15 +0000
commitee2200638be3fcb14097f3e8b0abb93e210f93d9 (patch)
tree35f9e16bc27c4ff097ea3fe6a261326f22230471 /src/model
parent9774597f0ae7a340d2c7933c90934b348baa0011 (diff)
don't show material warings when there is no VertexArray
Diffstat (limited to 'src/model')
-rw-r--r--src/model/map.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index 8217f1b..b4a747c 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -443,7 +443,9 @@ void Map::make_brushface(Plane *face)
material->set_color(color);
material->set_flags(Material::Bright);
- con_warn << "Unkown material '" << face->texture() << "'" << std::endl;
+ // don't show material warnings on a dedicated server
+ if (VertexArray::instance())
+ con_warn << "Unkown material '" << face->texture() << "'" << std::endl;
}
// find the list if primitives for the current material, allocate a new one if necessary