In-game block team display / Editor bugfix
This commit is contained in:
@@ -47,7 +47,7 @@ public class SpawnGroup{
|
||||
}
|
||||
float scaling = this.unitScaling;
|
||||
|
||||
return Math.min(unitAmount - 1 + Math.max((int) ((wave / spacing) / scaling), 1), max);
|
||||
return Math.min(unitAmount - 1 + Math.max((int) (((wave - begin) / spacing) / scaling), 1), max);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -170,7 +170,7 @@ public class Waves{
|
||||
return spawns;
|
||||
}
|
||||
|
||||
public static void testWaves(int from, int to){
|
||||
public static void testWaves(Array<SpawnGroup> spawns, int from, int to){
|
||||
for(int i = from; i <= to; i++){
|
||||
System.out.print(i + ": ");
|
||||
int total = 0;
|
||||
|
||||
Reference in New Issue
Block a user