+2007-09-12
+ * fixed some problems with displaying game panel when quick-loading tape
+
2007-09-07
* fixed (experimental only) redrawing of every tile per frame (even if
unneeded) for the extended (R'n'D based) EMC graphics engine
-#define COMPILE_DATE_STRING "2007-09-08 02:19"
+#define COMPILE_DATE_STRING "2007-09-12 23:07"
game_status = GAME_MODE_PLAYING;
}
+void UpdateAndDisplayGameControlValues()
+{
+ if (tape.warp_forward)
+ return;
+
+ UpdateGameControlValues();
+ DisplayGameControlValues();
+}
+
void DrawGameValue_Emeralds(int value)
{
struct TextPosInfo *pos = &game.panel.gems;
SetPanelBackground();
SetDrawBackgroundMask(REDRAW_DOOR_1);
+#if 1
+ UpdateAndDisplayGameControlValues();
+#else
UpdateGameDoorValues();
DrawGameDoorValues();
+#endif
if (!game.restart_level)
{
DrawVideoDisplay(VIDEO_STATE_TIME_ON, TapeTime);
}
+#if 1
+ UpdateAndDisplayGameControlValues();
+#else
UpdateGameDoorValues();
DrawGameDoorValues();
+#endif
}
void AdvanceFrameAndPlayerCounters(int player_nr)
void DrawGameValue_Time(int);
void DrawGameDoorValues(void);
+void UpdateAndDisplayGameControlValues();
+
void InitGameSound();
void InitGame();
#else /* AUDIO_UNIX_NATIVE */
+ clear_mem(&header, sizeof(struct SoundHeader_WAV)); /* to make gcc happy */
+
if ((file = fopen(filename, MODE_READ)) == NULL)
{
Error(ERR_WARN, "cannot open sound file '%s'", filename);
/* needed if last screen was the editor screen */
UndrawSpecialEditorDoor();
+#if 0
if (fade_mask == REDRAW_FIELD)
BackToFront();
#endif
+#endif
#if defined(TARGET_SDL)
SetDrawtoField(DRAW_BACKBUFFER);
FadeIn(fade_mask);
FadeSetEnterMenu();
+#if 1
+ /* update screen area with special editor door */
+ redraw_mask |= REDRAW_ALL;
+ BackToFront();
+#endif
+
SetMouseCursor(CURSOR_DEFAULT);
InitAnimation();
DrawVideoDisplay(VIDEO_STATE_DATE_ON, tape.date);
DrawVideoDisplay(VIDEO_STATE_PLAY_OFF | VIDEO_STATE_REC_ON, 0);
+
+#if 1
+ UpdateAndDisplayGameControlValues();
+#endif
}
void TapeHaltRecording()