From 580de9e9de67983a7a7908e4395046f3ae6e5be3 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 10 Sep 2012 22:42:39 +0200 Subject: behind Layer2 z-order for magic platforms --- src/magicplatform.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/magicplatform.cpp b/src/magicplatform.cpp index 4997945..e4f3dc0 100644 --- a/src/magicplatform.cpp +++ b/src/magicplatform.cpp @@ -141,6 +141,11 @@ int daEnMagicPlatform_c::onCreate() { doesMoveInfinitely = (settings & 0x10000000); + if (settings & 0xE0000000) { + int putItBehind = settings >> 29; + pos.z = -3600.0f - (putItBehind * 16); + } + setupMovement(); findSourceArea(); -- cgit v1.2.3