Removed debug thing.

This commit is contained in:
Virizion 2016-01-21 23:52:59 -05:00
parent a38319147a
commit 0da921f3d2
1 changed files with 1 additions and 24 deletions

View File

@ -441,13 +441,7 @@ public class SpeedBuilder extends SoloGame
return;
}
//_currentBuild = UtilAlg.Random(_buildData);
do
{
_currentBuild = UtilAlg.Random(_buildData);
}
while (!hasRails(_currentBuild));
_currentBuild = UtilAlg.Random(_buildData);
HashSet<Location> usedBuildLocs = new HashSet<Location>();
@ -485,23 +479,6 @@ public class SpeedBuilder extends SoloGame
setSpeedBuilderState(SpeedBuilderState.VIEWING);
}
public boolean hasRails(BuildData buildData)
{
for (int x = 0; x < BuildSize; x++)
{
for (int y = 0; y < BuildSize; y++)
{
for (int z = 0; z < BuildSize; z++)
{
if (buildData.Build[x][y][z].getType() == Material.RAILS)
return true;
}
}
}
return false;
}
@EventHandler
public void onEnd(GameStateChangeEvent event)
{