Removed debug thing.

This commit is contained in:
Virizion 2016-01-21 23:52:59 -05:00
parent a38319147a
commit 0da921f3d2

View File

@ -441,13 +441,7 @@ public class SpeedBuilder extends SoloGame
return; return;
} }
//_currentBuild = UtilAlg.Random(_buildData); _currentBuild = UtilAlg.Random(_buildData);
do
{
_currentBuild = UtilAlg.Random(_buildData);
}
while (!hasRails(_currentBuild));
HashSet<Location> usedBuildLocs = new HashSet<Location>(); HashSet<Location> usedBuildLocs = new HashSet<Location>();
@ -485,23 +479,6 @@ public class SpeedBuilder extends SoloGame
setSpeedBuilderState(SpeedBuilderState.VIEWING); 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 @EventHandler
public void onEnd(GameStateChangeEvent event) public void onEnd(GameStateChangeEvent event)
{ {