mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix wrong special effects count
This commit is contained in:
parent
6adad053d9
commit
47131dec44
2 changed files with 3 additions and 6 deletions
|
@ -95,7 +95,7 @@ void ClientSpecialEffectsManager::LoadEffects()
|
|||
cgi.DPrintf("Loading Special Effects...\n");
|
||||
AxisClear(axis);
|
||||
|
||||
for (i = 0; i < MAX_SPECIAL_EFFECTS; i++) {
|
||||
for (i = 0; i < SFX_COUNT; i++) {
|
||||
switch (i) {
|
||||
case SFX_BHIT_PAPER_LITE:
|
||||
szEffectModel = "models/fx/bh_paper_lite.tik";
|
||||
|
@ -1194,5 +1194,5 @@ qboolean ClientSpecialEffectsManager::EffectsPending()
|
|||
|
||||
specialeffect_t *ClientSpecialEffectsManager::GetTestEffectPointer()
|
||||
{
|
||||
return &m_effects[SPECIAL_EFFECT_TEST];
|
||||
return &m_effects[SFX_TEST_EFFECT];
|
||||
}
|
||||
|
|
|
@ -170,12 +170,9 @@ public:
|
|||
specialeffectcommand_t *AddNewCommand();
|
||||
};
|
||||
|
||||
#define MAX_SPECIAL_EFFECTS 99
|
||||
#define SPECIAL_EFFECT_TEST MAX_SPECIAL_EFFECTS - 1
|
||||
|
||||
class ClientSpecialEffectsManager : public Listener
|
||||
{
|
||||
specialeffect_t m_effects[99];
|
||||
specialeffect_t m_effects[SFX_COUNT];
|
||||
qboolean m_bEffectsLoaded;
|
||||
int m_iNumPendingEvents;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue