foxygit / doom Log in
commit f7f82be5007aa3f59409095c64c35c4cb1a10bd7
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Thu Sep 28 08:42:45 2017 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Thu Sep 28 08:42:45 2017 -0400

    net: Add clarifying comments about net_protocol_t.

    Thanks @jmtd.
---
 src/net_defs.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/net_defs.h b/src/net_defs.h
index 8b2dbe38..1d791038 100644
--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -110,7 +110,11 @@ struct _net_addr_s

 // 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-