diff options
author | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:56:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-03-07 13:56:15 +0000 |
commit | ee2200638be3fcb14097f3e8b0abb93e210f93d9 (patch) | |
tree | 35f9e16bc27c4ff097ea3fe6a261326f22230471 /src | |
parent | 9774597f0ae7a340d2c7933c90934b348baa0011 (diff) |
don't show material warings when there is no VertexArray
Diffstat (limited to 'src')
-rw-r--r-- | src/model/map.cc | 4 |
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 |