aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
Commit message (Collapse)AuthorAgeFilesLines
* 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
* - 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-231-1/+1
| | | | | | | - 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
* 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 servers echo challenge codes from client getchallenge commandsthilo2009-06-011-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1566 edf5b092-35ff-0310-97b2-ce42778d08ea
* Replace a few sprintf with Com_sprintfthilo2009-06-011-3/+3
| | | | 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-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-311-4/+4
| | | | 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-311-4/+22
| | | | | | | - 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
* - Introduce new NET_CompareBaseAdrMask for easy comparison of ip address rangesthilo2009-05-242-12/+64
| | | | | | | | | | | - 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
* Minor code cleanupsthilo2009-05-211-13/+8
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1555 edf5b092-35ff-0310-97b2-ce42778d08ea
* make Cvar_Command use all arguments just like Cvar_Set_f (#4063)ludwig2009-05-081-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1546 edf5b092-35ff-0310-97b2-ce42778d08ea
* cvarlist: also display systeminfo and user created flagsludwig2009-05-081-0/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1545 edf5b092-35ff-0310-97b2-ce42778d08ea
* whitespace correctionludwig2009-05-081-10/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1544 edf5b092-35ff-0310-97b2-ce42778d08ea
* define STRING and XSTRING in q_shared.h (#4054)ludwig2009-05-052-2/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1539 edf5b092-35ff-0310-97b2-ce42778d08ea
* align stack before re-entering engine to make sse work (#4051)ludwig2009-05-021-0/+5
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1533 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove superfluous comments committed with fix to bug #3999tma2009-03-021-4/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1508 edf5b092-35ff-0310-97b2-ce42778d08ea
* initialize qport with random value instead of time (#3999)ludwig2009-03-021-1/+8
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1506 edf5b092-35ff-0310-97b2-ce42778d08ea
* qcommon: vm: Add sparc JIT compiler.ludwig2009-03-022-0/+1726
| | | | | | Signed-off-by: David S. Miller <davem@davemloft.net> git-svn-id: svn://svn.icculus.org/quake3/trunk@1503 edf5b092-35ff-0310-97b2-ce42778d08ea
* qcommon: vm: sparc, like 386, doesn't need var-args conversion.ludwig2009-03-021-1/+1
| | | | | | Signed-off-by: David S. Miller <davem@davemloft.net> git-svn-id: svn://svn.icculus.org/quake3/trunk@1502 edf5b092-35ff-0310-97b2-ce42778d08ea
* qcommon: Add idsparc and set when __sparc__ && !C_ONLYludwig2009-03-021-0/+7
| | | | | | Signed-off-by: David S. Miller <davem@davemloft.net> git-svn-id: svn://svn.icculus.org/quake3/trunk@1501 edf5b092-35ff-0310-97b2-ce42778d08ea
* * s/FS_FilenameIsExecutable/FS_CheckFilenameIsNotExecutable/gtma2009-02-261-13/+14
| | | | | | | * Fix potential buffer under run in FS_CheckFilenameIsNotExecutable git-svn-id: svn://svn.icculus.org/quake3/trunk@1499 edf5b092-35ff-0310-97b2-ce42778d08ea
* security fix: prevent command injection via callvoteludwig2009-01-172-0/+17
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1493 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix some new GCC 4.3 warningstma2008-11-106-53/+70
| | | | | | | * Fix many many strict aliasing warnings, now that it's re-enabled git-svn-id: svn://svn.icculus.org/quake3/trunk@1487 edf5b092-35ff-0310-97b2-ce42778d08ea
* realloc vm->instructionPointers on ppc64ludwig2008-11-101-78/+96
| | | | | | | | | rename VM_Malloc, VM_Free to PPC_Malloc, PPC_Free safer constant optimization handling Patch by Przemysław Iskra (#3796) git-svn-id: svn://svn.icculus.org/quake3/trunk@1483 edf5b092-35ff-0310-97b2-ce42778d08ea
* new PowerPC vmludwig2008-11-103-0/+3317
| | | | | | Patch by Przemysław Iskra (#3796) git-svn-id: svn://svn.icculus.org/quake3/trunk@1482 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix strict aliasing issuesludwig2008-11-036-53/+38
| | | | | | Patch by Przemysław Iskra (#3805) git-svn-id: svn://svn.icculus.org/quake3/trunk@1481 edf5b092-35ff-0310-97b2-ce42778d08ea
* fix 64bit VM interface to work on ppc64 (#3838)ludwig2008-11-031-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1480 edf5b092-35ff-0310-97b2-ce42778d08ea
* Patch to make getnameinfo() call work on OpenBSD systems. Created by ↵thilo2008-10-291-3/+10
| | | | | | agent59692154@spamcorptastic.com git-svn-id: svn://svn.icculus.org/quake3/trunk@1475 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move command argument completion from being hard coded to being associatedtma2008-09-164-89/+87
| | | | | | | 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-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1471 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Add Com_HexStrToInttma2008-09-052-97/+80
| | | | | | | | | | * Fixed some whacky indentation in q_shared.c * Allow single character keys e.g. 'c' to be used in cl_consoleKeys in addition to ASCII characters * Experimental code to ignore dead keys git-svn-id: svn://svn.icculus.org/quake3/trunk@1470 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Add scope id to ipv6 addresses.thilo2008-08-313-9/+13
| | | | | | | | | | - 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 to console completion bug introduced by the last fix (from the oopstma2008-08-301-1/+1
| | | | | | | dept.) git-svn-id: svn://svn.icculus.org/quake3/trunk@1465 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Collapse common command completion code into one function and fix thetma2008-08-271-57/+38
| | | | | | | | incorrect buffer size parameter to strncpy (from the how-the-fuck-did-this-ever-work dept.) git-svn-id: svn://svn.icculus.org/quake3/trunk@1460 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Handle dead keys more gracefully by taking a "best guess" rather than ignoringtma2008-08-251-0/+8
| | | | | | | | | | completely * When activating or deactivating the mouse flush any pending motion events; this should stop the view moving unpredictably in these circumstances * Add keyname completion to "unbind" git-svn-id: svn://svn.icculus.org/quake3/trunk@1459 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix unused variable warningtma2008-08-231-1/+1
| | | | | | | * Add USE_LOCAL_HEADERS guards to sys_loadlib.h git-svn-id: svn://svn.icculus.org/quake3/trunk@1458 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug #3729) server dependencies on client.h (Ben Millwood)tma2008-08-225-22/+19
| | | | | | | | | | | * (bug #3731) BUILD_MISSIONPACK flag in Makefile (Gabriel Schnoering <gabriel.schnoering@gmail.com>) * (bug #3756) Q3VM crashes on unaligned block copy with SIGBUS (Patrick Baggett <baggett.patrick@figglesoftware.com>) and... * (bug #3755) IOQuake3 shouldn't use GCC-specific __FUNCTION__ git-svn-id: svn://svn.icculus.org/quake3/trunk@1456 edf5b092-35ff-0310-97b2-ce42778d08ea
* * More robust x86 vm entrypoint/callback assembly (Tron)tma2008-08-171-96/+74
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1448 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Use IPv6 header qcommon/wspiapi.h if it has been added by the end usertma2008-08-091-43/+50
| | | | | | | * Update README to explain the Windows XP requirement git-svn-id: svn://svn.icculus.org/quake3/trunk@1444 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix memory leak in win32 VM code (arQon/dmitry)tma2008-08-062-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1438 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Change win32 client Sys_Sleep so it ONLY sleeps since before it was waking on tma2008-08-031-1/+8
| | | | | | | | | | | | | | more or less any input event; fine for the server, not so much use for the client * In the main loop, don't bother sleeping if it's going to be less than 10ms as the methods we're using to sleep at the moment aren't very precise * Add Sys_PlatformInit for platform specific initialisation * In win32 Sys_PlatformInit force selection of the DirectX SDL backend in order to get better fullscreen mouse input (in conjunction with a patched SDL DLL http://bugzilla.libsdl.org/show_bug.cgi?id=265) git-svn-id: svn://svn.icculus.org/quake3/trunk@1434 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Sign check com_maxfps* variablestma2008-07-211-3/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1432 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Use Sys_Sleep to limit FPS, which will save CPUtma2008-07-212-2/+19
| | | | | | | | * Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory * Fix reopening of bug 3703, I hope git-svn-id: svn://svn.icculus.org/quake3/trunk@1431 edf5b092-35ff-0310-97b2-ce42778d08ea