Fixed non-even assembler modules not working
This commit is contained in:
@@ -241,8 +241,8 @@ public class UnitAssembler extends PayloadBlock{
|
|||||||
|
|
||||||
public boolean moduleFits(Block other, float ox, float oy, int rotation){
|
public boolean moduleFits(Block other, float ox, float oy, int rotation){
|
||||||
float
|
float
|
||||||
dx = ox + Geometry.d4x(rotation) * (other.size/2 + 1) * tilesize,
|
dx = ox + Geometry.d4x(rotation) * (other.size/2f + 0.5f) * tilesize,
|
||||||
dy = oy + Geometry.d4y(rotation) * (other.size/2 + 1) * tilesize;
|
dy = oy + Geometry.d4y(rotation) * (other.size/2f + 0.5f) * tilesize;
|
||||||
|
|
||||||
Vec2 spawn = getUnitSpawn();
|
Vec2 spawn = getUnitSpawn();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user