From 01157543f102ad69e8d08885e20113b77776bf17 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 2 Nov 2024 21:19:32 -0400 Subject: [PATCH] Do not overwrite builtins defined in dpextensions. Instead, use our own variables for this. Fixes compile with fteqcc. --- qcsrc/common/checkextension.qh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.39.2