X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDemo.c;h=7189f5c0f0f82eed7e07686542c15d673a8aa50f;hb=ce0bba1a070e5e64939491eb68087f68ef8fe870;hp=caa7441ce35e67d087377d4a9178e43ed239d5b5;hpb=8d3d7d213a9691455a49544624bf380e85f43461;p=rocksndiamonds.git diff --git a/src/game_sp/Demo.c b/src/game_sp/Demo.c index caa7441c..7189f5c0 100644 --- a/src/game_sp/Demo.c +++ b/src/game_sp/Demo.c @@ -4,13 +4,7 @@ #include "Demo.h" -// static char *VB_Name = "modDemo"; -// --- Option Explicit -// -// Public Function subCloseDemoRecordingFile() -// -// End Function int RecDemoRandomSeed; byte FirstDemoByte; char *MySignature; @@ -46,6 +40,26 @@ void subGetNextDemoKey() ExitToMenuFlag = 1; } } + +#if 0 + printf("::: %04d [%03ld, %02d] ----------> %s [%d] [%d, %d] [%d, %d]\n", + TimerVar, + DemoOffset - DemoPointer, DemoKeyRepeatCounter, + (DemoKeyCode == keyNone ? "(none)" : + DemoKeyCode == keyLeft ? "left" : + DemoKeyCode == keyRight ? "right" : + DemoKeyCode == keyUp ? "up" : + DemoKeyCode == keyDown ? "down" : + DemoKeyCode == keySpace ? "space" : + DemoKeyCode == keySpaceLeft ? "space + left" : + DemoKeyCode == keySpaceRight ? "space + right" : + DemoKeyCode == keySpaceUp ? "space + up" : + DemoKeyCode == keySpaceDown ? "space + down" : "(unknown)"), + DemoKeyCode, + MurphyScreenXPos, MurphyScreenYPos, + MurphyPosIndex % 60, MurphyPosIndex / 60); +#endif + } currency GetTotalFramesOfDemo() @@ -75,8 +89,6 @@ currency GetTotalFramesOfDemo() GetTotalFramesOfDemo = nFrames; return GetTotalFramesOfDemo; - // GetTotalFramesOfDemoEH: - // ReportError "GetTotalFramesOfDemo()", "invalid data detected in file " & OrigPath GetTotalFramesOfDemo = 0; DemoAvailable = False;