summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-20 16:42:37 +0200
committerPatric Stout <github@truebrain.nl>2021-04-20 17:24:38 +0200
commitf4bd3fff5ebfdd7c58ccaf23977b8447c740b48a (patch)
tree77173187508289e9a5a4b1f1cb67bdee5b251a74 /src/openttd.cpp
parent17d00537a15b30f06b5a3bb800a7f26ce4eec359 (diff)
downloadopenttd-f4bd3fff5ebfdd7c58ccaf23977b8447c740b48a.tar.xz
Remove: "map_name" from server announcements / listing
The idea back in the days was nice, but it never resulted in anything useful. Most servers either read "(loaded game)" or "Random Map", neither being useful. It was meant for heightmaps, so you could find a server that was using a specific one .. but there are many things wrong with that idea. Mostly, servers tend to save and load savegames from time to time, after which the original heightmap used was lost. All in all, removing map_name all together is just better.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 4d820d4db..ff6867c4b 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1048,9 +1048,6 @@ void SwitchToMode(SwitchMode new_mode)
case SM_RESTARTGAME: // Restart --> 'Random game' with current settings
case SM_NEWGAME: // New Game --> 'Random game'
- if (_network_server) {
- seprintf(_network_game_info.map_name, lastof(_network_game_info.map_name), "Random Map");
- }
MakeNewGame(false, new_mode == SM_NEWGAME);
break;
@@ -1073,18 +1070,12 @@ void SwitchToMode(SwitchMode new_mode)
IConsoleCmdExec("exec scripts/game_start.scr 0");
/* Decrease pause counter (was increased from opening load dialog) */
DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE);
- if (_network_server) {
- seprintf(_network_game_info.map_name, lastof(_network_game_info.map_name), "%s (Loaded game)", _file_to_saveload.title);
- }
}
break;
}
case SM_RESTART_HEIGHTMAP: // Load a heightmap and start a new game from it with current settings
case SM_START_HEIGHTMAP: // Load a heightmap and start a new game from it
- if (_network_server) {
- seprintf(_network_game_info.map_name, lastof(_network_game_info.map_name), "%s (Heightmap)", _file_to_saveload.title);
- }
MakeNewGame(true, new_mode == SM_START_HEIGHTMAP);
break;