Fix gamemode name in scoreboard

This commit is contained in:
Federico Cecchetto 2022-06-02 16:14:40 +02:00
parent 50f654acaa
commit 7ed826d244

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