- LoadPlayerInfo(PLAYER_SETUP); /* global setup info */
- LoadPlayerInfo(PLAYER_LEVEL); /* level specific info */
+ LoadSetup(); /* global setup info */
+ LoadLevelSetup(); /* info about last played level */
+}
+
+void InitNetworkServer()
+{
+ int nr_wanted;
+
+ if (!options.network)
+ return;
+
+ nr_wanted = Request("Choose player", REQ_PLAYER | REQ_STAY_CLOSED);
+
+ if (!ConnectToServer(options.server_host, options.server_port))
+ Error(ERR_EXIT, "cannot connect to multiplayer server");
+
+ SendToServer_Nickname(setup.alias_name);
+ SendToServer_ProtocolVersion();
+
+ if (nr_wanted)
+ SendToServer_NrWanted(nr_wanted);