[Custom Views] Refactor ingame_ui fetching

This commit is contained in:
Azumgi 2019-03-25 13:47:05 +03:00
parent f809f35a74
commit 948ce42bc4

View file

@ -398,13 +398,4 @@ end
-- #####################################################################################################################
-- If VMF is reloaded mid-game, get ingame_ui.
local ingame_ui_exists, ingame_ui_return = pcall(function()
if VT1 then
return Managers.player.network_manager.matchmaking_manager.matchmaking_ui.ingame_ui
else
return Managers.player.network_manager.matchmaking_manager._ingame_ui
end
end)
if ingame_ui_exists then
_ingame_ui = ingame_ui_return
end
_ingame_ui = Managers.matchmaking and Managers.matchmaking[VT1 and "ingame_ui" or "_ingame_ui"]