From 6041a3355c3213b651e60bd8c4fb34dde27d7e09 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 7 Oct 2020 20:52:25 +0200 Subject: [PATCH] - removed the file location reporting for Blood errors because it embeds the full path into the executable, which is not acceptable. --- source/blood/src/common_game.h | 2 -- source/blood/src/globals.cpp | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/source/blood/src/common_game.h b/source/blood/src/common_game.h index cebe888f3..c5cec7676 100644 --- a/source/blood/src/common_game.h +++ b/source/blood/src/common_game.h @@ -42,14 +42,12 @@ void _consoleSysMsg(const char* pMessage, ...); #define ThrowError(...) \ { \ - _SetErrorLoc(__FILE__,__LINE__); \ I_Error(__VA_ARGS__); \ } // print error to console only #define consoleSysMsg(...) \ { \ - _SetErrorLoc(__FILE__,__LINE__); \ _consoleSysMsg(__VA_ARGS__); \ } diff --git a/source/blood/src/globals.cpp b/source/blood/src/globals.cpp index 14eebbde3..50d02ab04 100644 --- a/source/blood/src/globals.cpp +++ b/source/blood/src/globals.cpp @@ -55,15 +55,4 @@ void _SetErrorLoc(const char *pzFile, int nLine) _line = nLine; } -// by NoOne: show warning msgs in game instead of throwing errors (in some cases) -void _consoleSysMsg(const char* pzFormat, ...) { - - char buffer[1024]; - va_list args; - va_start(args, pzFormat); - vsprintf(buffer, pzFormat, args); - - Printf(TEXTCOLOR_RED "%s(%i): %s\n", _module, _line, buffer); -} - END_BLD_NS