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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user