]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/csqcmodellib/cl_player.qh
Turn #define'd constants into actual constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / csqcmodellib / cl_player.qh
index 1cb42f2a5ce8383b6345546a038766ebcee7a6e8..ee1a6ac4d857883fa59753c2dc89a2b7c4682f48 100644 (file)
 
 entity csqcplayer;
 float csqcplayer_status;
-#define CSQCPLAYERSTATUS_UNPREDICTED 0
-#define CSQCPLAYERSTATUS_FROMSERVER 1
-#define CSQCPLAYERSTATUS_PREDICTED 2
+const float CSQCPLAYERSTATUS_UNPREDICTED = 0;
+const float CSQCPLAYERSTATUS_FROMSERVER = 1;
+const float CSQCPLAYERSTATUS_PREDICTED = 2;
 
 // only ever READ these!
 .float pmove_flags;
-#define PMF_JUMP_HELD 1
-#define PMF_DUCKED 4
-#define PMF_ONGROUND 8
+float PMF_JUMP_HELD = 1;
+float PMF_DUCKED = 4;
+float PMF_ONGROUND = 8;
 
 void CSQCPlayer_SetCamera();
 float CSQCPlayer_PreUpdate();