]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
ceil() the number of the "you have to wait X seconds before you can again call a...
authorFruitieX <rasse@rasse-lappy.localdomain>
Mon, 14 Jun 2010 21:36:57 +0000 (00:36 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Mon, 14 Jun 2010 21:36:57 +0000 (00:36 +0300)
qcsrc/server/vote.qc

index 9a377f9e8565eb2e183eacd78fd0e0b1a21a7f4e..338d98476b38b2a685cfd71ce2b396d827e204b5 100644 (file)
@@ -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)) {