Skip to content

Commit

Permalink
Fixed #8830
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jul 23, 2023
1 parent ce43af9 commit 10fe6b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/mindustry/entities/bullet/BulletType.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,12 @@ public ContentType getContentType(){
bullet.time = 0f;
bullet.originX = x;
bullet.originY = y;
bullet.aimTile = world.tileWorld(aimX, aimY);
if(!(aimX == -1f && aimY == -1f)){
bullet.aimTile = world.tileWorld(aimX, aimY);
}
bullet.aimX = aimX;
bullet.aimY = aimY;

bullet.initVel(angle, speed * velocityScl);
if(backMove){
bullet.set(x - bullet.vel.x * Time.delta, y - bullet.vel.y * Time.delta);
Expand Down

0 comments on commit 10fe6b9

Please sign in to comment.