X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ffunc%2Fdoor.qc;h=2dcd2333d214f3137a0de938a1fe9582524b9906;hb=5ab11184e635c257a13355f1319dbf208bce4d20;hp=6b69077a09abe2d7e49925a1fc9bb4df72025be3;hpb=22c16a8a2347aab13de9bcead27baf6d8bba73cd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 6b69077a0..2dcd2333d 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -27,6 +27,7 @@ void door_go_up(entity this, entity actor, entity trigger); void door_blocked(entity this, entity blocker) { + bool reverse = false; if((this.spawnflags & DOOR_CRUSH) #ifdef SVQC && (blocker.takedamage != DAMAGE_NO) @@ -69,6 +70,7 @@ void door_blocked(entity this, entity blocker) else door_rotating_go_down(this); } + reverse = true; } } #ifdef SVQC @@ -80,6 +82,8 @@ void door_blocked(entity this, entity blocker) } #endif } + if (!reverse) + SUB_CalcMovePause(this); } void door_hit_top(entity this)