summaryrefslogtreecommitdiff
path: root/npc/functions/siege.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/siege.txt')
-rw-r--r--npc/functions/siege.txt6
1 files changed, 1 insertions, 5 deletions
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;