v1.1.0: fixed checked cell VFX displaying incorrectly for 1 frame

This commit is contained in:
Evan Debenham 2021-09-19 21:38:35 -04:00
parent 415341bf57
commit a6bfe99b1f

View File

@ -48,7 +48,10 @@ public class CheckedCell extends Image {
this( pos );
delay = (Dungeon.level.trueDistance(pos, visSource)-1f);
//steadily accelerates as distance increases
if (delay > 0) delay = (float)Math.pow(delay, 0.67f)/10f;
if (delay > 0) {
delay = (float)Math.pow(delay, 0.67f)/10f;
alpha( 0 );
}
}
@Override