From 03749a1e2f50f0b477f13cf00d13c74ed2253abf Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 12 Jul 2018 21:32:31 +0200 Subject: [PATCH] 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. --- src/network.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]); -- 2.34.1