summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-28 04:20:56 +0000
committerbelugas <belugas@openttd.org>2007-12-28 04:20:56 +0000
commite9a039b845afb5296a37d8413c8c651b1eb699fb (patch)
tree3e955cb6c9b2d6c09572877bb7dfe3a00eb7a9cc /src/network
parent5087a6cdd76276118bcba6bd4c14425da76eef7d (diff)
downloadopenttd-e9a039b845afb5296a37d8413c8c651b1eb699fb.tar.xz
(svn r11714) -Fix[FS#1569]: Do not allow player inauguration date on scenarios to be bigger than current year.
This will not (yet) be true if you are loading a scenario with the "-g" command line option.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index cd550ee5d..869ae876a 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -810,6 +810,7 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
char *name = FiosBrowseTo(nd->map);
if (name != NULL) {
SetFiosType(nd->map->type);
+ _file_to_saveload.filetype = FT_SCENARIO;
ttd_strlcpy(_file_to_saveload.name, name, sizeof(_file_to_saveload.name));
ttd_strlcpy(_file_to_saveload.title, nd->map->title, sizeof(_file_to_saveload.title));