]> de.git.xonotic.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>
Fri, 15 Sep 2023 06:45:13 +0000 (16:45 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 07:11:44 +0000 (17:11 +1000)
qcsrc/common/mapobjects/platforms.qc

index 28b420b20ab4f2ed6c49bde68e5383d365de1b6b..ccc5be22bca6c026d78ff9c8deec59d964160b8f 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;