mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Crash fix
This commit is contained in:
parent
c8f81bd9b0
commit
f055e35729
2 changed files with 2 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ public class ControlPathfinder{
|
|||
/** @return whether a path is ready */
|
||||
public boolean getPathPosition(Unit unit, int pathId, Vec2 destination, Vec2 out){
|
||||
//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;
|
||||
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);
|
||||
Draw.reset();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue