diff options
author | Simon Howard | 2014-04-19 15:04:13 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-19 15:04:13 -0400 |
commit | 81b5839ab1ee28a5acd1e903ae83064bd5c80283 (patch) | |
tree | 0780145c106f616cf7996833fde1b172abb032f8 /src/net_server.c | |
parent | 7d238f61488d550b5bfbe5075b923723bb5d0cfb (diff) | |
download | chocolate-doom-81b5839ab1ee28a5acd1e903ae83064bd5c80283.tar.gz chocolate-doom-81b5839ab1ee28a5acd1e903ae83064bd5c80283.tar.bz2 chocolate-doom-81b5839ab1ee28a5acd1e903ae83064bd5c80283.zip |
server: Fix sending of WAD/DEH checksums to clients.
Clients receive the WAD and dehacked checksums of the controlling
player and are supposed to display a warning at the startup screen if
they do not match. However, reversed logic in the code that sends the
waiting data to clients meant that they were always sent their own
checksums, so the error message was never displayed.
This fixes #384.
Diffstat (limited to 'src/net_server.c')
-rw-r--r-- | src/net_server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_server.c b/src/net_server.c index ef0ab7b5..1b8e934d 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -412,7 +412,7 @@ static void NET_SV_SendWaitingData(net_client_t *client) // If no controller found (?), send the details that the client // is expecting anyway. - if (controller != NULL) + if (controller == NULL) { controller = client; } |