mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed #7193
This commit is contained in:
parent
7680b4e0c5
commit
2c6b2a6fa9
@ -162,16 +162,18 @@ public class RepairBeamWeapon extends Weapon{
|
||||
|
||||
HealBeamMount heal = (HealBeamMount)mount;
|
||||
|
||||
float
|
||||
weaponRotation = unit.rotation - 90,
|
||||
wx = unit.x + Angles.trnsx(weaponRotation, x, y),
|
||||
wy = unit.y + Angles.trnsy(weaponRotation, x, y);
|
||||
if(unit.canShoot()){
|
||||
float
|
||||
weaponRotation = unit.rotation - 90,
|
||||
wx = unit.x + Angles.trnsx(weaponRotation, x, y),
|
||||
wy = unit.y + Angles.trnsy(weaponRotation, x, y);
|
||||
|
||||
float z = Draw.z();
|
||||
RepairTurret.drawBeam(wx, wy, unit.rotation + mount.rotation, shootY, unit.id, mount.target == null || controllable ? null : (Sized)mount.target, unit.team, heal.strength,
|
||||
pulseStroke, pulseRadius, beamWidth + Mathf.absin(widthSinScl, widthSinMag), heal.lastEnd, heal.offset, laserColor, laserTopColor,
|
||||
laser, laserEnd, laserTop, laserTopEnd);
|
||||
Draw.z(z);
|
||||
float z = Draw.z();
|
||||
RepairTurret.drawBeam(wx, wy, unit.rotation + mount.rotation, shootY, unit.id, mount.target == null || controllable ? null : (Sized)mount.target, unit.team, heal.strength,
|
||||
pulseStroke, pulseRadius, beamWidth + Mathf.absin(widthSinScl, widthSinMag), heal.lastEnd, heal.offset, laserColor, laserTopColor,
|
||||
laser, laserEnd, laserTop, laserTopEnd);
|
||||
Draw.z(z);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user