From 2eefb20d2b5745915040ecc79e09ea254c8151dd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 7 May 2019 11:36:03 -0300 Subject: Oh well, the fallback failed, but thankfully I add a new fallback recently. --- npc/functions/siege.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/siege.txt b/npc/functions/siege.txt index 18de9a15b..ae83dc5c7 100644 --- a/npc/functions/siege.txt +++ b/npc/functions/siege.txt @@ -27,10 +27,6 @@ function script siege_calcdiff { .@c = getunits(BL_PC, .@players, false, getarg(0)); .@skip=0; - // Fallback: No players on map, always return 0 - if (.@c == 0) - return 0; - // There is at least one player, do things properly for (.@i = 0; .@i < .@c; .@i++) { /* @@ -50,7 +46,7 @@ function script siege_calcdiff { .@highest=.@b; } - // Sanitize + // Sanitize and fallback if needed .@c-=.@skip; if (!.@c) .@c=1; -- cgit v1.2.3-60-g2f50