Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
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;