X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=92fc9120dcee90e756c0f12b3f20054e81dcc795;hb=520916c89d7d96944bf3d66e3caa5afd840df74c;hp=4486656ffd7864693ad47dec5923f471bb0c5d24;hpb=3ff2e8a0b5c27b99a9920bdf5ed82bc41bf40181;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index 4486656f..92fc9120 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -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; @@ -75,14 +73,14 @@ void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) byte single_player_action = action[0]; int x, y; - UpdateEngineValues(mScrollX / TILEX, mScrollY / TILEY); + UpdateEngineValues(mScrollX / TILEX, mScrollY / TILEY, + MurphyScreenXPos / TILEX, MurphyScreenYPos / TILEY); subMainGameLoop_Main(single_player_action, 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);