From bb1ce5c28d36a6b2f6822a9075b12e8fb705c17b Mon Sep 17 00:00:00 2001 From: Raymonf Date: Wed, 19 Aug 2020 22:39:23 -0400 Subject: [PATCH] fix: MOTD not showing up without config.ini Since we do an early return without a config.ini file, the MOTDSTRING will still be the default std::string value (""), causing the game to output "Gamemaster: ". To fix this, we'll just hardcode the preferred default value for now. --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings.cpp b/src/settings.cpp index d1111ff..65a2f94 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -15,7 +15,7 @@ int settings::SPAWN_X = 179213; int settings::SPAWN_Y = 268451; int settings::SPAWN_Z = -4210; -std::string settings::MOTDSTRING; +std::string settings::MOTDSTRING = "Welcome to OpenFusion!"; void settings::init() { INIReader reader("config.ini");