added functions to get level position (tile) from screen position (pixel)
[rocksndiamonds.git] / src / game_sp / main.c
index 4486656ffd7864693ad47dec5923f471bb0c5d24..f9dcecc5b63d377473810d2a8611166c5b9bd0cd 100644 (file)
@@ -58,11 +58,9 @@ void RedrawPlayfield_SP(boolean force_redraw)
     RestorePlayfield();
 
   UpdatePlayfield(force_redraw);
-
-  BackToFront_SP();
 }
 
-void DrawGameDoorValues_SP()
+void UpdateGameDoorValues_SP()
 {
   game_sp.time_played = TimerVar / FRAMES_PER_SECOND;
   game_sp.infotrons_still_needed = InfotronsNeeded;
@@ -81,8 +79,7 @@ void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
 
   RedrawPlayfield_SP(FALSE);
 
-  if (!warp_mode)              /* do not redraw values in warp mode */
-    DrawGameDoorValues_SP();
+  UpdateGameDoorValues_SP();
 
   CheckSingleStepMode_SP(PlayField16[MurphyPosIndex] == fiMurphy,
                         HighByte(PlayField16[MurphyPosIndex]) == 0x2A);