Explorar o código

refresh layers in sync() instead of draw()

ncannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
e663b715b3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      h2d/CdbLevel.hx

+ 2 - 1
h2d/CdbLevel.hx

@@ -449,7 +449,8 @@ class CdbLevel extends Layers {
 				redrawLayer(l);
 	}
 
-	override function draw(ctx:RenderContext) {
+	override function sync(ctx:RenderContext) {
+		super.sync(ctx);
 		for( l in layers ) {
 			if( l.needRedraw )
 				redrawLayer(l);