X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=6db427ff5333ec44191426f5346ee4c32258df1e;hb=765dcb99ef77ec52dd1e5f0a459ce5ffffcc9cd6;hp=1d3085c5c4b9bb47c0fe5f191ea3664b29fd8f7c;hpb=949bbaa0c6aab4490c27d6af317e0fd88bbb71e8;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 1d3085c5..6db427ff 100644 --- a/src/init.c +++ b/src/init.c @@ -5051,6 +5051,9 @@ void Execute_Command(char *command) { Error(ERR_EXIT_HELP, "unrecognized command '%s'", command); } + + /* disable networking if any valid command was recognized */ + options.network = setup.network_mode = FALSE; } static void InitSetup() @@ -5486,6 +5489,8 @@ static void InitLevelInfo() if (leveldir_current == NULL) leveldir_current = getFirstValidTreeInfoEntry(leveldir_first); } + + SetLevelSetInfo(leveldir_current->identifier, level_nr); } static void InitLevelArtworkInfo() @@ -5628,8 +5633,8 @@ void InitNetworkServer() } else { - SendToServer_PlayerName(setup.player_name); SendToServer_ProtocolVersion(); + SendToServer_PlayerName(setup.player_name); SendToServer_NrWanted(setup.network_player_nr + 1); network.connected = TRUE;