From: Rudolf Polzer Date: Sun, 3 Nov 2024 01:19:32 +0000 (-0400) Subject: Do not overwrite builtins defined in dpextensions. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=01157543f102ad69e8d08885e20113b77776bf17;p=xonotic%2Fxonotic-data.pk3dir.git Do not overwrite builtins defined in dpextensions. Instead, use our own variables for this. Fixes compile with fteqcc. --- diff --git a/qcsrc/common/checkextension.qh b/qcsrc/common/checkextension.qh index c00cad839..bd56a5e81 100644 --- a/qcsrc/common/checkextension.qh +++ b/qcsrc/common/checkextension.qh @@ -1,3 +1,15 @@ #pragma once +#ifdef GAMEQC +var entity(vector mins, vector maxs, .entity tofield) findbox_tofield_CheckedEngineExtensions = findbox_tofield; +#define findbox_tofield findbox_tofield_CheckedEngineExtensions +var entity(vector mins, vector maxs) findbox_CheckedEngineExtensions = findbox; +#define findbox findbox_CheckedEngineExtensions +#endif + +#ifdef SVQC // change to GAMEQC if/when we use nudgeoutofsolid in CSQC +var float(entity ent) nudgeoutofsolid_CheckedEngineExtensions = nudgeoutofsolid; +#define nudgeoutofsolid nudgeoutofsolid_CheckedEngineExtensions +#endif + void CheckEngineExtensions(void);