From 85646c7a8eb984c46ea2fb09548587f11901343c Mon Sep 17 00:00:00 2001 From: Maikel de Vries Date: Sat, 18 Oct 2014 18:41:56 +0200 Subject: [PATCH] removed cloud vertices --- planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt | 5 ----- planet/Objects.ocd/Environment.ocd/Cloud.ocd/Script.c | 2 +- planet/Worlds.ocf/GemGrabbers.ocs/Script.c | 2 -- planet/Worlds.ocf/IronPeak.ocs/Script.c | 3 --- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt b/planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt index 1723d0485..8a735b367 100644 --- a/planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt +++ b/planet/Objects.ocd/Environment.ocd/Cloud.ocd/DefCore.txt @@ -5,13 +5,8 @@ Category=C4D_Vehicle | C4D_Background Width=512 Height=350 Offset=-256,-175 -Vertices=3 -VertexX=-40,40,0 -VertexY=0,0,40 -Mass=1 Picture=0,0,220,110 Exclusive=1 Components=Cloud=1 Oversize=1 StretchGrowth=1 - diff --git a/planet/Objects.ocd/Environment.ocd/Cloud.ocd/Script.c b/planet/Objects.ocd/Environment.ocd/Cloud.ocd/Script.c index d36ea4eff..c787ca258 100644 --- a/planet/Objects.ocd/Environment.ocd/Cloud.ocd/Script.c +++ b/planet/Objects.ocd/Environment.ocd/Cloud.ocd/Script.c @@ -194,7 +194,7 @@ private func MoveCloud() // Some other safety. if (GetY() <= 5) SetPosition(0, 6); - if (GetYDir()!=0) + if (GetYDir() != 0) SetYDir(0); while (Stuck()) SetPosition(GetX(), GetY() - 5); diff --git a/planet/Worlds.ocf/GemGrabbers.ocs/Script.c b/planet/Worlds.ocf/GemGrabbers.ocs/Script.c index 8a8e593c1..a6faeb9ab 100644 --- a/planet/Worlds.ocf/GemGrabbers.ocs/Script.c +++ b/planet/Worlds.ocf/GemGrabbers.ocs/Script.c @@ -101,8 +101,6 @@ private func InitEnvironment(int difficulty) Cloud->SetPrecipitation("Water", 100 + 25 * difficulty); for (var cloud in FindObjects(Find_ID(Cloud))) { - while (cloud->RemoveVertex()) - /* Empty */; // Make some clouds appear in the foreground with high alpha. if (Random(3) == 0) { diff --git a/planet/Worlds.ocf/IronPeak.ocs/Script.c b/planet/Worlds.ocf/IronPeak.ocs/Script.c index 698f6f1b1..0246073c3 100644 --- a/planet/Worlds.ocf/IronPeak.ocs/Script.c +++ b/planet/Worlds.ocf/IronPeak.ocs/Script.c @@ -107,9 +107,6 @@ private func InitEnvironment(int difficulty) // Set time of day to evening and create some clouds and celestials. Cloud->Place(20); Cloud->SetPrecipitation("Snow", 20 + 5 * difficulty); - for (var cloud in FindObjects(Find_ID(Cloud))) - while (cloud->RemoveVertex()) - /* Empty */; CreateObject(Environment_Celestial); var time = CreateObject(Environment_Time);