mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Print net debug as SERVER for dedicated
This commit is contained in:
parent
4fb39f13dd
commit
83b3feb9db
@ -118,7 +118,11 @@ void NET_GenerateKey()
|
||||
void NET_PrintFunc(const char* fmt, ...)
|
||||
{
|
||||
static char buf[1024];
|
||||
|
||||
#ifndef DEDICATED
|
||||
const static eDLL_T context = eDLL_T::CLIENT;
|
||||
#else // !DEDICATED
|
||||
const static eDLL_T context = eDLL_T::SERVER;
|
||||
#endif
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
|
||||
@ -127,7 +131,7 @@ void NET_PrintFunc(const char* fmt, ...)
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
va_end(args);
|
||||
|
||||
DevMsg(eDLL_T::CLIENT, "%s", buf);
|
||||
DevMsg(context, "%s", buf);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user