]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
CPMA-style cl_movement physics settings possible! Variables for it:
[xonotic/darkplaces.git] / quakedef.h
index 2645945b0c74cb20627c0abe7946cadf5db5f5df..74ccc6d8538ad88050d8414fec9badafe728121b 100644 (file)
@@ -30,8 +30,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #if defined(__GNUC__) && (__GNUC__ > 2)
 #define DP_FUNC_PRINTF(n) __attribute__ ((format (printf, n, n+1)))
+#define DP_FUNC_PURE      __attribute__ ((pure))
 #else
 #define DP_FUNC_PRINTF(n)
+#define DP_FUNC_PURE
 #endif
 
 #include <sys/types.h>
@@ -101,6 +103,10 @@ extern char engineversion[128];
 //#define STAT_TIME                    17 // FTE
 //#define STAT_VIEW2           20 // FTE
 #define STAT_VIEWZOOM          21 // DP
+#define STAT_MOVEVARS_AIRSTOPACCELERATE                                231 // DP
+#define STAT_MOVEVARS_AIRSTRAFEACCELERATE                      232 // DP
+#define STAT_MOVEVARS_MAXAIRSTRAFESPEED                                233 // DP
+#define STAT_MOVEVARS_AIRCONTROL                                       234 // DP
 #define STAT_FRAGLIMIT                                                         235 // DP
 #define STAT_TIMELIMIT                                                         236 // DP
 #define STAT_MOVEVARS_WALLFRICTION                                     237 // DP
@@ -352,5 +358,12 @@ void Sys_Shared_Init(void);
 // debug protocol exploits.
 #define DEMOMSG_CLIENT_TO_SERVER 0x80000000
 
+// In Quake, any char in 0..32 counts as whitespace
+//#define ISWHITESPACE(ch) ((unsigned char) ch <= (unsigned char) ' ')
+#define ISWHITESPACE(ch) (!(ch) || (ch) == ' ' || (ch) == '\t' || (ch) == '\r' || (ch) == '\n')
+
+// This also includes extended characters, and ALL control chars
+#define ISWHITESPACEORCONTROL(ch) ((signed char) (ch) <= (signed char) ' ')
+
 #endif