- clean out digi.h

It's only the enum now - all the rest is externally defined.
This commit is contained in:
Christoph Oelckers 2023-05-29 13:08:58 +02:00
parent d163e67a36
commit a2f0bfb073
3 changed files with 626 additions and 1000 deletions

File diff suppressed because it is too large Load diff

View file

@ -308,13 +308,7 @@ enum Dir8
// Auto building enumerations
#define DIGI_ENUM
enum digi
{
#include "digi.h"
DIGI_MAX
};
#undef DIGI_ENUM
#define DAMAGE_ENUM
enum dam

View file

@ -741,7 +741,7 @@ int _PlayerSound(int num, PLAYER* pp)
}
auto sndid = soundEngine->FindSoundByResID(num);
if (num < 0 || num >= DIGI_MAX || !soundEngine->isValidSoundId(sndid) || !SoundEnabled())
if (!soundEngine->isValidSoundId(sndid) || !SoundEnabled())
return 0;
if (pp->Flags & (PF_DEAD)) return 0; // You're dead, no talking!