Readd voting cheating, just in an entirely different way

Will need tested for desyncs, since it adds some RNG into the vote ticker. Which may or may not matter.
This commit is contained in:
TehRealSalt 2018-06-13 21:58:21 -04:00
parent e0ad46d416
commit 103ad41994

View file

@ -2410,6 +2410,8 @@ void Y_VoteTicker(void)
if (tempvotes[((pickedvote + voteclient.roffset + i) % numvotes)] == pickedvote)
{
voteclient.rendoff = voteclient.roffset+i;
if (P_RandomChance(FRACUNIT/1024)) // Let it cheat occasionally~
voteclient.rendoff++;
S_ChangeMusicInternal("voteeb", false);
break;
}