diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/model/map.cc | 3 | ||||
-rw-r--r-- | src/model/model.cc | 1 | ||||
-rw-r--r-- | src/model/model.h | 1 |
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; |