mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Fixed major quadtree resize bug
This commit is contained in:
parent
88bebc8b99
commit
b992a09c3c
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
@ -50,7 +50,7 @@ public class Control extends RendererModule{
|
||||
public void init(){
|
||||
Musics.shuffleAll();
|
||||
|
||||
Entities.initPhysics(0, 0, pixsize, pixsize);
|
||||
Entities.initPhysics();
|
||||
|
||||
Entities.setCollider(tilesize, (x, y)->{
|
||||
return World.solid(x, y);
|
||||
|
@ -58,7 +58,7 @@ public class GameState{
|
||||
|
||||
Enemy enemy = null;
|
||||
|
||||
if(wave%5 == 0 & pos <= wave/5){
|
||||
if(wave%5 == 0 & pos < wave/5){
|
||||
enemy = new BossEnemy(point);
|
||||
}else if(wave > 3 && pos < amount/2){
|
||||
enemy = new FastEnemy(point);
|
||||
|
@ -59,6 +59,8 @@ public class World{
|
||||
}
|
||||
}
|
||||
|
||||
Entities.resizeTree(0, 0, pixsize, pixsize);
|
||||
|
||||
Generator.generate(id);
|
||||
|
||||
Pathfind.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user