X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FMainForm.c;h=1358ab0278fe819540ac5c5d8593c1b25f54b691;hb=148d0ad7e7ac1a97eb50de7ecbb642f36c877311;hp=c3d7476e481fcacab1cd00714922f611e234708b;hpb=2d62255a9cc1edc3692c2597cf338ce50744da96;p=rocksndiamonds.git diff --git a/src/game_sp/MainForm.c b/src/game_sp/MainForm.c index c3d7476e..1358ab02 100644 --- a/src/game_sp/MainForm.c +++ b/src/game_sp/MainForm.c @@ -2523,6 +2523,8 @@ void menPlay_Click() } +#if 0 + // static void menPlayDemo_Click() void menPlayDemo_Click() { @@ -2535,6 +2537,10 @@ void menPlayDemo_Click() menPlay_Click(); +#if 1 + return; +#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()