Crash fix

This commit is contained in:
Anuken 2022-05-08 00:03:06 -04:00
parent c8f81bd9b0
commit f055e35729
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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();
}