1
0

Generator: removed rnd definitions that are never read

This commit is contained in:
archshift 2014-07-17 18:34:47 -07:00
parent 5729b9489d
commit 32b25ec7f7
2 changed files with 0 additions and 2 deletions

View File

@ -997,7 +997,6 @@ cMineShaft * cMineShaftCrossing::CreateAndFit(
BoundingBox.p2.y -= 4; BoundingBox.p2.y -= 4;
} }
} }
rnd >>= 2;
switch (a_Direction) switch (a_Direction)
{ {
case dirXP: BoundingBox.p2.x += 4; BoundingBox.p1.z -= 2; BoundingBox.p2.z += 2; break; case dirXP: BoundingBox.p2.x += 4; BoundingBox.p1.z -= 2; BoundingBox.p2.z += 2; break;

View File

@ -484,7 +484,6 @@ void cStructGenLakes::CreateLakeImage(int a_ChunkX, int a_ChunkZ, cBlockArea & a
const int BubbleY = 4 + (Rnd & 0x01); // 4 .. 5 const int BubbleY = 4 + (Rnd & 0x01); // 4 .. 5
Rnd >>= 1; Rnd >>= 1;
const int BubbleZ = BubbleR + (Rnd % Range); const int BubbleZ = BubbleR + (Rnd % Range);
Rnd >>= 4;
const int HalfR = BubbleR / 2; // 1 .. 2 const int HalfR = BubbleR / 2; // 1 .. 2
const int RSquared = BubbleR * BubbleR; const int RSquared = BubbleR * BubbleR;
for (int y = -HalfR; y <= HalfR; y++) for (int y = -HalfR; y <= HalfR; y++)