v0.3.4: fixed a bug with multiple entries and crashes relating to the game log
This commit is contained in:
committed by
Evan Debenham
parent
d3273054ee
commit
108e466516
@@ -20,16 +20,16 @@
|
||||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.watabou.noosa.RenderedTextMultiline;
|
||||
import com.watabou.noosa.ui.Component;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.watabou.noosa.RenderedTextMultiline;
|
||||
import com.watabou.noosa.ui.Component;
|
||||
import com.watabou.utils.Signal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class GameLog extends Component implements Signal.Listener<String> {
|
||||
|
||||
private static final int MAX_LINES = 3;
|
||||
@@ -43,7 +43,7 @@ public class GameLog extends Component implements Signal.Listener<String> {
|
||||
|
||||
public GameLog() {
|
||||
super();
|
||||
GLog.update.add( this );
|
||||
GLog.update.replace( this );
|
||||
|
||||
recreateLines();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user