From: FruitieX Date: Mon, 14 Jun 2010 21:36:57 +0000 (+0300) Subject: ceil() the number of the "you have to wait X seconds before you can again call a... X-Git-Tag: xonotic-v0.1.0preview~545^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=159e3bd51d8c19f362e39f078761d00e541b820b;p=xonotic%2Fxonotic-data.pk3dir.git ceil() the number of the "you have to wait X seconds before you can again call a vote" message, looked silly with that many decimals --- diff --git a/qcsrc/server/vote.qc b/qcsrc/server/vote.qc index 9a377f9e8..338d98476 100644 --- a/qcsrc/server/vote.qc +++ b/qcsrc/server/vote.qc @@ -162,7 +162,7 @@ float GameCommand_Vote(string s, entity e) { print_to(e, "^1Your vote is empty. See 'vhelp' for more info."); } else if(e && time < e.vote_next) { - print_to(e, strcat("^1You have to wait ^2", ftos(e.vote_next - time), "^1 seconds before you can again call a vote.")); + print_to(e, strcat("^1You have to wait ^2", ftos(ceil(e.vote_next - time)), "^1 seconds before you can again call a vote.")); } else if(VoteCheckNasty(vote)) { print_to(e, "Syntax error in command. See 'vhelp' for more info."); } else if(RemapVote(vote, "vcall", e)) {