aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * (bug 3712) MSVC build fix s/strtof/strtod/ (Pat Raynor <raynorpat@gmail.com>)tma2008-07-091-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1423 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Rename voip cvar to cl_voiptma2008-07-075-12/+169
| | | | | | | | | * 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
* * Remove silly range check on sv_voip during initialisationtma2008-07-061-1/+1
| | | | | | | * 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
* * Change dedicated cvar to CVAR_LATCH on the dedicated servertma2008-07-061-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1407 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend tma2008-07-052-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | <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
* Thanks to Lakitu7 for pointing this out.zakk2008-06-171-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1388 edf5b092-35ff-0310-97b2-ce42778d08ea
* bind ipv6 sockets firstludwig2008-06-121-20/+21
| | | | | | | | by binding the ipv6 sockets first it's possible to bind 0.0.0.0 and :: to the same port. git-svn-id: svn://svn.icculus.org/quake3/trunk@1386 edf5b092-35ff-0310-97b2-ce42778d08ea
* show numeric address the server binds toludwig2008-06-121-6/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1385 edf5b092-35ff-0310-97b2-ce42778d08ea
* Add PRODUCT_VERSION back into q_shared.h for MSVC builds.juz2008-06-041-0/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1367 edf5b092-35ff-0310-97b2-ce42778d08ea
* Changed the protocol for VoIP packets to support legacy clients.icculus2008-06-033-7/+35
| | | | | | | | | | | | | 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
* Initial patch for in-game VoIP support!icculus2008-06-011-2/+10
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1348 edf5b092-35ff-0310-97b2-ce42778d08ea