From 159e3bd51d8c19f362e39f078761d00e541b820b Mon Sep 17 00:00:00 2001 From: FruitieX Date: Tue, 15 Jun 2010 00:36:57 +0300 Subject: [PATCH] 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 --- qcsrc/server/vote.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2