]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/constants.qh
Declare more ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / constants.qh
index ada2acd1adf3a183c76aed99298521e4711a8b83..1d4cc55232382a6fcd7f2491325b6364ec5a9736 100644 (file)
@@ -1,23 +1,27 @@
-const float FL_WEAPON = 8192;
-const float FL_POWERUP = 16384;
-const float FL_PROJECTILE = 32768;
-const float FL_TOSSED = 65536;
-const float FL_NO_WEAPON_STAY = 131072;
-const float FL_SPAWNING = 262144;
+#ifndef SERVER_CONSTANTS_H
+#define SERVER_CONSTANTS_H
 
-const float SVC_SOUND = 6;
-const float SVC_STOPSOUND = 16;
-const float SVC_SETVIEW = 5;
+const int FL_WEAPON = 8192;
+const int FL_POWERUP = 16384;
+const int FL_PROJECTILE = 32768;
+const int FL_TOSSED = 65536;
+const int FL_NO_WEAPON_STAY = 131072;
+const int FL_SPAWNING = 262144;
 
-const float RESPAWN_FORCE = 1;
-const float RESPAWN_SILENT = 2;
+const int SVC_SOUND = 6;
+const int SVC_STOPSOUND = 16;
+const int SVC_SETVIEW = 5;
+
+const int RESPAWN_FORCE = 1;
+const int RESPAWN_SILENT = 2;
 
 #define EFMASK_CHEAP (EF_ADDITIVE | EF_DOUBLESIDED | EF_FULLBRIGHT | EF_NODEPTHTEST | EF_NODRAW | EF_NOGUNBOB | EF_NOSHADOW | EF_LOWPRECISION | EF_SELECTABLE | EF_TELEPORT_BIT)
 
-const float MSG_ENTITY = 5; // csqc
+const int MSG_ENTITY = 5; // csqc
 
-const float NUM_PLAYERSKINS_TEAMPLAY = 3;
+const int NUM_PLAYERSKINS_TEAMPLAY = 3;
 
-const float ASSAULT_VALUE_INACTIVE = 1000;
+const int ASSAULT_VALUE_INACTIVE = 1000;
 
-const float DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag
+const int DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag
+#endif