Skip to content

Commit

Permalink
Update fnc_initDisplayRemoteMissions.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Mar 19, 2022
1 parent 391c1dd commit 640ea1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/ui/fnc_initDisplayRemoteMissions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ private _fnc_findMissions = {
_display setVariable [QGVAR(stockMissions), _stockMissions];

// Show worldnames as tooltips on map list
private _mapNames = createHashMap;
private _worldNames = createHashMap;
{
private _worldName = configName _x;
private _description = getText (configFile >> "CfgWorlds" >> _worldName >> "description");
_mapNames set [_description, _worldname];
_worldNames set [_description, _worldname];
} forEach (configProperties [configfile >> "CfgWorldList", "isClass _x"]);
for "_index" from 0 to ((lbSize _ctrlMaps) - 1) do {
private _description = _ctrlMaps lbText _index;
private _worldName = _mapNames getOrDefault [_description, ""];
private _worldName = _worldNames getOrDefault [_description, ""];
_ctrlMaps lbSetTooltip [_index, _worldName];
};

Expand Down

0 comments on commit 640ea1e

Please sign in to comment.