From: Rudolf Polzer Date: Thu, 15 Sep 2011 20:08:05 +0000 (+0200) Subject: possible workaround for a hook related crash X-Git-Tag: xonotic-v0.6.0~40^2~138 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6526a7cb4fafb460ba286681f2e9e7e7c308b1a6;p=xonotic%2Fxonotic-data.pk3dir.git possible workaround for a hook related crash --- diff --git a/qcsrc/server/arena.qc b/qcsrc/server/arena.qc index c89c2b2ef..b2e4f1019 100644 --- a/qcsrc/server/arena.qc +++ b/qcsrc/server/arena.qc @@ -55,6 +55,12 @@ void reset_map(float dorespawn) race_ReadyRestart(); + FOR_EACH_CLIENT(self) { + // just to make sure, as the FL_PROJECTILE handling is bad for + // these + RemoveGrapplingHook(); + } + for(self = world; (self = nextent(self)); ) if(clienttype(self) == CLIENTTYPE_NOTACLIENT && self.items != IT_STRENGTH && self.items != IT_INVINCIBLE) // don't respawn strength or shield, that will only lead to them spawning very early each match {