From 090a1a6099399201d2d5e1b56aea8417489f8241 Mon Sep 17 00:00:00 2001 From: Jackz Date: Tue, 5 Oct 2021 11:03:21 -0500 Subject: [PATCH] Set activeFlagClients off to -1 --- scripting/include/feedthetrolls/trolls.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripting/include/feedthetrolls/trolls.inc b/scripting/include/feedthetrolls/trolls.inc index a97e035..e552e09 100644 --- a/scripting/include/feedthetrolls/trolls.inc +++ b/scripting/include/feedthetrolls/trolls.inc @@ -53,6 +53,14 @@ void SetupTrolls() { SetupTroll("CameTooEarly", "When they shoot, random chance they empty whole clip", TrollMod_Constant); SetupTroll("Inverted Controls", "Well, aint it obvious", TrollMod_Constant); //INFO: UP MAX_TROLLS when adding new trolls! + + + // Initialize the default flag values to -1 + for(int i = 0; i <= MAX_TROLLS; i++) { + for(int j = 1; j <= MAXPLAYERS+1; j++) { + Trolls[i].activeFlagClients[j] = -1; + } + } } void AddMagnetFlags(int index) {