18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-19 22:44:59 +01:00

fix(settings): the gfxrenderer word read in any case, as the starter reads it

A hand-written "gfxrenderer Legacy" started the legacy renderer only because every unknown word did; with unknown words going to the full renderer it would have changed. The word is lowercased when read, as StarterNG's RenderEngineOf does, so Legacy, Simple or Full mean what they say.
This commit is contained in:
maj00r
2026-11-15 23:22:50 +01:00
parent 68c33922a6
commit aaff0a430b

View File

@@ -321,6 +321,8 @@ bool global_settings::ConfigParseGraphics(cParser& Parser, const std::string& to
if (token == "gfxrenderer")
{
ParseOne(Parser, GfxRenderer);
// read in any case, as the starter does: "Legacy" written by hand is the legacy renderer
GfxRenderer = ToLower(GfxRenderer);
if (GfxRenderer == "full")
GfxRenderer = "default";