removed cloud vertices

issue1247
Maikel de Vries 2014-10-18 18:41:56 +02:00
parent 13ab324603
commit 85646c7a8e
4 changed files with 1 additions and 11 deletions

View File

@ -5,13 +5,8 @@ Category=C4D_Vehicle | C4D_Background
Width=512 Width=512
Height=350 Height=350
Offset=-256,-175 Offset=-256,-175
Vertices=3
VertexX=-40,40,0
VertexY=0,0,40
Mass=1
Picture=0,0,220,110 Picture=0,0,220,110
Exclusive=1 Exclusive=1
Components=Cloud=1 Components=Cloud=1
Oversize=1 Oversize=1
StretchGrowth=1 StretchGrowth=1

View File

@ -194,7 +194,7 @@ private func MoveCloud()
// Some other safety. // Some other safety.
if (GetY() <= 5) if (GetY() <= 5)
SetPosition(0, 6); SetPosition(0, 6);
if (GetYDir()!=0) if (GetYDir() != 0)
SetYDir(0); SetYDir(0);
while (Stuck()) while (Stuck())
SetPosition(GetX(), GetY() - 5); SetPosition(GetX(), GetY() - 5);

View File

@ -101,8 +101,6 @@ private func InitEnvironment(int difficulty)
Cloud->SetPrecipitation("Water", 100 + 25 * difficulty); Cloud->SetPrecipitation("Water", 100 + 25 * difficulty);
for (var cloud in FindObjects(Find_ID(Cloud))) for (var cloud in FindObjects(Find_ID(Cloud)))
{ {
while (cloud->RemoveVertex())
/* Empty */;
// Make some clouds appear in the foreground with high alpha. // Make some clouds appear in the foreground with high alpha.
if (Random(3) == 0) if (Random(3) == 0)
{ {

View File

@ -107,9 +107,6 @@ private func InitEnvironment(int difficulty)
// Set time of day to evening and create some clouds and celestials. // Set time of day to evening and create some clouds and celestials.
Cloud->Place(20); Cloud->Place(20);
Cloud->SetPrecipitation("Snow", 20 + 5 * difficulty); Cloud->SetPrecipitation("Snow", 20 + 5 * difficulty);
for (var cloud in FindObjects(Find_ID(Cloud)))
while (cloud->RemoveVertex())
/* Empty */;
CreateObject(Environment_Celestial); CreateObject(Environment_Celestial);
var time = CreateObject(Environment_Time); var time = CreateObject(Environment_Time);