From: Holger Schemel Date: Thu, 12 Jul 2018 19:32:31 +0000 (+0200) Subject: fixed using private level set if network game level set not found X-Git-Tag: 4.1.1.0~84 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=03749a1e2f50f0b477f13cf00d13c74ed2253abf;ds=sidebyside fixed using private level set if network game level set not found Before, if a network client started playing a level from a level set that is not installed for some other network client, that client did a fallback to playing the default private level set. This caused the network clients effectively playing completely different levels with the input actions of the other clients, which does not make any sense. Now, the network game is stopped for all clients in such a case. --- diff --git a/src/network.c b/src/network.c index 657c796b..0b3c6a8f 100644 --- a/src/network.c +++ b/src/network.c @@ -620,8 +620,9 @@ static void Handle_OP_START_PLAYING() { Error(ERR_WARN, "no such level identifier: '%s'", new_leveldir_identifier); - new_leveldir = leveldir_first; - Error(ERR_WARN, "using default level set: '%s'", new_leveldir->identifier); + stop_network_game = TRUE; + + return; } printf("OP_START_PLAYING: %d\n", buffer[0]);