From: Rudolf Polzer Date: Sun, 3 Nov 2024 01:41:52 +0000 (-0400) Subject: Unbreak compile with gmqcc by performing 01157543f102ad69e8d08885e20113b77776bf17... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6160552ff42a896ac9d613ead24eae5b1eef311a;p=xonotic%2Fxonotic-data.pk3dir.git Unbreak compile with gmqcc by performing 01157543f102ad69e8d08885e20113b77776bf17 only in fteqcc. --- 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);