aboutsummaryrefslogtreecommitdiffstats
path: root/code
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Handle r_colorbits values better.icculus2009-09-151-3/+2
| | | | | | | Fixes Bugzilla #4244. git-svn-id: svn://svn.icculus.org/quake3/trunk@1610 edf5b092-35ff-0310-97b2-ce42778d08ea
* Enable -fvisibility=hidden on Linux.icculus2009-09-158-7/+17
| | | | | | | | | | | | This will prevent further symbol clashes, and makes the shared libraries 10 to 20 percent smaller. We should enable this on other platforms, too, if we can guarantee they'll use gcc 4.0 or later and the platform supports it. git-svn-id: svn://svn.icculus.org/quake3/trunk@1609 edf5b092-35ff-0310-97b2-ce42778d08ea
* Renamed bot_developer to botDeveloper to prevent symbol clash.icculus2009-09-1511-24/+24
| | | | | | | | | | qagame*.so has a variable named this too, and this confuses the Linux dynamic loader since we're not using -fvisibility=hidden. Fixes Bugzilla #3944. git-svn-id: svn://svn.icculus.org/quake3/trunk@1607 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
* Fix SGI systems choosing an inefficient 36-bit color visual.icculus2009-09-151-0/+8
| | | | | | | | | Now they'll choose 16 or 32 bit correctly with this magic. Fixes Bugzilla #4245. git-svn-id: svn://svn.icculus.org/quake3/trunk@1604 edf5b092-35ff-0310-97b2-ce42778d08ea
* Removed broken music fading code from snd_dma.icculus2009-09-151-6/+2
| | | | | | | Fixes Bugzilla #3757. git-svn-id: svn://svn.icculus.org/quake3/trunk@1603 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed infinite recursion of writing crashlog because we're out of file handles.icculus2009-09-153-8/+26
| | | | | | | Fixes Bugzilla #3772. git-svn-id: svn://svn.icculus.org/quake3/trunk@1602 edf5b092-35ff-0310-97b2-ce42778d08ea
* Don't allow negative arguments to the "wait" console command.icculus2009-09-141-1/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1601 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make q3asm's CodeError print to stderr.icculus2009-09-141-2/+2
| | | | | | | Fixes Bugzilla #3845. git-svn-id: svn://svn.icculus.org/quake3/trunk@1600 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make newly-created prefpath permissions more sane.icculus2009-09-141-3/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1598 edf5b092-35ff-0310-97b2-ce42778d08ea
* Create "~/Library/Application Support" on Mac OS X if it doesn't exist.icculus2009-09-141-1/+5
| | | | | | | | | | Apparently this can happen on freshly-installed Xserves? Also, a moron user could have dragged it to the trash anyhow. Fixes Bugzilla #4052. git-svn-id: svn://svn.icculus.org/quake3/trunk@1597 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
* Try to catch some NaNs that are almost certainly a compiler optimization bug.icculus2009-09-141-0/+8
| | | | | | | Fixes Bugzilla #2998. git-svn-id: svn://svn.icculus.org/quake3/trunk@1595 edf5b092-35ff-0310-97b2-ce42778d08ea
* Allow optional window resizing.icculus2009-09-142-0/+29
| | | | | | | Fixes Bugzilla #2844. git-svn-id: svn://svn.icculus.org/quake3/trunk@1594 edf5b092-35ff-0310-97b2-ce42778d08ea
* Threw in a hack to fix rendering of credits menu in widescreen.icculus2009-09-141-0/+6
| | | | | | | Fixes Bugzilla #2744. git-svn-id: svn://svn.icculus.org/quake3/trunk@1593 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed compiler warnings on gcc 4.3.3 (and probably others).icculus2009-09-141-22/+22
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1592 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed uninitialized variable.icculus2009-09-141-1/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1591 edf5b092-35ff-0310-97b2-ce42778d08ea
* Minor reworking to check command line cvars before Com_InitZoneMemory().icculus2009-09-141-6/+8
| | | | | | | | | | This lets you set com_zoneMegs from the command line (although still not from a config file, but oh well). Fixes Bugzilla #2571. git-svn-id: svn://svn.icculus.org/quake3/trunk@1590 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fixed use of alloca() in libspeex on Solaris, I think.icculus2009-09-141-0/+3
| | | | | | | Fixes Bugzilla #3938. git-svn-id: svn://svn.icculus.org/quake3/trunk@1589 edf5b092-35ff-0310-97b2-ce42778d08ea
* Added s_muteWhenUnfocused cvar (thanks, Chris!).icculus2009-09-141-1/+4
| | | | | | | | Fixes Bugzilla #3768. git-svn-id: svn://svn.icculus.org/quake3/trunk@1588 edf5b092-35ff-0310-97b2-ce42778d08ea
* SetTeam fix from Martin Doucha.icculus2009-09-141-4/+4
| | | | | | | | | | | | | | | | | | | | | "Actually, client->ps.clientNum is unsafe. We had a little hunt for this some time ago in Tremulous last year (it caused kick failures, annoying popup windows and other nasty bugs). The problem is that a following spectator gets full copy of client->ps of the followed player including clientNum. If you then try to use this "shared" clientNum, you might affect someone else than you wanted. r1019 changes are safe as long as bots don't spectate players. However, a brief grep on current code has revealed unsafe client->ps.clientNum usage in SetTeam(). If a following spectator uses team command when forced balance is on, it'll count teams incorrectly and send the error message to the followed player instead. Here's the fix." Fixes Bugzilla #2986. git-svn-id: svn://svn.icculus.org/quake3/trunk@1587 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix warning in cl_main.ctma2009-09-145-17/+53
| | | | | | * Fix bug #4026 (SDL dx backend doesn't work on some machines) git-svn-id: svn://svn.icculus.org/quake3/trunk@1586 edf5b092-35ff-0310-97b2-ce42778d08ea
* Better handling of "voip" console command.icculus2009-09-141-1/+19
| | | | | | | | | | Prints usage info and current gain values, and catches a case where we report an error where no error exists. Fixes Bugzilla #4018. git-svn-id: svn://svn.icculus.org/quake3/trunk@1585 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix typo in cl_avi.c (Ben Millwood/bubu^)tma2009-09-081-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1583 edf5b092-35ff-0310-97b2-ce42778d08ea
* More 3966 business:zakk2009-07-071-9/+6
| | | | | | | | http://bugzilla.icculus.org/show_bug.cgi?id=3966 I'm hopeful that the server browser will surrender. git-svn-id: svn://svn.icculus.org/quake3/trunk@1581 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix for bad ping times, see bug 3966 but note that this patch is different, ↵zakk2009-07-041-1/+4
| | | | | | | | | got a fresh one from Amanieu in irc. git-svn-id: svn://svn.icculus.org/quake3/trunk@1580 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Add error handling for Opensolaris f***ing up a numeric getnameinfo() call.thilo2009-06-261-24/+29
| | | | | | | | - Fix memory leak in getaddrinfo() call Many thanks to Ben Millwood for reporting this. git-svn-id: svn://svn.icculus.org/quake3/trunk@1579 edf5b092-35ff-0310-97b2-ce42778d08ea
* - fix typo in previous commit to net_ip.cthilo2009-06-232-23/+58
| | | | | | | - 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
* Move these definitions over for other files to use in preparation of the ↵thilo2009-06-232-7/+8
| | | | | | next commit git-svn-id: svn://svn.icculus.org/quake3/trunk@1577 edf5b092-35ff-0310-97b2-ce42778d08ea
* minor cleanupthilo2009-06-231-11/+11
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1576 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix setsockopt so that setting the IPV6ONLY flag really works.thilo2009-06-221-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1575 edf5b092-35ff-0310-97b2-ce42778d08ea
* This patch from Monk fixes the q3asm help screenzakk2009-06-141-6/+7
| | | | | | | | Bugzilla bug 3986 http://bugzilla.icculus.org/show_bug.cgi?id=3986 git-svn-id: svn://svn.icculus.org/quake3/trunk@1574 edf5b092-35ff-0310-97b2-ce42778d08ea
* See here:zakk2009-06-133-0/+10
| | | | | | | http://bugzilla.icculus.org/show_bug.cgi?id=4064 git-svn-id: svn://svn.icculus.org/quake3/trunk@1573 edf5b092-35ff-0310-97b2-ce42778d08ea
* < sg_Tequila> says that this is busted. Thilo will hopefully be pleased.zakk2009-06-101-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1572 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix code cleanupthilo2009-06-101-7/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1571 edf5b092-35ff-0310-97b2-ce42778d08ea
* minor code cleanupthilo2009-06-101-10/+7
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1570 edf5b092-35ff-0310-97b2-ce42778d08ea
* How did this happen?thilo2009-06-101-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1569 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix highest file descriptor for select(), thanks to Ben Millwood for reportingthilo2009-06-051-3/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1568 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make client send a random challenge number in getchallenge requeststhilo2009-06-011-22/+46
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1567 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make servers echo challenge codes from client getchallenge commandsthilo2009-06-014-60/+68
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1566 edf5b092-35ff-0310-97b2-ce42778d08ea
* Replace a few sprintf with Com_sprintfthilo2009-06-013-5/+5
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1565 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix warning in Sys_RandomBytes() usagethilo2009-05-311-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1564 edf5b092-35ff-0310-97b2-ce42778d08ea
* I'll retain the new way seeding the random number generator.. these calls ↵thilo2009-05-314-9/+1
| | | | | | 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-315-11/+17
| | | | 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-315-17/+28
| | | | | | | - Replaced all engine-side occurances of rand() with random() git-svn-id: svn://svn.icculus.org/quake3/trunk@1561 edf5b092-35ff-0310-97b2-ce42778d08ea
* Make command net_restart work so that port/ip settings can be changed ↵thilo2009-05-292-40/+38
| | | | | | without server restart git-svn-id: svn://svn.icculus.org/quake3/trunk@1560 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-247-144/+294
| | | | | | | | | | | - 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