]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Do not overwrite builtins defined in dpextensions.
authorRudolf Polzer <divVerent@gmail.com>
Sun, 3 Nov 2024 01:19:32 +0000 (21:19 -0400)
committerRudolf Polzer <divVerent@gmail.com>
Sun, 3 Nov 2024 01:19:32 +0000 (21:19 -0400)
Instead, use our own variables for this.

Fixes compile with fteqcc.

qcsrc/common/checkextension.qh

index c00cad839029e48b23717314ca56bfafb6a99b2b..bd56a5e816a4bdc8b821015f2ef37a964bbaf302 100644 (file)
@@ -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);