diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-09-01 15:36:34 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-09-01 15:36:34 +0200 |
commit | 669c8c8988ab5489ba735816071388fe38c4c8f1 (patch) | |
tree | 1e9b91d0916d4819398a2581008b119facebfbe5 /src/audio/AudioSamples.h | |
parent | replace ugly else if with switch (diff) | |
download | re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar.gz re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar.bz2 re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar.lz re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar.xz re3-669c8c8988ab5489ba735816071388fe38c4c8f1.tar.zst re3-669c8c8988ab5489ba735816071388fe38c4c8f1.zip |
Diffstat (limited to 'src/audio/AudioSamples.h')
-rw-r--r-- | src/audio/AudioSamples.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/audio/AudioSamples.h b/src/audio/AudioSamples.h index 7f564fa2..365ca282 100644 --- a/src/audio/AudioSamples.h +++ b/src/audio/AudioSamples.h @@ -2,6 +2,9 @@ #include "common.h" +#define FIRST_PLAYER_COMMENT(e) PLAYER_COMMENTS_START, e = PLAYER_COMMENTS_START +#define LAST_PLAYER_COMMENT(e) e, PLAYER_COMMENTS_END = e + enum eSfxSample { SFX_CAR_HORN_JEEP = 0, @@ -8864,7 +8867,7 @@ enum eSfxSample SFX_COP_VOICE_5_COP_TARGETING_3, SFX_COP_VOICE_5_COP_TARGETING_4, - SFX_PLAYER_ANGRY_BUSTED_1, + FIRST_PLAYER_COMMENT(SFX_PLAYER_ANGRY_BUSTED_1), SFX_PLAYER_ANGRY_BUSTED_2, SFX_PLAYER_ANGRY_BUSTED_3, SFX_PLAYER_ANGRY_BUSTED_4, @@ -10113,7 +10116,7 @@ enum eSfxSample SFX_PLAYER_ON_FIRE_13, SFX_PLAYER_ON_FIRE_14, SFX_PLAYER_ON_FIRE_15, - SFX_PLAYER_ON_FIRE_16, + LAST_PLAYER_COMMENT(SFX_PLAYER_ON_FIRE_16), TOTAL_AUDIO_SAMPLES, NO_SAMPLE, @@ -10122,6 +10125,6 @@ enum eSfxSample SAMPLEBANK_END = SFX_FOOTSTEP_SAND_4, SAMPLEBANK_MAX = SFX_FOOTSTEP_SAND_4 + 1, SAMPLEBANK_PED_START = SFX_FOOTSTEP_SAND_4 + 1, - SAMPLEBANK_PED_END = 9940, + SAMPLEBANK_PED_END = SFX_PLAYER_ON_FIRE_16, SAMPLEBANK_PED_MAX = SAMPLEBANK_PED_END + 1, }; |