v0.4.3b: gamescene now sets its static reference after initialization

This commit is contained in:
Evan Debenham 2016-11-02 18:49:39 -04:00
parent 44e91ee771
commit f35392fd8d

View File

@ -156,8 +156,6 @@ public class GameScene extends PixelScene {
super.create(); super.create();
Camera.main.zoom( GameMath.gate(minZoom, defaultZoom + ShatteredPixelDungeon.zoom(), maxZoom)); Camera.main.zoom( GameMath.gate(minZoom, defaultZoom + ShatteredPixelDungeon.zoom(), maxZoom));
scene = this;
terrain = new Group(); terrain = new Group();
add( terrain ); add( terrain );
@ -380,6 +378,8 @@ public class GameScene extends PixelScene {
fadeIn(); fadeIn();
} }
scene = this;
} }
public void destroy() { public void destroy() {