mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
* net_main.c: added commentary on the driver checks in the code.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@202 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
ada3fb2e20
commit
7782356afe
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue