From 52d835cdedc0ea499b4f0f209b79de2905ef4c9d Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Sat, 27 Jan 2018 23:55:43 -0500 Subject: [PATCH] Remove a really minor 1-tic discrepancy --- src/y_inter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/y_inter.c b/src/y_inter.c index 995f567a..787cd07e 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -2330,6 +2330,9 @@ void Y_VoteTicker(void) } } + if (votedata.numvotes >= numplayers) + votedata.timeleft = 0; + if (votedata.timeleft == 0 && voteendtic == -1) { votedata.pickedvote = P_RandomKey(votedata.numvotes); @@ -2337,9 +2340,6 @@ void Y_VoteTicker(void) S_StartSound(NULL, sfx_ncitem); voteendtic = votetic+(3*TICRATE); } - - if (votedata.numvotes >= numplayers) - votedata.timeleft = 0; } //