From b447f5879d0c4c49d72f167ed2cf0f1e44a52123 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 11 Oct 2025 01:35:54 +0100 Subject: 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. --- src/fixes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fixes.c') diff --git a/src/fixes.c b/src/fixes.c index d4b5330..733616b 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -91,8 +91,8 @@ static void generalfixes() { // fps_max policy varies a bit between speedgames and their communities! // in theory we might wanna remove CON_NOTCONN on Portal 1 in a future // release, but for now people haven't fully talked themselves into it. - struct con_var *v = con_findvar("fps_max"); if (GAMETYPE_MATCHES(L4Dx)) { + struct con_var *v = con_findvar("fps_max"); // for L4D games, generally changing anything above normal limits is // disallowed, but externally capping FPS will always be possible so we // might as well allow lowering it ingame for convenience. -- cgit v1.2.3-54-g00ecf