Breaking logic change: Coordinates are now tile-based
This commit is contained in:
@@ -16,6 +16,7 @@ import arc.util.pooling.*;
|
||||
import arc.util.serialization.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.core.*;
|
||||
import mindustry.ctype.*;
|
||||
import mindustry.entities.units.*;
|
||||
import mindustry.game.EventType.*;
|
||||
@@ -608,8 +609,8 @@ public class Schematics implements Loadable{
|
||||
wx = wy;
|
||||
wy = -x;
|
||||
}
|
||||
req.x = (short)(world.toTile(wx - req.block.offset) + ox);
|
||||
req.y = (short)(world.toTile(wy - req.block.offset) + oy);
|
||||
req.x = (short)(World.toTile(wx - req.block.offset) + ox);
|
||||
req.y = (short)(World.toTile(wy - req.block.offset) + oy);
|
||||
req.rotation = (byte)Mathf.mod(req.rotation + direction, 4);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user