mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- 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:
parent
789eb6d51d
commit
6041a3355c
2 changed files with 0 additions and 13 deletions
|
@ -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__); \
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue