Fixed editor crash

This commit is contained in:
Anuken
2020-06-07 13:28:22 -04:00
parent 9574f742e1
commit 8993c1db04
8 changed files with 5 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ public class MapEditor{
loading = true;
createTiles(width, height);
renderer.resize(width(), height());
renderer.resize(width, height);
loading = false;
}

View File

@@ -37,6 +37,8 @@ public class MapRenderer implements Disposable{
}
public void resize(int width, int height){
updates.clear();
delayedUpdates.clear();
if(chunks != null){
for(int x = 0; x < chunks.length; x++){
for(int y = 0; y < chunks[0].length; y++){

View File

@@ -29,8 +29,6 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc{
baseRotation = Mathf.slerpDelta(baseRotation, Mathf.angle(deltaX(), deltaY()), 0.1f);
}
Log.info(baseRotation);
float rot = baseRotation;
int count = type.legCount;
float legLength = type.legLength;