Fixed beam drill lasers not pulsing sometimes
This commit is contained in:
@@ -300,7 +300,7 @@ public class BeamDrill extends Block{
|
||||
Point2 p = lasers[i];
|
||||
float lx = face.worldx() - (dir.x/2f)*tilesize, ly = face.worldy() - (dir.y/2f)*tilesize;
|
||||
|
||||
float width = (laserWidth + Mathf.absin(Time.time + i*5 + id*9, glowScl, pulseIntensity)) * warmup;
|
||||
float width = (laserWidth + Mathf.absin(Time.time + i*5 + (id % 9)*9, glowScl, pulseIntensity)) * warmup;
|
||||
|
||||
Draw.z(Layer.power - 1);
|
||||
Draw.mixcol(glowColor, Mathf.absin(Time.time + i*5 + id*9, glowScl, glowIntensity));
|
||||
|
||||
Reference in New Issue
Block a user