forked from mirror/openmw-tes3mp
[Server] Change fprintf to LOG_MESSAGE_SIMPLE in GET_PLAYER
This commit is contained in:
parent
186e5fe33e
commit
cef58fa164
1 changed files with 3 additions and 1 deletions
|
@ -25,10 +25,12 @@
|
||||||
#include "ScriptFunction.hpp"
|
#include "ScriptFunction.hpp"
|
||||||
#include "Types.hpp"
|
#include "Types.hpp"
|
||||||
|
|
||||||
|
#include <components/openmw-mp/Log.hpp>
|
||||||
|
|
||||||
#define GET_PLAYER(pid, pl, retvalue) \
|
#define GET_PLAYER(pid, pl, retvalue) \
|
||||||
pl = Players::getPlayer(pid); \
|
pl = Players::getPlayer(pid); \
|
||||||
if (player == 0) {\
|
if (player == 0) {\
|
||||||
fprintf(stderr, "%s: Player with pid \'%d\' not found\n", __PRETTY_FUNCTION__, pid);\
|
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, "%s: Player with pid \'%d\' not found\n", __PRETTY_FUNCTION__, pid);\
|
||||||
/*ScriptFunctions::StopServer(1);*/ \
|
/*ScriptFunctions::StopServer(1);*/ \
|
||||||
return retvalue;\
|
return retvalue;\
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue