From 035653e94a3d74b8f18c993034199d7cd08a895a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 21 Jan 2011 14:41:35 +0000 Subject: Support structures for complex entity collision, renamed sv_arrysize cvar to mem_vertex. --- src/model/material.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/model/material.cc') diff --git a/src/model/material.cc b/src/model/material.cc index 6baf4f9..2cacf42 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -188,15 +188,20 @@ void Material::load_shader(const std::string &shadername) material->set_flags(Tertiary); } else if (firstword.compare("ignore") == 0) { material->set_flags(Ignore); + } else if (firstword.compare("clip") == 0) { + material->set_flags(Clip); } else if (firstword.compare("qer_editorimage") == 0) { + // keyword qer_editorimage is ignored continue; } else if (firstword.compare("qer_trans") == 0) { + // keyword qer_trans is ignored + continue; + } else if (firstword.compare("surfaceparm") == 0) { + // keyword surfaceparm is ignored continue; } else if (firstword.compare("texture") == 0) { - // texture name should not contain spaces if (linestream >> firstword) { - // remove extension if (firstword[firstword.size()-4] == '.') { firstword.erase(firstword.size() - 4); -- cgit v1.2.3