X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fround_handler.qh;h=c71b21a68bf86ac3eadc7e0e08857bc32b96c05a;hb=ed25b097beea2aee6cdec771ebd01a257cf08fc9;hp=48803113f86e9f6bf03b37236aa969fc3d97fb14;hpb=5769b6071623a4d8c7dc752c69be09210d69aac4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/round_handler.qh b/qcsrc/server/round_handler.qh index 48803113f..c71b21a68 100644 --- a/qcsrc/server/round_handler.qh +++ b/qcsrc/server/round_handler.qh @@ -1,7 +1,10 @@ +#ifndef ROUND_HANDLER_H +#define ROUND_HANDLER_H + entity round_handler; .float delay; // stores delay from round end to countdown start .float count; // stores initial number of the countdown -.float wait; // it's set to TRUE when round ends, to FALSE when countdown starts +.float wait; // it's set to true when round ends, to false when countdown starts .float cnt; // its initial value is .count + 1, then decreased while counting down // reaches 0 when the round starts .float round_timelimit; @@ -19,5 +22,6 @@ void round_handler_Remove(); #define round_handler_AwaitingNextRound() (round_handler.wait) #define round_handler_CountdownRunning() (!round_handler.wait && round_handler.cnt) #define round_handler_IsRoundStarted() (!round_handler.wait && !round_handler.cnt) -#define round_handler_GetTimeLeft() (round_handler.round_endtime - time) +#define round_handler_GetEndTime() (round_handler.round_endtime) +#endif \ No newline at end of file