fixed two bugs with broken sniksnak graphics in SP engine after warp mode
[rocksndiamonds.git] / src / game_sp / DDScrollBuffer.c
index 0992e0be2dba5b90e190c0bce50f5149e6d6f117..f580d3991dc1e5273f32eb49bfb3f99b406b6a60 100644 (file)
@@ -168,6 +168,17 @@ void UpdatePlayfield(boolean force_redraw)
   int num_redrawn = 0;
 #endif
 
+  if (force_redraw)
+  {
+    // force re-initialization of graphics status variables
+    for (y = DisplayMinY; y <= DisplayMaxY; y++)
+      for (x = DisplayMinX; x <= DisplayMaxX; x++)
+       GfxGraphic[x][y] = -1;
+
+    // force complete playfield redraw
+    DisplayLevel();
+  }
+
   for (y = DisplayMinY; y <= DisplayMaxY; y++)
   {
     for (x = DisplayMinX; x <= DisplayMaxX; x++)