gemidyne / microtf2

A custom gamemode for Team Fortress 2 - Players compete against each other to get the most points by playing a series of rapid fire microgames in order to win the round!
https://www.gemidyne.com/projects/microtf2
GNU General Public License v2.0
30 stars 17 forks source link

Say Microgame have rare chance to roll nothing #63

Closed FortyTwoFortyTwo closed 5 years ago

FortyTwoFortyTwo commented 5 years ago

in this line, an empty string after the last/max/count string have a chance to appear https://github.com/gemidyne/microtf2/blob/master/src/scripting/Minigames/Minigame6.sp#L29

Format(Minigame6_SayTextAnswer, sizeof(Minigame6_SayTextAnswer), Minigame6_SayTextAnswers[GetRandomInt(0, Minigame6_SayTextAnswerCount)]);

should have been like this, adding -1 at the end

Format(Minigame6_SayTextAnswer, sizeof(Minigame6_SayTextAnswer), Minigame6_SayTextAnswers[GetRandomInt(0, Minigame6_SayTextAnswerCount-1)]);
safalin1 commented 5 years ago

We just got this in our testing session too, good catch.