mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 10:25:42 +07:00
Fixed editor crash
This commit is contained in:
parent
9574f742e1
commit
8993c1db04
Binary file not shown.
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 567 B |
@ -6971,7 +6971,7 @@ water-edge
|
||||
sprites4.png
|
||||
size: 2048,1024
|
||||
format: RGBA8888
|
||||
filter: Nearest,Nearest
|
||||
filter: MipMapLinearLinear,Linear
|
||||
repeat: none
|
||||
alloy-smelter-icon-editor
|
||||
rotate: false
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 843 KiB After Width: | Height: | Size: 843 KiB |
Binary file not shown.
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 127 KiB |
@ -39,7 +39,7 @@ public class MapEditor{
|
||||
|
||||
loading = true;
|
||||
createTiles(width, height);
|
||||
renderer.resize(width(), height());
|
||||
renderer.resize(width, height);
|
||||
loading = false;
|
||||
}
|
||||
|
||||
|
@ -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++){
|
||||
|
@ -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;
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=07d1bede12332e51be13f3cd6d3deabc86a95eef
|
||||
archash=35b389b71386e7eb9bcffed7e61f015144fd182f
|
||||
|
Loading…
Reference in New Issue
Block a user