diff options
| author | 2025-10-11 01:35:54 +0100 | |
|---|---|---|
| committer | 2025-10-11 01:36:16 +0100 | |
| commit | b447f5879d0c4c49d72f167ed2cf0f1e44a52123 (patch) | |
| tree | 7b20bb65b7acc2826591af01d531baf8281ae79b /src/gametype.h | |
| parent | e3716a68c1b4f1b189065dda1a1e998715c8ede9 (diff) | |
| download | sst-b447f5879d0c4c49d72f167ed2cf0f1e44a52123.tar.gz sst-b447f5879d0c4c49d72f167ed2cf0f1e44a52123.zip | |
Handle negated gamedata tag matches properly
The NE thing wasn't really correct, because it would match hypothetical
cases where OE and some other tag bit are both set. Now we simply use
!OE instead. The _GAMES_WITH inversion case is correct, because it
doesn't necessarily exclude OE from being included too.
Diffstat (limited to 'src/gametype.h')
| -rw-r--r-- | src/gametype.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gametype.h b/src/gametype.h index 6f6a712..5b9336b 100644 --- a/src/gametype.h +++ b/src/gametype.h @@ -95,12 +95,6 @@ GAMETYPE_BASETAGS(_GAMETYPE_DISCARD, _GAMETYPE_ZERO) (_gametype_tag_OrangeBox | _gametype_tag_2013) #define _gametype_tag_Portal (_gametype_tag_Portal1 | _gametype_tag_Portal2) -/* Match for stuff that's specifically NOT OE. */ -// TODO(compat): maybe we should add a specific !Tag syntax to mkgamedata, -// which would make this redundant. as of now this is just a low-effort way to -// keep some cvar things undefined under OE to avoid confusion -#define _gametype_tag_NE (~_gametype_tag_OE) - #define GAMETYPE_MATCHES(x) !!(_gametype_tag & (_gametype_tag_##x)) #endif |
