Crash fix
This commit is contained in:
@@ -157,7 +157,7 @@ public class ControlPathfinder{
|
|||||||
/** @return whether a path is ready */
|
/** @return whether a path is ready */
|
||||||
public boolean getPathPosition(Unit unit, int pathId, Vec2 destination, Vec2 out){
|
public boolean getPathPosition(Unit unit, int pathId, Vec2 destination, Vec2 out){
|
||||||
//uninitialized
|
//uninitialized
|
||||||
if(threads == null) return false;
|
if(threads == null || !world.tiles.in(World.toTile(destination.x), World.toTile(destination.y))) return false;
|
||||||
|
|
||||||
PathCost costType = unit.type.pathCost;
|
PathCost costType = unit.type.pathCost;
|
||||||
int team = unit.team.id;
|
int team = unit.team.id;
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ public class ContinuousFlameBulletType extends ContinuousBulletType{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Tmp.v1.trns(b.rotation(), realLength * 1.1f);
|
||||||
Drawf.light(b.x, b.y, b.x + Tmp.v1.x, b.y + Tmp.v1.y, lightStroke, lightColor, 0.7f);
|
Drawf.light(b.x, b.y, b.x + Tmp.v1.x, b.y + Tmp.v1.y, lightStroke, lightColor, 0.7f);
|
||||||
Draw.reset();
|
Draw.reset();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user