shithub: choc

Download patch

ref: accfe832e42c6650cd801323258917f467c9ce01
parent: 9d60c396b5c9a86e7f189fbb2afad675f42b05b3
author: Simon Howard <[email protected]>
date: Wed Nov 15 19:12:34 EST 2006

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

--- a/src/net_client.c
+++ b/src/net_client.c
@@ -672,6 +672,12 @@
 	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));
--- a/src/net_server.c
+++ b/src/net_server.c
@@ -660,10 +660,6 @@
     {
         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;
         }
     }