summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ttd.c b/ttd.c
index 1dbedac10..42d19f411 100644
--- a/ttd.c
+++ b/ttd.c
@@ -728,9 +728,7 @@ int ttd_main(int argc, char* argv[])
LoadIntroGame();
_switch_mode = SM_NONE;
NetworkClientConnectGame(network_conn, rport);
- } else {
-// NetworkCoreConnectGame("auto", _network_server_port);
- }
+ }
}
#endif /* ENABLE_NETWORK */
@@ -760,6 +758,9 @@ int ttd_main(int argc, char* argv[])
/* uninitialize variables that are allocated dynamic */
UnInitializeDynamicVariables();
+ /* Close all and any open filehandles */
+ FioCloseAll();
+
return 0;
}