mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- ifhitbyweapon and shorter game checks with inline functions.
This commit is contained in:
parent
89e555761d
commit
4b235c0771
6 changed files with 178 additions and 137 deletions
|
@ -148,6 +148,27 @@ const char* G_DefFile(void);
|
|||
const char* G_DefaultConFile(void);
|
||||
const char* G_ConFile(void);
|
||||
|
||||
// game check shortcuts
|
||||
inline bool isNam()
|
||||
{
|
||||
return g_gameType & (GAMEFLAG_NAM | GAMEFLAG_NAPALM);
|
||||
}
|
||||
|
||||
inline bool isWW2GI()
|
||||
{
|
||||
return g_gameType & (GAMEFLAG_WW2GI);
|
||||
}
|
||||
|
||||
inline bool isRR()
|
||||
{
|
||||
return g_gameType & (GAMEFLAG_RRALL);
|
||||
}
|
||||
|
||||
inline bool isRRRA()
|
||||
{
|
||||
return g_gameType & (GAMEFLAG_RRRA);
|
||||
}
|
||||
|
||||
TArray<GrpEntry> GrpScan();
|
||||
void S_PauseSound(bool notmusic, bool notsfx);
|
||||
void S_ResumeSound(bool notsfx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue