From b2bb022eb5a479ac97c6864534260759f9cb0ee8 Mon Sep 17 00:00:00 2001 From: sezero Date: Sun, 20 Jun 2010 15:19:58 +0000 Subject: [PATCH] * net_main.c: added commentary on the driver checks in the code. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@202 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/net_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quakespasm/Quake/net_main.c b/quakespasm/Quake/net_main.c index 0f299f21..813bcb0f 100644 --- a/quakespasm/Quake/net_main.c +++ b/quakespasm/Quake/net_main.c @@ -80,6 +80,13 @@ cvar_t config_modem_hangup = {"_config_modem_hangup", "AT H", true}; #define sfunc net_drivers[sock->driver] #define dfunc net_drivers[net_driverlevel] +/* NOTE: several sock->driver checks in the code serve the + purpose of ignoring local connections, because the loop + driver always takes number 0: it is the first member in + the net_drivers[] array. If you ever change that, such + as by removing the loop driver, you must re-visit those + checks and adjust them properly!. */ + int net_driverlevel;