Fix gamemode name in scoreboard

This commit is contained in:
Federico Cecchetto 2022-06-02 16:14:40 +02:00
parent b4e1ba0b7e
commit 5451e58ec6

View File

@ -0,0 +1,9 @@
if (game:issingleplayer()) then
return
end
-- defined in mp_hud/hudutils.lua
function GetGameModeName()
return Engine.Localize(Engine.TableLookup(GameTypesTable.File,
GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
end