- removed the file location reporting for Blood errors because it embeds the full path into the executable, which is not acceptable.

This commit is contained in:
Christoph Oelckers 2020-10-07 20:52:25 +02:00
parent 789eb6d51d
commit 6041a3355c
2 changed files with 0 additions and 13 deletions

View file

@ -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__); \
}

View file

@ -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