]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
detach hook in intermission/endmatch
authornyov <nyov@nexnode.net>
Wed, 16 Nov 2011 07:15:07 +0000 (08:15 +0100)
committernyov <nyov@nexnode.net>
Wed, 16 Nov 2011 07:15:07 +0000 (08:15 +0100)
might not be necessary if 3rd person view would attach it to
the player model instead of view

qcsrc/server/g_hook.qc

index b08ef098609732a67a18effdfd6e094d7f1f4a3e..84ea0210184792e0f313df1b4e089925f6872359 100644 (file)
@@ -121,7 +121,7 @@ void GrapplingHookThink()
                error("Owner lost the hook!\n");
                return;
        }
-       if(LostMovetypeFollow(self))
+       if(LostMovetypeFollow(self) || intermission_running)
        {
                RemoveGrapplingHook(self.realowner);
                return;