aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
Commit message (Collapse)AuthorAgeFilesLines
* * (bug #4232) Avoid "cl.snap.serverTime < cl.oldFrameServerTime" for slowtma2009-10-151-0/+9
| | | | | | | loading clients combined with short g_warmups git-svn-id: svn://svn.icculus.org/quake3/trunk@1670 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix netcode inconsistency, thanks to /dev/humancontroller for the patch, see ↵thilo2009-10-121-1/+1
| | | | | | http://bugzilla.icculus.org/show_bug.cgi?id=4060 git-svn-id: svn://svn.icculus.org/quake3/trunk@1661 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix circumventing sv_maxping restriction, thanks to Amanieu for reporting. ↵thilo2009-10-082-16/+34
| | | | | | http://bugzilla.icculus.org/show_bug.cgi?id=3423 git-svn-id: svn://svn.icculus.org/quake3/trunk@1649 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix incorrect commenttma2009-10-051-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1643 edf5b092-35ff-0310-97b2-ce42778d08ea
* Add received rcon command string to server log, see ↵thilo2009-09-171-2/+2
| | | | | | https://bugzilla.icculus.org/show_bug.cgi?id=3748 git-svn-id: svn://svn.icculus.org/quake3/trunk@1633 edf5b092-35ff-0310-97b2-ce42778d08ea
* Removed more unused variables.icculus2009-09-153-8/+3
| | | | | | | Partially fixes Bugzilla #3782. git-svn-id: svn://svn.icculus.org/quake3/trunk@1612 edf5b092-35ff-0310-97b2-ce42778d08ea
* Removed unused variables.icculus2009-09-151-3/+0
| | | | | | | | | CM_LeadArea() has no side effects, so those could go, too. Partially fixes Bugzilla #3782. git-svn-id: svn://svn.icculus.org/quake3/trunk@1611 edf5b092-35ff-0310-97b2-ce42778d08ea
* When dropping bots, don't move to CS_ZOMBIE. Go straight to CS_FREE.icculus2009-09-151-5/+10
| | | | | | | | | | They aren't a real network connection, so you don't want to waste time before opening the slot for humans. Fixes Bugzilla #4243. git-svn-id: svn://svn.icculus.org/quake3/trunk@1605 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed triggering Com_Error() when kicking a large number of bots at once.icculus2009-09-141-1/+1
| | | | | | | Fixes Bugzilla #3418. git-svn-id: svn://svn.icculus.org/quake3/trunk@1596 edf5b092-35ff-0310-97b2-ce42778d08ea
* - fix typo in previous commit to net_ip.cthilo2009-06-231-22/+57
| | | | | | | - Make servers send heartbeats to master servers in ipv4 as well as ipv6 if master server has both protocols git-svn-id: svn://svn.icculus.org/quake3/trunk@1578 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make servers echo challenge codes from client getchallenge commandsthilo2009-06-013-59/+67
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1566 edf5b092-35ff-0310-97b2-ce42778d08ea
* I'll retain the new way seeding the random number generator.. these calls ↵thilo2009-05-311-1/+0
| | | | | | are therefore redundant git-svn-id: svn://svn.icculus.org/quake3/trunk@1563 edf5b092-35ff-0310-97b2-ce42778d08ea
* Revert changes of rand() to random() as random() was redefined in quake3.thilo2009-05-312-3/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1562 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Introduce seeding of the random number generator at startupthilo2009-05-312-3/+2
| | | | | | | - Replaced all engine-side occurances of rand() with random() git-svn-id: svn://svn.icculus.org/quake3/trunk@1561 edf5b092-35ff-0310-97b2-ce42778d08ea
* This could never have worked in the first place. Duh.thilo2009-05-281-2/+7
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1559 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Introduce new NET_CompareBaseAdrMask for easy comparison of ip address rangesthilo2009-05-245-132/+230
| | | | | | | | | | | - Overhaul of the new banning functions: * basic check for redundant bans/exceptions * introduction of sv_banFile to make it possible to configure the file where to read bans and exceptions from * bans can now be deleted by giving address ranges, too. git-svn-id: svn://svn.icculus.org/quake3/trunk@1557 edf5b092-35ff-0310-97b2-ce42778d08ea
* More commentary to source codethilo2009-05-211-1/+25
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1554 edf5b092-35ff-0310-97b2-ce42778d08ea
* whitespace fixesludwig2009-05-081-26/+26
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1552 edf5b092-35ff-0310-97b2-ce42778d08ea
* SV_ReplacePendingServerCommands is unusedludwig2009-05-081-0/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1551 edf5b092-35ff-0310-97b2-ce42778d08ea
* mark functions static (#4010)ludwig2009-05-087-43/+43
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1550 edf5b092-35ff-0310-97b2-ce42778d08ea
* msg->oob is actually qboolean (#4010)ludwig2009-05-081-4/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1549 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix STANDALONE challengeResponse (#4000)ludwig2009-03-021-5/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1505 edf5b092-35ff-0310-97b2-ce42778d08ea
* security fix: prevent command injection via callvoteludwig2009-01-171-0/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1493 edf5b092-35ff-0310-97b2-ce42778d08ea
* gamename is already a cvar with CVAR_SERVERINFOludwig2009-01-111-1/+0
| | | | | | do not set gamename to different values in getstatus and getinfo responses git-svn-id: svn://svn.icculus.org/quake3/trunk@1490 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix strict aliasing issuesludwig2008-11-031-8/+3
| | | | | | Patch by Przemysław Iskra (#3805) git-svn-id: svn://svn.icculus.org/quake3/trunk@1481 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move command argument completion from being hard coded to being associatedtma2008-09-161-0/+15
| | | | | | | with the individual commands to be completed git-svn-id: svn://svn.icculus.org/quake3/trunk@1472 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Supply specific identifier to the master server (Mathieu Olivier)tma2008-09-151-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1471 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Add scope id to ipv6 addresses.thilo2008-08-311-2/+6
| | | | | | | | | | - Clean up a few other ipv6 issues like removing the seemingly unnecessary MacOSX workaround. - Bring ipv6 master server up to speed for dpmaster Thanks go out to Mathieu Olivier for this work. git-svn-id: svn://svn.icculus.org/quake3/trunk@1468 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix server info string voip settingtma2008-07-081-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1422 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Rename voip cvar to cl_voiptma2008-07-075-20/+17
| | | | | | | | | * s/#if USE_VOIP/#ifdef USE_VOIP/ * Add generalised runtime cvar range checking, currently on [sv|cl]_voip, dedicated and a bunch of r_ variables git-svn-id: svn://svn.icculus.org/quake3/trunk@1420 edf5b092-35ff-0310-97b2-ce42778d08ea
* Reverted svn revision #1410 to sv_init.cicculus2008-07-061-0/+4
| | | | | | | | sv_voip is a protocol version number, not a boolean, so this check is reasonable and correct. git-svn-id: svn://svn.icculus.org/quake3/trunk@1419 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove silly range check on sv_voip during initialisationtma2008-07-062-12/+0
| | | | | | | * Changed dedicated binary dedicated cvar to CVAR_INIT and remove runtime check git-svn-id: svn://svn.icculus.org/quake3/trunk@1410 edf5b092-35ff-0310-97b2-ce42778d08ea
* * In the dedicated binary, prevent setting dedicated cvar to 0tma2008-07-061-0/+8
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1408 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend tma2008-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | <TylerSchwend@gmail.com>) * (bug 3623) COMMAND is mapped to the ALT key (Matthias <Kapffer@macbay.de>) * (bug 3665) Typo error in FS_FOpenFileByMode function (TsT <tst2006@gmail.com>) * (bug 3669) Some files left out of Solaris Packages (Vincent Cojot <vincent@cojot.name>) * (bug 3680) server quit messages (Ben Millwood) * (bug 3682) Maps with >1024 models cause a segfault (misantropia <bnoordhuis@gmail.com>) * (bug 3683) R_FindShader(): negative lightmap indexes cause stray pointers (misantropia <bnoordhuis@gmail.com>) * (bug 3688) q3asm potential segfault fix and other changes (TsT <tst2006@gmail.com>) * (bug 3695) Not allowing to write file with lib extention (.dll/.so/...) (TsT <tst2006@gmail.com>) * (bug 3696) make-macosx-ub.sh outdated by revision 1340; test for Tiger not working (Matthias <Kapffer@macbay.de>) * (bug 3698) #error reported as warning in q3cpp (and no #warning support) (Ben Millwood) * (bug 3703) restoring the valued pre-SDL window behaviour (/dev/humancontroller <devhc97@gmail.com>) git-svn-id: svn://svn.icculus.org/quake3/trunk@1405 edf5b092-35ff-0310-97b2-ce42778d08ea
* Changed the protocol for VoIP packets to support legacy clients.icculus2008-06-031-1/+23
| | | | | | | | | | | | | Previously, a legacy client wouldn't get a VoIP packet, but if they did, they'd panic and disconnect. Now they ignore them and continue on. This also gives us the framework to add other features legacy clients can ignore. Oh, this also has the benefit of allowing us to store incoming VoIP for playback in recorded demos. They'll play the chatter on VoIP clients, and be ignored on legacy ones. Huge win. git-svn-id: svn://svn.icculus.org/quake3/trunk@1361 edf5b092-35ff-0310-97b2-ce42778d08ea
* More VoIP work: treat voip/sv_voip cvars as protocol version numbers.icculus2008-06-021-1/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1358 edf5b092-35ff-0310-97b2-ce42778d08ea
* Treat sv_voip cvar as a version number (0 == off, 1 == version 1 protocol).icculus2008-06-022-1/+7
| | | | | | | Don't publish it to server's info string if set to zero. git-svn-id: svn://svn.icculus.org/quake3/trunk@1357 edf5b092-35ff-0310-97b2-ce42778d08ea
* sv_voip cvar should be latched.icculus2008-06-021-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1356 edf5b092-35ff-0310-97b2-ce42778d08ea
* Initial patch for in-game VoIP support!icculus2008-06-015-0/+247
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1348 edf5b092-35ff-0310-97b2-ce42778d08ea
* One minor comment fixthilo2008-04-121-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1314 edf5b092-35ff-0310-97b2-ce42778d08ea
* - fix a potential file descriptor leak in server side of pak downloadingthilo2008-04-125-1/+450
| | | | | | | - add new functions for banning clients from server, in engine part. This will also make it possible to ban ipv6 addresses in old mods. git-svn-id: svn://svn.icculus.org/quake3/trunk@1312 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Revamp in-game server browser: you can now scan for games on multiple ↵thilo2008-04-111-4/+2
| | | | | | | | | master servers, while retaining compatibility with old QVMs. - Make Master server reporting/server queries ipv6 capable. git-svn-id: svn://svn.icculus.org/quake3/trunk@1311 edf5b092-35ff-0310-97b2-ce42778d08ea
* Add com_standalone cvar for at-runtime handling of mods that do not require ↵thilo2008-04-102-4/+10
| | | | | | the original quake3 game data. git-svn-id: svn://svn.icculus.org/quake3/trunk@1309 edf5b092-35ff-0310-97b2-ce42778d08ea
* Include #ifdef to make it easier to create a stand-alone binary.thilo2008-04-094-4/+17
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1307 edf5b092-35ff-0310-97b2-ce42778d08ea
* Add Multicast capabilities for LAN server scanning.thilo2008-04-091-0/+5
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1305 edf5b092-35ff-0310-97b2-ce42778d08ea
* Basic IPv6 support. Some inspiration from the patches by Lubos Dolezel and ↵thilo2008-04-043-42/+52
| | | | | | JF Tremblay at https://bugzilla.icculus.org/show_bug.cgi?id=2355. git-svn-id: svn://svn.icculus.org/quake3/trunk@1290 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Replace vsprintf function in bg_lib.c with vsnprintf implementation ↵thilo2008-03-252-2/+2
| | | | | | | | | started by Patrick Powell. - Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf. git-svn-id: svn://svn.icculus.org/quake3/trunk@1277 edf5b092-35ff-0310-97b2-ce42778d08ea
* * send along the reason for disconnection when sending the disconnect tjw2007-12-311-1/+1
| | | | | | | | | | cmd to all clients in SV_FinalMessage() * on Com_Error(), set the cvar "com_errorCode" with the errorParm_t integer value for the error. This can be used by a mod's ui to an draw error dialog specific for the error (e.g. Reconnect button on ERR_SERVERDISCONNECT) git-svn-id: svn://svn.icculus.org/quake3/trunk@1245 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3420) Don't respect sv_killserver unless a server is actually runningtma2007-11-231-0/+5
| | | | | | | * (bug 3431) USERINFO cvars created in cg_main not getting sent (arQon) git-svn-id: svn://svn.icculus.org/quake3/trunk@1216 edf5b092-35ff-0310-97b2-ce42778d08ea
* * rewrite of the win32 dedicated console:tjw2007-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | 1) NET_Sleep() no longer watches for input, Sys_Sleep() added for waiting on input. 2) Added "CtrlHandler" for trapping Ctrl-C and other quit methods not handled by signals on windows 3) Added history support 4) Added tab completion 5) Removed automatic cursor/scroll adjustment (too problematic) 6) Enable mousewheel scrolling 7) Stop using the InputBuffer for editing This seems to work pretty well now, but I jumped the gun on a previous commit message by saying you can scroll now without locking up your server. That was only true up until the point that a server tried to print to the console, at that point it will hang until you release the scroll bar :( It may be possible to get around this by using a seperate thread for console output, but that's a whole new can of worms. git-svn-id: svn://svn.icculus.org/quake3/trunk@1182 edf5b092-35ff-0310-97b2-ce42778d08ea