mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Renamed variable limit to limitViewDistance
For future limiting of terraingrid
This commit is contained in:
parent
cad86280c1
commit
737b1cc216
@ -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";
|
||||
|
@ -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)];
|
||||
|
@ -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)];
|
Loading…
Reference in New Issue
Block a user