]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - quakedef.h
cl_movement: move crouch handling so that sv_maxairspeed*0.5 is maximum crouching...
[xonotic/darkplaces.git] / quakedef.h
index 3ddf1c737e4c861c529fe735156b2a9ae33643b0..74ccc6d8538ad88050d8414fec9badafe728121b 100644 (file)
@@ -103,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
@@ -354,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