]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
possible workaround for a hook related crash
authorRudolf Polzer <divverent@xonotic.org>
Thu, 15 Sep 2011 20:08:05 +0000 (22:08 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 15 Sep 2011 20:08:05 +0000 (22:08 +0200)
qcsrc/server/arena.qc

index c89c2b2efada451a84b1990255d437641088195b..b2e4f1019d2f522981ea567734e4192c9cb3f9a6 100644 (file)
@@ -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
        {