Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-18 10:59:23 +0000
committerStijn Buys <ingar@osirion.org>2008-07-18 10:59:23 +0000
commit415cbb44d031e0a348d937c917c629913da0afce (patch)
treeb310564128d80bd24217cc32f71d39844dae5441 /src/model/map.cc
parentd419f413daa75262cbf9ba3eb271c4028b0b6921 (diff)
parse engine sound from .map model
Diffstat (limited to 'src/model/map.cc')
-rw-r--r--src/model/map.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index 39e2b9c..972ae82 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -39,14 +39,25 @@ Model * Map::load(std::string const &name)
if (mapfile.got_classname("worldspawn")) {
+ // new wordspawn
+
+ } else if (mapfile.classname().compare("worldspawn") == 0 ) {
+
+ // worldspawn attributes
+ if (mapfile.got_key_int("enginesound", u)) {
+ model->model_enginesound = u;
+ continue;
+ }
+
} else if (mapfile.got_classname("light")) {
+
// new light
light = new Light();
model->add_light(light);
} else if (mapfile.classname().compare("light") == 0 ) {
- // light attributes
+ // light attributes
if (mapfile.got_key_vector3f("origin", light->light_location)) {
light->light_location *= SCALE;
continue;