From: bones_was_here Date: Fri, 15 Sep 2023 06:45:13 +0000 (+1000) Subject: func_plat: fix being stuck in the extended position when .targetname is set on Q3... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=34e7c7d4acebd279f49a5ca7f65c86b9ee7f9e6f;p=xonotic%2Fxonotic-data.pk3dir.git func_plat: fix being stuck in the extended position when .targetname is set on Q3 maps --- diff --git a/qcsrc/common/mapobjects/platforms.qc b/qcsrc/common/mapobjects/platforms.qc index 28b420b20..ccc5be22b 100644 --- a/qcsrc/common/mapobjects/platforms.qc +++ b/qcsrc/common/mapobjects/platforms.qc @@ -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;