]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_plat: fix being stuck in the extended position when .targetname is set on Q3...
authorbones_was_here <bones_was_here@xonotic.au>
Thu, 13 Oct 2022 12:19:53 +0000 (22:19 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 16 Feb 2023 11:07:28 +0000 (21:07 +1000)
qcsrc/common/mapobjects/platforms.qc

index 28b420b20ab4f2ed6c49bde68e5383d365de1b6b..2773845334149969e53a0758f22c7ee53396605a 100644 (file)
@@ -179,7 +179,7 @@ void plat_use(entity this, entity actor, entity trigger)
 
 void plat_reset(entity this)
 {
-       if(this.targetname && this.targetname != "")
+       if(this.targetname && this.targetname != "" && !Q3COMPAT_COMMON)
        {
                setorigin(this, this.pos1);
                this.state = STATE_UP;