Fixed variable privatization

This commit is contained in:
Michael Braun 2015-08-24 23:26:03 +02:00
parent 93acdbcb4d
commit 431bd309a8
5 changed files with 11 additions and 4 deletions

View File

@ -26,6 +26,8 @@
if (!GVAR(enabled) || !visibleMap) exitWith {};
private["_color", "_drawPosVariableName", "_group", "_grpName", "_pos", "_unitUID"];
params ["_mapHandle"];
// Iterate over all nearby players and render their pointer if player is transmitting.

View File

@ -16,6 +16,8 @@
*/
#include "script_component.hpp"
private "_proximityPlayers";
params ["_unit", "_range"];
_proximityPlayers = (getPos _unit) nearEntities [["CAMAnBase"], _range];

View File

@ -17,6 +17,8 @@
*/
#include "script_component.hpp"
private ["_color", "_configurationGroupMappings", "_configurationIndex", "_configurations", "_leadColor"];
params ["_logic", "_units", "_activated"];
if (!_activated || !isServer) exitWith {};

View File

@ -17,10 +17,11 @@
*/
#include "script_component.hpp"
params ["_logic", "_units", "_activated"];
private ["_defaultColor", "_defaultLeadColor"];
if (!_activated) exitWith {};
if (!isServer) exitWith {};
params ["_logic", "", "_activated"];
if (!_activated || !isServer) exitWith {};
[_logic, QGVAR(enabled), "enabled"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(maxRange), "maxRange"] call EFUNC(common,readSettingFromModule);

View File

@ -16,7 +16,7 @@
*/
#include "script_component.hpp"
private ["_proximityPlayers", "_ownerID", "_unitUID", "_drawPosVariableName"];
private ["_ownerID", "_unitUID", "_drawPosVariableName", "_playerOwnerID"];
params ["", "_pfhId"];