File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ typedef struct {
43
43
std::unordered_map<std::string, named_sfx_t > name_to_sfx;
44
44
std::unordered_map<int , ambient_sfx_t > id_to_ambient_sfx;
45
45
46
+ dboolean dsda_IsLoopingAmbientSFX (int sfx_id) {
47
+ for (auto &amb_sfx : id_to_ambient_sfx) {
48
+ if (amb_sfx.second .sfx_id == sfx_id && amb_sfx.second .min_tics < 0 )
49
+ return true ;
50
+ }
51
+
52
+ return false ;
53
+ }
54
+
46
55
static ambient_sfx_t * dsda_AmbientSFX (int id) {
47
56
return id_to_ambient_sfx[id].sfx_id ? &id_to_ambient_sfx[id] : NULL ;
48
57
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ typedef struct {
40
40
int wait_tics ;
41
41
} ambient_source_t ;
42
42
43
+ dboolean dsda_IsLoopingAmbientSFX (int sfx_id );
43
44
void dsda_UpdateAmbientSource (ambient_source_t * source );
44
45
void dsda_SpawnAmbientSource (mobj_t * mobj );
45
46
void dsda_LoadAmbientSndInfo (void );
You can’t perform that action at this time.
0 commit comments