projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030428-1-src
[rocksndiamonds.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index 69ed9f938039936889111782f35b9a8e722d4ab8..40a5126b160dbcff66f561b2c847e1bc91f81fa6 100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-366,7
+366,7
@@
static void TapeStartGameRecording()
else
#endif
{
else
#endif
{
- game_status = PLAYING;
+ game_status =
GAME_MODE_
PLAYING;
StopAnimation();
InitGame();
}
StopAnimation();
InitGame();
}
@@
-511,7
+511,7
@@
static void TapeStartGamePlaying()
{
TapeStartPlaying();
{
TapeStartPlaying();
- game_status = PLAYING;
+ game_status =
GAME_MODE_
PLAYING;
StopAnimation();
InitGame();
}
StopAnimation();
InitGame();
}
@@
-591,8
+591,10
@@
void TapeStop()
DrawVideoDisplay(VIDEO_STATE_TIME_ON, tape.length_seconds);
}
DrawVideoDisplay(VIDEO_STATE_TIME_ON, tape.length_seconds);
}
+#if 0
if (tape.auto_play)
AutoPlayTape(); /* continue automatically playing next tape */
if (tape.auto_play)
AutoPlayTape(); /* continue automatically playing next tape */
+#endif
}
unsigned int GetTapeLength()
}
unsigned int GetTapeLength()
@@
-646,7
+648,7
@@
static void TapeSingleStep()
void TapeQuickSave()
{
void TapeQuickSave()
{
- if (game_status == PLAYING)
+ if (game_status ==
GAME_MODE_
PLAYING)
{
if (tape.recording)
TapeHaltRecording(); /* prepare tape for saving on-the-fly */
{
if (tape.recording)
TapeHaltRecording(); /* prepare tape for saving on-the-fly */
@@
-656,13
+658,13
@@
void TapeQuickSave()
else
SaveTape(tape.level_nr);
}
else
SaveTape(tape.level_nr);
}
- else if (game_status ==
MAINMENU
)
+ else if (game_status ==
GAME_MODE_MAIN
)
Request("No game that can be saved !", REQ_CONFIRM);
}
void TapeQuickLoad()
{
Request("No game that can be saved !", REQ_CONFIRM);
}
void TapeQuickLoad()
{
- if (game_status ==
PLAYING || game_status == MAINMENU
)
+ if (game_status ==
GAME_MODE_PLAYING || game_status == GAME_MODE_MAIN
)
{
TapeStop();
TapeErase();
{
TapeStop();
TapeErase();
@@
-943,7
+945,7
@@
static void HandleTapeButtons(struct GadgetInfo *gi)
{
int id = gi->custom_id;
{
int id = gi->custom_id;
- if (game_status !=
MAINMENU && game_status !=
PLAYING)
+ if (game_status !=
GAME_MODE_MAIN && game_status != GAME_MODE_
PLAYING)
return;
switch (id)
return;
switch (id)