From ee2200638be3fcb14097f3e8b0abb93e210f93d9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 Mar 2009 13:56:15 +0000 Subject: don't show material warings when there is no VertexArray --- src/model/map.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/model/map.cc') 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 -- cgit v1.2.3