changed simple "printf()" debug output to new debug log function
[rocksndiamonds.git] / src / game_sp / DDScrollBuffer.c
index 0db7e7fd2af75a00ef34dbc429e676d1c6395c92..6976f939b875f2fda62338796de4e22e17c3ef5a 100644 (file)
@@ -185,7 +185,7 @@ void UpdatePlayfield(boolean force_redraw)
     {
       int element = LowByte(PlayField16[GetSI(x, y)]);
       int graphic = GfxGraphic[x][y];
-      int sync_frame = GfxFrame[x][y];
+      int sync_frame = GfxFrameSP[x][y];
       boolean redraw = force_redraw;
 
       if (graphic < 0)
@@ -212,7 +212,7 @@ void UpdatePlayfield(boolean force_redraw)
 
        GfxElementLast[x][y] = element;
        GfxGraphicLast[x][y] = GfxGraphic[x][y];
-       sync_frame = GfxFrame[x][y] = 0;
+       sync_frame = GfxFrameSP[x][y] = 0;
       }
       else if (isNextAnimationFrame_SP(graphic, sync_frame))   // new frame
       {
@@ -234,7 +234,7 @@ void UpdatePlayfield(boolean force_redraw)
   }
 
 #if DEBUG_REDRAW
-  printf("::: FRAME %d: %d redrawn\n", FrameCounter, num_redrawn);
+  Debug("game:playing:SP", "FRAME %d: %d redrawn", FrameCounter, num_redrawn);
 #endif
 }