mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-05 06:00:33 -04:00
Merge branch 'main' of
https://github.com/ondra-novak/gates_of_skeldal.git into main
This commit is contained in:
parent
1acb374068
commit
fed5a04323
2 changed files with 13 additions and 32 deletions
|
@ -7,7 +7,7 @@
|
|||
#include "error.h"
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -18,8 +18,8 @@ void send_log_impl(const char *format, ...) {
|
|||
va_list args;
|
||||
int task = q_current_task();
|
||||
char buff2[1000];
|
||||
char buff[1000];
|
||||
va_start(args, format);
|
||||
char buff[1334];
|
||||
va_start(args, format);
|
||||
auto reltik = get_game_tick_count() - gtick;
|
||||
double sec = reltik * 0.001;
|
||||
vsnprintf(buff2,1000,format, args);
|
||||
|
@ -27,7 +27,7 @@ void send_log_impl(const char *format, ...) {
|
|||
snprintf(buff, sizeof(buff), "%f [%d] %s\r\n", sec, task, buff2);
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _WIN32
|
||||
OutputDebugStringA(buff);
|
||||
#else
|
||||
std::cerr << buff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue