v0.6.1: fixed flare effects rendering incorrectly for the 1st frame
This commit is contained in:
parent
cbc21ef9fb
commit
39eedbd46d
|
@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.effects;
|
|||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.opengl.GLES20;
|
||||
|
||||
import com.watabou.gltextures.SmartTexture;
|
||||
import com.watabou.gltextures.TextureCache;
|
||||
import com.watabou.noosa.Game;
|
||||
|
@ -31,12 +32,13 @@ import com.watabou.noosa.NoosaScript;
|
|||
import com.watabou.noosa.Visual;
|
||||
import com.watabou.utils.PointF;
|
||||
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.nio.FloatBuffer;
|
||||
import java.nio.ShortBuffer;
|
||||
|
||||
import javax.microedition.khronos.opengles.GL10;
|
||||
|
||||
public class Flare extends Visual {
|
||||
|
||||
private float duration = 0;
|
||||
|
@ -117,6 +119,7 @@ public class Flare extends Visual {
|
|||
visual.parent.addToBack( this );
|
||||
|
||||
lifespan = this.duration = duration;
|
||||
scale.set( 0 );
|
||||
|
||||
return this;
|
||||
}
|
||||
|
@ -126,6 +129,7 @@ public class Flare extends Visual {
|
|||
parent.add( this );
|
||||
|
||||
lifespan = this.duration = duration;
|
||||
scale.set( 0 );
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user