Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-10 18:10:35 +0000
committerStijn Buys <ingar@osirion.org>2008-11-10 18:10:35 +0000
commitc758f93a9de30d19338a6d4fc9da795c2354e7dd (patch)
treec39bd11d86c5b9bb139ca71261b3323b4d1cf033 /src/model
parent03d5bc014c0e815c6aaeec16d81e225e08732ab0 (diff)
added impulsesound worldspawn key
Diffstat (limited to 'src/model')
-rw-r--r--src/model/map.cc3
-rw-r--r--src/model/model.cc1
-rw-r--r--src/model/model.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index 584240f..6f3ff9e 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -817,6 +817,9 @@ Model * Map::load(std::string const &name)
if (mapfile.got_key_int("enginesound", u)) {
model->model_enginesound = u;
continue;
+ } else if (mapfile.got_key_int("impulsesound", u)) {
+ model->model_impulsesound = u;
+ continue;
} else if (mapfile.got_key_color("enginecolor", model->model_enginecolor) ==0) {
continue;
}
diff --git a/src/model/model.cc b/src/model/model.cc
index 813515b..3329afe 100644
--- a/src/model/model.cc
+++ b/src/model/model.cc
@@ -22,6 +22,7 @@ Model::Model(std::string const & name) :
{
model_radius = 0.5f;
model_enginesound = 0;
+ model_impulsesound = 0;
model_tris_detail_count = 0;
model_tris_count = 0;
diff --git a/src/model/model.h b/src/model/model.h
index 35e8971..51f8964 100644
--- a/src/model/model.h
+++ b/src/model/model.h
@@ -131,6 +131,7 @@ public:
math::Vector3f model_minbbox;
unsigned int model_enginesound;
+ unsigned int model_impulsesound;
math::Color model_enginecolor;