mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 00:41:05 +00:00
- clean out digi.h
It's only the enum now - all the rest is externally defined.
This commit is contained in:
parent
d163e67a36
commit
a2f0bfb073
3 changed files with 626 additions and 1000 deletions
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
|
|
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue