X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FMainForm.c;h=4f7bee91c9cf26c209f0b9e9f882bdb04dfce4ed;hb=055b582fdcaeddfa6dbb240eb591ec61f37e21d3;hp=c3d7476e481fcacab1cd00714922f611e234708b;hpb=2d62255a9cc1edc3692c2597cf338ce50744da96;p=rocksndiamonds.git diff --git a/src/game_sp/MainForm.c b/src/game_sp/MainForm.c index c3d7476e..4f7bee91 100644 --- a/src/game_sp/MainForm.c +++ b/src/game_sp/MainForm.c @@ -2523,6 +2523,8 @@ void menPlay_Click() } +#if 1 + // static void menPlayDemo_Click() void menPlayDemo_Click() { @@ -2535,6 +2537,10 @@ void menPlayDemo_Click() menPlay_Click(); +#if 1 + return; /* return after initialization phase */ +#endif + #if 0 if (LevelStatus != 1) lblStatus = "Demo Failed"; @@ -2543,6 +2549,30 @@ void menPlayDemo_Click() DemoFlag = 0; } +#else + +// static void menPlayDemo_Click() +void menPlayDemo_Click() +{ + DemoFlag = 1; + RecordDemoFlag = 0; + +#if 0 + lblStatus = "Demo Playback"; +#endif + + menPlay_Click(); + +#if 0 + if (LevelStatus != 1) + lblStatus = "Demo Failed"; +#endif + + DemoFlag = 0; +} + +#endif + #if 0 static void menRec_Click()