From d8274cf7a3bfffabb035d0f9d5ec986c49d1534f Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Thu, 26 Dec 2019 15:13:16 -0500 Subject: [PATCH] Put in function To be safe and to prevent crashing when exec local variables in console --- Classic/prefs/SetMapLimits.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Classic/prefs/SetMapLimits.cs b/Classic/prefs/SetMapLimits.cs index 9238adf..fbe7fcc 100644 --- a/Classic/prefs/SetMapLimits.cs +++ b/Classic/prefs/SetMapLimits.cs @@ -24,6 +24,11 @@ // "8 32" or "-1 -1" or "-1 16" will also work. Just dont forget the quotes. // As the list goes down %min %max will stay the same unless you change them (a new %min = ? %max = ?) etc +// This is done so a crash cant occur using local variables +// Using exec( $Host::EvoCustomMapLimitsFile ); in console +function setmaps() +{ + // _____ _______ ______ // / ____|__ __| ____| // | | | | | |__ @@ -558,4 +563,9 @@ $Host::MapPlayerLimitsFourSquareDM_DM = %min SPC %max; //$Host::MapPlayerLimitsIsleofman_Siege = %min SPC %max; //$Host::MapPlayerLimitsTrident_Siege = %min SPC %max; -//$Host::MapPlayerLimitsAlcatraz_Siege = %min SPC %max; \ No newline at end of file +//$Host::MapPlayerLimitsAlcatraz_Siege = %min SPC %max; + +} + +// Run our function +setmaps(); \ No newline at end of file