X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fcommon.qh;h=13b260dbd0d8e77f98c25f87f3a3f6203ff642f0;hb=971eb36c4ccfde80cd46767b0c20e2d97350821e;hp=d3ee9cc27d3692f7a3074789eed462208928c1d1;hpb=24f6d013a268851d6584e3f76ac0c0308f737b6f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/common.qh b/qcsrc/server/command/common.qh index d3ee9cc27..13b260dbd 100644 --- a/qcsrc/server/command/common.qh +++ b/qcsrc/server/command/common.qh @@ -1,21 +1,21 @@ // ============================================================ // Shared declarations for server commands, written by Samual -// Last updated: December 27th, 2011 +// Last updated: December 30th, 2011 // ============================================================ // client verification results -#define CLIENT_ACCEPTABLE 1 -#define CLIENT_DOESNT_EXIST -1 -#define CLIENT_NOT_REAL -2 -#define CLIENT_NOT_BOT -3 +const float CLIENT_ACCEPTABLE = 1; +const float CLIENT_DOESNT_EXIST = -1; +const float CLIENT_NOT_REAL = -2; +const float CLIENT_NOT_BOT = -3; // definitions for timeouts -#define TIMEOUT_INACTIVE 0 -#define TIMEOUT_LEADTIME 1 -#define TIMEOUT_ACTIVE 2 +const float TIMEOUT_INACTIVE = 0; +const float TIMEOUT_LEADTIME = 1; +const float TIMEOUT_ACTIVE = 2; // timeout which pauses the game by setting the slowmo value extremely low. -#define TIMEOUT_SLOWMO_VALUE 0.0001 +const float TIMEOUT_SLOWMO_VALUE = 0.0001; // global timeout information declarations entity timeout_caller; // contains the entity of the player who started the last timeout