Behandlung von zerstoerten Spielern verbessert
Sollte jetzt robuster sein.
Change-Id: If6583ed05af3cc10a960771d4384f91e58e938ac
diff --git a/secure/topliste.c b/secure/topliste.c
index 2b757e4..471d111 100644
--- a/secure/topliste.c
+++ b/secure/topliste.c
@@ -70,12 +70,12 @@
private void process()
{
+ players -= ({0});
foreach(object pl : &players)
{
if (get_eval_cost() < 200000)
{
call_out(#'process, 2);
- players -= ({0});
return;
}
sl_exec("INSERT OR REPLACE INTO topliste(name, gilde, rasse, "
@@ -95,7 +95,7 @@
);
pl=0;
}
- players -= ({0});
+ players = ({});
}
public void listen(string eid, object trigob, mixed data)