Renamed variable limit to limitViewDistance

For future limiting of terraingrid
This commit is contained in:
SAM 2015-05-09 18:42:02 +02:00
parent cad86280c1
commit 737b1cc216
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ class ACE_Settings {
displayName = "Change View Distance";
description = "Changes in game view distance";
};
class GVAR(limit) {
class GVAR(limitViewDistance) {
typeName = "SCALAR";
value = 10000; // Value, NOT index. 10000 is the maximum in A3
displayName = "View Distance Limit";

View File

@ -21,7 +21,7 @@ private ["_text","_new_view_distance","_view_distance_limit"];
// Change the received index number into an actual view distance:
_new_view_distance = [GVAR(viewDistance)] call FUNC(returnValue);
_view_distance_limit = GVAR(limit); // Grab the limit
_view_distance_limit = GVAR(limitViewDistance); // Grab the limit
if (_new_view_distance <= _view_distance_limit) then {
_text = composeText ["View distance successfully changed to: ",str(_new_view_distance)];

View File

@ -23,6 +23,6 @@ if (!_activated) exitWith {
diag_log text "[ACE]: View Distance Limit Module is placed but NOT active.";
};
[_logic, QGVAR(limit),"moduleViewDistanceLimit"] call EFUNC(common,readSettingFromModule);
[_logic, QGVAR(limitViewDistance),"moduleViewDistanceLimit"] call EFUNC(common,readSettingFromModule);
diag_log format ["[ACE]: View Distance Limit Module Initialized. Limit set by module: %1",GVAR(limit)];
diag_log format ["[ACE]: View Distance Limit Module Initialized. Limit set by module: %1",GVAR(limitViewDistance)];