Skip to content

Commit

Permalink
Minor changes in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero committed Oct 3, 2024
1 parent 2b5478a commit 05f1801
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/spawner/spawner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ bool Spawner::Start_New_Scenario(const char* scenario_name)
}
}

bool Spawner::Load_Saved_Game(const char* save_game_name)
bool Spawner::Load_Saved_Game(const char* file_name)
{
if (!save_game_name[0] || !Load_Game(save_game_name))
if (!file_name[0] || !Load_Game(file_name))
{
DEBUG_INFO("[Spawner] Failed to Load Savegame [%s]\n", save_game_name);
DEBUG_INFO("[Spawner] Failed to load savegame [%s]\n", file_name);
MessageBox(MainWindow, Text_String(TXT_ERROR_LOADING_GAME), "Vinifera", MB_OK);

return false;
Expand Down
6 changes: 3 additions & 3 deletions src/spawner/spawnerconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ void SpawnerConfig::Read_INI(CCINIClass& spawn_ini)
spawn_ini.Get_String(SETTINGS, "UIGameMode", UIGameMode, UIGameMode, sizeof(UIGameMode));

// SaveGame Options
LoadSaveGame = spawn_ini.Get_Bool(SETTINGS, "LoadSaveGame", LoadSaveGame);
LoadSaveGame = spawn_ini.Get_Bool(SETTINGS, "LoadSaveGame", LoadSaveGame);
/* SavedGamesDir */ spawn_ini.Get_String(SETTINGS, "SavedGamesDir", SavedGamesDir, SavedGamesDir, sizeof(SavedGamesDir));
/* SaveGameName */ spawn_ini.Get_String(SETTINGS, "SaveGameName", SaveGameName, SaveGameName, sizeof(SaveGameName));
/* SaveGameName */ spawn_ini.Get_String(SETTINGS, "SaveGameName", SaveGameName, SaveGameName, sizeof(SaveGameName));

// Scenario Options
Seed = spawn_ini.Get_Int(SETTINGS, "Seed", Seed);
Expand All @@ -67,7 +67,7 @@ void SpawnerConfig::Read_INI(CCINIClass& spawn_ini)
WOLGameID = spawn_ini.Get_Int(SETTINGS, "GameID", WOLGameID);
/* ScenarioName */ spawn_ini.Get_String(SETTINGS, "Scenario", ScenarioName, ScenarioName, sizeof(ScenarioName));
/* MapHash */ spawn_ini.Get_String(SETTINGS, "MapHash", MapHash, MapHash, sizeof(MapHash));
spawn_ini.Get_String(SETTINGS, "UIMapName", UIMapName, UIMapName, sizeof(UIMapName));
spawn_ini.Get_String(SETTINGS, "UIMapName", UIMapName, UIMapName, sizeof(UIMapName));

// Network Options
Protocol = spawn_ini.Get_Int(SETTINGS, "Protocol", Protocol);
Expand Down

0 comments on commit 05f1801

Please sign in to comment.