forked from Mirrors/openclonk
removed cloud vertices
parent
13ab324603
commit
85646c7a8e
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue