In-game block team display / Editor bugfix

This commit is contained in:
Anuken
2019-01-22 15:46:22 -05:00
parent 6229f99a2e
commit 5459a646b3
9 changed files with 19 additions and 12 deletions

View File

@@ -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);
}
/**

View File

@@ -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;