X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fround_handler.qh;h=448788442842ab2bd631abb1daefbcf3a0a7678a;hb=eeec5ec4584c71acbb89db6eea843b48d6ca4c26;hp=48803113f86e9f6bf03b37236aa969fc3d97fb14;hpb=3aed354c1125db3e6e862f552c253b06b09d5d86;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/round_handler.qh b/qcsrc/server/round_handler.qh index 48803113f..448788442 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