diff options
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r-- | npc/functions/weather.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index 4adb172ef..300f3b009 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -130,8 +130,6 @@ OnMinute45: function WeatherSwitch { // Get map getmapxy(.@key$,.@a,.@b,0); - if (getarg(1,"0") != "0") - .@key$=getarg(1,.@key$); // Sanitize .@m$ = htget(.wcore, .@key$, "Not found"); @@ -146,23 +144,23 @@ OnMinute45: // Some commands, for GMs manually override weather OnRain: - WeatherSwitch(MASK_RAIN, getarg(0,"0")); + WeatherSwitch(MASK_RAIN); end; OnSand: - WeatherSwitch(MASK_SANDSTORM, getarg(0,"0")); + WeatherSwitch(MASK_SANDSTORM); end; OnSnow: - WeatherSwitch(MASK_SNOW, getarg(0,"0")); + WeatherSwitch(MASK_SNOW); end; OnNight: - WeatherSwitch(MASK_NIGHT, getarg(0,"0")); + WeatherSwitch(MASK_NIGHT); end; OnEvil: - WeatherSwitch(MASK_EVILSANCTUM, getarg(0,"0")); + WeatherSwitch(MASK_EVILSANCTUM); end; // Clear works on any map |