diff options
author | Simon Howard | 2006-11-16 00:12:34 +0000 |
---|---|---|
committer | Simon Howard | 2006-11-16 00:12:34 +0000 |
commit | accfe832e42c6650cd801323258917f467c9ce01 (patch) | |
tree | b923d86634391037e8344cc0f2c1024d852e7fb0 | |
parent | 9d60c396b5c9a86e7f189fbb2afad675f42b05b3 (diff) | |
download | chocolate-doom-accfe832e42c6650cd801323258917f467c9ce01.tar.gz chocolate-doom-accfe832e42c6650cd801323258917f467c9ce01.tar.bz2 chocolate-doom-accfe832e42c6650cd801323258917f467c9ce01.zip |
Display lowres turning warning message client-side, not through
server-side broadcast messages. This avoids the possibility of malicious
servers that might not send the message.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 755
-rw-r--r-- | src/net_client.c | 6 | ||||
-rw-r--r-- | src/net_server.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/net_client.c b/src/net_client.c index 71ce3c06..1bfeb3f9 100644 --- a/src/net_client.c +++ b/src/net_client.c @@ -672,6 +672,12 @@ static void NET_CL_ParseGameStart(net_packet_t *packet) printf("Syncing netgames like Vanilla Doom.\n"); } + if (lowres_turn) + { + printf("NOTE: Turning resolution is reduced; this is probably " + "because there is a client recording a Vanilla demo.\n"); + } + // Clear the receive window memset(recvwindow, 0, sizeof(recvwindow)); diff --git a/src/net_server.c b/src/net_server.c index f7023514..0410c7de 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -660,10 +660,6 @@ static void NET_SV_ParseGameStart(net_packet_t *packet, net_client_t *client) { if (sv_players[i] != NULL && sv_players[i]->recording_lowres) { - NET_SV_BroadcastMessage("Playing in low resolution turning mode, " - "because player %i is recording a Vanilla demo.\n", - i + 1); - settings.lowres_turn = true; } } |