]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Unbreak compile with gmqcc by performing 01157543f102ad69e8d08885e20113b77776bf17...
authorRudolf Polzer <divVerent@gmail.com>
Sun, 3 Nov 2024 01:41:52 +0000 (21:41 -0400)
committerRudolf Polzer <divVerent@gmail.com>
Sun, 3 Nov 2024 01:41:52 +0000 (21:41 -0400)
qcsrc/common/checkextension.qh

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