Fixes imperial / metric menu option setting

This commit is contained in:
FlightControl 2017-07-08 05:00:47 +02:00
parent 06e063d594
commit 367c4d74af

View File

@ -447,7 +447,7 @@ do -- SETTINGS
--- @param #SETTINGS self
function SETTINGS:MenuGroupMWSystem( PlayerUnit, PlayerGroup, PlayerName, MW )
self.Metrics = MW
self.Metric = MW
MESSAGE:New( string.format("Settings: Measurement format set to %s for player %s.", MW and "Metric" or "Imperial", PlayerName ), 5 ):ToGroup( PlayerGroup )
self:RemovePlayerMenu(PlayerUnit)
self:SetPlayerMenu(PlayerUnit)