mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Send string to serverLog instead of strucText
Fix `Performance warning: SimpleSerialization::Read 'ace_common_remoteFnc' is using type of ,'TEXT' which is not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types`
This commit is contained in:
parent
8e6a057f52
commit
9064579a65
@ -1,19 +1,24 @@
|
|||||||
/*
|
/*
|
||||||
* Author: esteldunedain
|
* Author: esteldunedain
|
||||||
* ?
|
* Log a RPT messaged on just the server
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
* ?
|
* 0: Text to display <STRING>
|
||||||
*
|
*
|
||||||
* Return Value:
|
* Return Value:
|
||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
|
* Example:
|
||||||
|
* ["x happened"] call ace_common_fnc_serverLog;
|
||||||
|
*
|
||||||
* Public: no
|
* Public: no
|
||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
params [["_msg", "", [""]]];
|
||||||
|
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
diag_log _this;
|
diag_log text _msg;
|
||||||
} else {
|
} else {
|
||||||
[_this, QFUNC(serverLog), 1] call FUNC(execRemoteFnc);
|
[_this, QFUNC(serverLog), 1] call FUNC(execRemoteFnc);
|
||||||
};
|
};
|
||||||
|
@ -44,7 +44,7 @@ if (_dir != 1) then {
|
|||||||
deleteMarkerLocal (GVAR(drawing_tempLineMarker) select 0);
|
deleteMarkerLocal (GVAR(drawing_tempLineMarker) select 0);
|
||||||
["drawing_addLineMarker", GVAR(drawing_tempLineMarker)] call EFUNC(common,globalEvent);
|
["drawing_addLineMarker", GVAR(drawing_tempLineMarker)] call EFUNC(common,globalEvent);
|
||||||
// Log who drew on the briefing screen
|
// Log who drew on the briefing screen
|
||||||
(text format ["[ACE] Server: Player %1 drew on the briefing screen", profileName]) call EFUNC(common,serverLog);
|
[ACE_INFOFORMAT_1("Player %1 drew on the briefing screen", profileName)] call EFUNC(common,serverLog);
|
||||||
} else {
|
} else {
|
||||||
GVAR(drawing_tempLineMarker) call FUNC(updateLineMarker);
|
GVAR(drawing_tempLineMarker) call FUNC(updateLineMarker);
|
||||||
GVAR(drawing_lineMarkers) pushBack (+GVAR(drawing_tempLineMarker));
|
GVAR(drawing_lineMarkers) pushBack (+GVAR(drawing_tempLineMarker));
|
||||||
|
Loading…
Reference in New Issue
Block a user