shithub: choc

Download patch

ref: f7f82be5007aa3f59409095c64c35c4cb1a10bd7
parent: 0cdd84e7f5ed6851eb8fdf46a270e22dce8178bf
author: Simon Howard <fraggle@soulsphere.org>
date: Thu Sep 28 04:42:45 EDT 2017

net: Add clarifying comments about net_protocol_t.

Thanks @jmtd.

--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -110,7 +110,11 @@
 
 // Supported protocols. If you're developing a fork of Chocolate
 // Doom, you can add your own entry to this list while maintaining
-// compatibility with Chocolate Doom servers.
+// compatibility with Chocolate Doom servers. Higher-numbered enum values
+// will be preferred when negotiating a protocol for the client and server
+// to use, so the order matters.
+// NOTE: The values in this enum do not have any special value outside of
+// the program they're compiled in. What matters is the string representation.
 typedef enum
 {
     // Protocol introduced with Chocolate Doom v3.0. Each compatibility-