From fd5551427981e8cf0134b1ccc7e8a4b2b74deed7 Mon Sep 17 00:00:00 2001 From: Clonkonaut Date: Tue, 2 May 2017 23:48:50 +0200 Subject: [PATCH] Fixed shape of tunnel supports. --- planet/Decoration.ocd/Village.ocd/TunnelSupport.ocd/Script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Decoration.ocd/Village.ocd/TunnelSupport.ocd/Script.c b/planet/Decoration.ocd/Village.ocd/TunnelSupport.ocd/Script.c index dc8da42c6..70e4b1e39 100644 --- a/planet/Decoration.ocd/Village.ocd/TunnelSupport.ocd/Script.c +++ b/planet/Decoration.ocd/Village.ocd/TunnelSupport.ocd/Script.c @@ -21,11 +21,11 @@ public func Extend(int percentage) extension = percentage; + var height = 30 + (55 * percentage / 100); percentage = 2500 * percentage / 100; PlayAnimation("extend", 1, Anim_Const(percentage)); - var height = 30 + (55 * percentage / 100); - SetShape(-15, -height/2, 30, height); + SetShape(-15, -15 + (30 - height), 30, height); } public func SaveScenarioObject(props)