commit 81b5839ab1ee28a5acd1e903ae83064bd5c80283
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Apr 19 15:04:13 2014 -0400
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Apr 19 15:04:13 2014 -0400
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.
---
src/net_server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}