mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 14:57:18 +07:00
Fixed major quadtree resize bug
This commit is contained in:
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(){
|
public void init(){
|
||||||
Musics.shuffleAll();
|
Musics.shuffleAll();
|
||||||
|
|
||||||
Entities.initPhysics(0, 0, pixsize, pixsize);
|
Entities.initPhysics();
|
||||||
|
|
||||||
Entities.setCollider(tilesize, (x, y)->{
|
Entities.setCollider(tilesize, (x, y)->{
|
||||||
return World.solid(x, y);
|
return World.solid(x, y);
|
||||||
|
@ -58,7 +58,7 @@ public class GameState{
|
|||||||
|
|
||||||
Enemy enemy = null;
|
Enemy enemy = null;
|
||||||
|
|
||||||
if(wave%5 == 0 & pos <= wave/5){
|
if(wave%5 == 0 & pos < wave/5){
|
||||||
enemy = new BossEnemy(point);
|
enemy = new BossEnemy(point);
|
||||||
}else if(wave > 3 && pos < amount/2){
|
}else if(wave > 3 && pos < amount/2){
|
||||||
enemy = new FastEnemy(point);
|
enemy = new FastEnemy(point);
|
||||||
|
@ -59,6 +59,8 @@ public class World{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Entities.resizeTree(0, 0, pixsize, pixsize);
|
||||||
|
|
||||||
Generator.generate(id);
|
Generator.generate(id);
|
||||||
|
|
||||||
Pathfind.reset();
|
Pathfind.reset();
|
||||||
|
Reference in New Issue
Block a user