mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Games: Fix /countdown generate with 64x64x64 being impossible to lose on.
This commit is contained in:
parent
85ce30d0ca
commit
c77d568b94
@ -67,9 +67,8 @@ namespace MCGalaxy.Games {
|
||||
}
|
||||
|
||||
squaresLeft.Clear();
|
||||
int maxX = mapon.Width - 1, maxZ = mapon.Length - 1;
|
||||
for(int zz = 6; zz < maxZ - 6; zz += 3)
|
||||
for (int xx = 6; xx < maxX - 6; xx += 3)
|
||||
for(int zz = 6; zz < mapon.Length - 6; zz += 3)
|
||||
for (int xx = 6; xx < mapon.Width - 6; xx += 3)
|
||||
squaresLeft.Add(new SquarePos(xx, zz));
|
||||
|
||||
if (freezemode)
|
||||
|
@ -105,8 +105,8 @@ namespace MCGalaxy.Games {
|
||||
static void MakeSquares(Level lvl) {
|
||||
int maxX = lvl.Width - 1, maxY = lvl.Height - 1, maxZ = lvl.Length - 1;
|
||||
Cuboid(4, 4, 4, maxX - 4, 4, maxZ - 4, Block.glass, lvl);
|
||||
for(int zz = 6; zz < maxZ - 6; zz += 3)
|
||||
for (int xx = 6; xx < maxX - 6; xx += 3)
|
||||
for(int zz = 6; zz < lvl.Length - 6; zz += 3)
|
||||
for (int xx = 6; xx < lvl.Width - 6; xx += 3)
|
||||
Cuboid(xx, 4, zz, xx + 1, 4, zz + 1, Block.green, lvl);
|
||||
}
|
||||
|
||||
|
@ -74,10 +74,8 @@ namespace MCGalaxy {
|
||||
TimeSpan delta = DateTime.UtcNow - start;
|
||||
wait = speedPhysics - (int)delta.TotalMilliseconds;
|
||||
|
||||
if (wait < (int)(-overload * 0.75f))
|
||||
{
|
||||
if (wait < -overload)
|
||||
{
|
||||
if (wait < (int)(-overload * 0.75f)) {
|
||||
if (wait < -overload) {
|
||||
if (!Server.physicsRestart)
|
||||
setPhysics(0);
|
||||
ClearPhysics();
|
||||
|
Loading…
x
Reference in New Issue
Block a user