From 6160552ff42a896ac9d613ead24eae5b1eef311a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 2 Nov 2024 21:41:52 -0400 Subject: [PATCH] Unbreak compile with gmqcc by performing 01157543f102ad69e8d08885e20113b77776bf17 only in fteqcc. --- qcsrc/common/checkextension.qh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/common/checkextension.qh b/qcsrc/common/checkextension.qh index bd56a5e81..4d42e27e2 100644 --- a/qcsrc/common/checkextension.qh +++ b/qcsrc/common/checkextension.qh @@ -1,5 +1,9 @@ #pragma once +// For some reason, GMQCC _requires_ this code to overwrite builtin globals, +// while FTEQCC bans the same. Fine... +#ifndef GMQCC + #ifdef GAMEQC var entity(vector mins, vector maxs, .entity tofield) findbox_tofield_CheckedEngineExtensions = findbox_tofield; #define findbox_tofield findbox_tofield_CheckedEngineExtensions @@ -12,4 +16,6 @@ var float(entity ent) nudgeoutofsolid_CheckedEngineExtensions = nudgeoutofsolid; #define nudgeoutofsolid nudgeoutofsolid_CheckedEngineExtensions #endif +#endif + void CheckEngineExtensions(void); -- 2.39.2