From: Holger Schemel Date: Sun, 17 Jun 2018 10:26:02 +0000 (+0200) Subject: fixed showing message request if local player stopped network game (finally) X-Git-Tag: 4.1.1.0~111 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=830015715a325bc617caacae668c31fa6976cb25;p=rocksndiamonds.git fixed showing message request if local player stopped network game (finally) With the previous fix (see commit with same commit message) for this problem, the message request was still shown if the local player was remapped to a different player in the actual level. --- diff --git a/src/network.c b/src/network.c index 0e5955c6..2bbdf6b1 100644 --- a/src/network.c +++ b/src/network.c @@ -541,7 +541,8 @@ static void Handle_OP_STOP_PLAYING() { int client_nr = buffer[0]; int index_nr = client_nr - 1; - boolean stopped_by_remote_player = (index_nr != local_player->index_nr); + struct PlayerInfo *client_player = &stored_player[index_nr]; + boolean stopped_by_remote_player = (!client_player->connected_locally); char *message = (buffer[2] == NETWORK_STOP_BY_PLAYER ? "Network game stopped by player!" : buffer[2] == NETWORK_STOP_BY_ERROR ?