mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
refactor: use getter rather than direct access for fast limit settings
This commit is contained in:
@@ -549,12 +549,12 @@ if ( RADAR:IsFastLimitAllowed() ) then
|
||||
|
||||
-- Returns the numerical fast limit
|
||||
function RADAR:GetFastLimit()
|
||||
return self.vars.settings["fastLimit"]
|
||||
return self:GetSettingValue( "fastLimit" )
|
||||
end
|
||||
|
||||
-- Returns if the fast lock menu option is on or off
|
||||
function RADAR:IsFastLockEnabled()
|
||||
return self.vars.settings["fastLock"]
|
||||
return self:GetSettingValue( "fastLock" )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user