X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FGlobals.c;h=cca754aa1ac06fba69bac790434da1c0caabef0b;hb=ce0bba1a070e5e64939491eb68087f68ef8fe870;hp=8f4ff9dc56726f7107628e5959f22dd94a4e7e6d;hpb=20a30378bfde4264628619380057730df6887972;p=rocksndiamonds.git diff --git a/src/game_sp/Globals.c b/src/game_sp/Globals.c index 8f4ff9dc..cca754aa 100644 --- a/src/game_sp/Globals.c +++ b/src/game_sp/Globals.c @@ -52,6 +52,7 @@ int LevelNumber; char *CurPath, *OrigPath, *TmpPath; boolean LevelLoaded; long SignatureDelay; +boolean bSignatureAvailable; boolean bCapturePane; @@ -347,7 +348,6 @@ void InitGlobals() bSignatureAvailable = False; FirstDemoByte = 0x81; MySignature = ""; - InitErrorReporting(); } void InitPseudoCompileFlags() @@ -749,3 +749,37 @@ void ReadLevel() LevelLoaded = True; } + +void Trace(char *Source, char *Message) +{ + printf("::: Trace: Source == '%s', Message == '%s'\n", Source, Message); +} + +void ReportError(char *Source, char *Message) +{ + printf("::: ReportError: Source == '%s', Message == '%s'\n", Source, Message); +} + +int Min(int A, int B) +{ + int Min; + + if (A < B) + Min = A; + else + Min = B; + + return Min; +} + +int Max(int A, int B) +{ + int Max; + + if (A < B) + Max = B; + else + Max = A; + + return Max; +}