Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/map.cc')
-rw-r--r--src/model/map.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index c68bb1d..2930021 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -479,6 +479,10 @@ void Map::make_brushface(Plane *face)
} else if (face->texture().compare("common/entity_thirdy_dark") == 0) {
material |= Material::Tertiary;
material |= Material::Dark;
+
+ } else if (face->texture().compare("common/engine") == 0) {
+ color.assign(1, 0, 0);
+ material |= Material::Engine;
}
// translate surface flags to materials
@@ -487,6 +491,11 @@ void Map::make_brushface(Plane *face)
if ((face->surface_flags() & 1) == 1) {
material |= Material::Light;
}
+
+ // surface flag 2 engine
+ if ((face->surface_flags() & 2) == 2) {
+ material |= Material::Engine;
+ }
// find the list if primitives for the current material, allocate a new one if necessary
Primitives *primitives = 0;