summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-07 11:36:03 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-07 11:36:03 -0300
commit2eefb20d2b5745915040ecc79e09ea254c8151dd (patch)
tree73fe948fa5196c3ec6276e49d7227c4d5e65bff8 /npc
parente5f06227b45c0e929a0c99667adf00190f19aa21 (diff)
downloadserverdata-2eefb20d2b5745915040ecc79e09ea254c8151dd.tar.gz
serverdata-2eefb20d2b5745915040ecc79e09ea254c8151dd.tar.bz2
serverdata-2eefb20d2b5745915040ecc79e09ea254c8151dd.tar.xz
serverdata-2eefb20d2b5745915040ecc79e09ea254c8151dd.zip
Oh well, the fallback failed, but thankfully I add a new fallback recently.
Diffstat (limited to 'npc')
-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;