]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/dpdefs/progsdefs.qh
Provisions for unit testing
[xonotic/xonotic-data.pk3dir.git] / qcsrc / dpdefs / progsdefs.qh
index 535c3b6f7c3504e8ba3113a385ec7e489bcb29fa..783ac036faf07c3e645cce833b78c3bb6ab5e1d1 100644 (file)
 #undef spawn
 #undef setmodel
 
+#define stuffcmd(cl, ...) MACRO_BEGIN \
+    entity _cl = (cl); \
+    if (IS_REAL_CLIENT(_cl)) stuffcmd(_cl, __VA_ARGS__); \
+MACRO_END
+
 #pragma noref 0
 
 #endif