aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/common.c
Commit message (Collapse)AuthorAgeFilesLines
* - Replace vsprintf function in bg_lib.c with vsnprintf implementation ↵thilo2008-03-251-1/+1
| | | | | | | | | 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
* * Write q3config_server.cfg for the server, to avoid reseting client variablestma2008-02-281-2/+2
| | | | | | | after running a dedicated server git-svn-id: svn://svn.icculus.org/quake3/trunk@1269 edf5b092-35ff-0310-97b2-ce42778d08ea
* * send along the reason for disconnection when sending the disconnect tjw2007-12-311-0/+2
| | | | | | | | | | 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 3454) Fix crash in autocompletion due to incorrect strncpy buffer sizetma2007-12-031-3/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1226 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Unconditionally place a '\' at the start of the command buffer whentma2007-10-121-38/+90
| | | | | | | | | | | autocompleting -- you're still all WRONG :p * Fix bugette where the completee didn't get its case copied from the completed token * Add functionality to autocomplete key names * Don't build client command completion on the dedicated server git-svn-id: svn://svn.icculus.org/quake3/trunk@1195 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Merge unified-sdl to trunktma2007-09-051-91/+169
| | | | | | | * Bump Q3_VERSION to 1.35 git-svn-id: svn://svn.icculus.org/quake3/trunk@1161 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix a few -pedantic warningstma2007-07-251-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1120 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3019) use the operating system's random number generator if possibletjw2007-02-161-0/+21
| | | | | | | when generating the qkey file git-svn-id: svn://svn.icculus.org/quake3/trunk@1046 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Remove "server crashed" message on server shutdown caused by local client ↵thilo2006-10-271-7/+7
| | | | | | | | | disconnect. - Stop demo recording on a new gamestate packet so the demo won't end with a new level load. git-svn-id: svn://svn.icculus.org/quake3/trunk@956 edf5b092-35ff-0310-97b2-ce42778d08ea
* Go back to rev. 874. ATM, there is no good way to make FS_Restart() behave ↵thilo2006-08-281-5/+5
| | | | | | as it was originally described. git-svn-id: svn://svn.icculus.org/quake3/trunk@880 edf5b092-35ff-0310-97b2-ce42778d08ea
* More fixes for the FS_Shutdown change. Declare qconsole.log as closed before ↵thilo2006-08-281-2/+1
| | | | | | | | | FS_Shutdown closes all files. git-svn-id: svn://svn.icculus.org/quake3/trunk@879 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix crash when recording to files and the map changes. Was caused by new, ↵thilo2006-08-281-3/+4
| | | | | | | | | correct, behaviour of FS_Restart() which would close the files before they'd be closed by the client. git-svn-id: svn://svn.icculus.org/quake3/trunk@878 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Print the SVN version string in Com_Init()tjw2006-08-251-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@869 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix 100% CPU usage on idle dedicated servers.thilo2006-08-181-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@850 edf5b092-35ff-0310-97b2-ce42778d08ea
* * sv_minRate (from R1CH)tma2006-06-171-0/+5
| | | | | | | * [cl|sv]_packetdelay (from tjw) git-svn-id: svn://svn.icculus.org/quake3/trunk@808 edf5b092-35ff-0310-97b2-ce42778d08ea
* Replaced various "baseq3" strings with the centrally defined BASEGAME macro.thilo2006-04-261-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@724 edf5b092-35ff-0310-97b2-ce42778d08ea
* - botlib logfile now gets stored in the fs_game directory in fs_homepath. ↵thilo2006-04-211-5/+16
| | | | | | | | | | | (patch from Erik Auerswald) - Added proper error handling when fopening qconsole.log - Fixed bug where r_chat.c gets loaded in botlib even when bot_nochat is 1. git-svn-id: svn://svn.icculus.org/quake3/trunk@715 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Displace the '\n's passed to SV_Shutdowntma2006-02-281-4/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@594 edf5b092-35ff-0310-97b2-ce42778d08ea
* - change long to intptr_t for 64bit windows compatabilityludwig2006-02-181-3/+3
| | | | | | | | - change vmMain arguments back to int. 64bit types are apparently not needed there. Only the syscall function needs them. git-svn-id: svn://svn.icculus.org/quake3/trunk@550 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Persistent console historytma2006-01-241-1/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@522 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Overhaul of console autocompletiontma2006-01-221-64/+199
| | | | | | | | | | - No longer does weird stuff like move the cursor inappropriately - Autocomplete works with compound commands - Special autocomplete on some commands e.g. \map, \demo - Removed various hacks used to counter the original autocomplete code git-svn-id: svn://svn.icculus.org/quake3/trunk@514 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix a bug with command/cvar autocompletiontma2006-01-211-1/+6
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@512 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix to a stupid bug I introduced whilst trying to be clevertma2006-01-151-2/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@485 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Up the defaults for zone and hunk memory since some mods (UT) have largetma2006-01-051-13/+16
| | | | | | | | memory requirements that will have increased versus 1.32b due to some of the alignment fixes git-svn-id: svn://svn.icculus.org/quake3/trunk@461 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix the MinGW and (hopefully) OS X buildstma2006-01-041-310/+0
| | | | | | | * Remove custom memcpy/memset code git-svn-id: svn://svn.icculus.org/quake3/trunk@456 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replaced ALIGN macro with PADtma2005-12-051-2/+2
| | | | | | | * Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h git-svn-id: svn://svn.icculus.org/quake3/trunk@417 edf5b092-35ff-0310-97b2-ce42778d08ea
* Better altivec cvar handling. Should fix crashes at startup, or curious icculus2005-12-041-2/+28
| | | | | | | people that toggle it on at runtime on a G3. git-svn-id: svn://svn.icculus.org/quake3/trunk@410 edf5b092-35ff-0310-97b2-ce42778d08ea
* Mac OS X work...lots of little changes that touch a lot of random places.icculus2005-11-261-1/+8
| | | | | | | | | | | | | | | Still work to be done, but this at least matches the PowerPC Linux status now. MacOS-specific directory (and XCode project) is gone...this now uses SDL, OpenAL, and the Unix Makefiles. --ryan. git-svn-id: svn://svn.icculus.org/quake3/trunk@373 edf5b092-35ff-0310-97b2-ce42778d08ea
* use common macro for alignmentludwig2005-11-131-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@339 edf5b092-35ff-0310-97b2-ce42778d08ea
* use system memcpy and memsetludwig2005-11-061-5/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@301 edf5b092-35ff-0310-97b2-ce42778d08ea
* - set umask to 0077 before writing the cdkey, the rest of the worldludwig2005-11-061-3/+15
| | | | | | | doesn't need to read it. git-svn-id: svn://svn.icculus.org/quake3/trunk@293 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Centralise architecture defines in q_platform.htma2005-11-051-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@273 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replaced a bunch of inline and __inline with ID_INLINEtma2005-11-041-3/+1
| | | | | | | | | * Replaced a bunch of __i386__ with id386 * General tidy up of asm preprocessor decisions * Removed C_ONLY from the dedicated server build git-svn-id: svn://svn.icculus.org/quake3/trunk@269 edf5b092-35ff-0310-97b2-ce42778d08ea
* allocate memory pointer alignedludwig2005-11-021-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@231 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Beginnings of Solaris support from Vincent S. Cojottma2005-10-291-1/+1
| | | | | | | * Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO git-svn-id: svn://svn.icculus.org/quake3/trunk@199 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Added STATUStma2005-10-291-1/+1
| | | | | | | | | | | * Updated TODO * Moved ChangeLog to root * Updated ChangeLog * s/Foobar/Quake III Arena Source Code/ * Biggest patch EVAR. I wonder how many mail boxes this will fill... git-svn-id: svn://svn.icculus.org/quake3/trunk@196 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Moved various source files from their mod sdk locations to places moretma2005-10-261-1/+1
| | | | | | | | | appropriate for open source Q3 * This patch looks bigger than it really is, however it will probably break the VC and OS X builds (easy to fix though) git-svn-id: svn://svn.icculus.org/quake3/trunk@181 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Tab completed commands no longer treated like cvarstma2005-10-211-4/+16
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@173 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Tiny patch to print values of cvars when tab completing ala ETtma2005-10-211-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@171 edf5b092-35ff-0310-97b2-ce42778d08ea
* * FreeBSD fixes/updates from Andreas Kohntma2005-09-251-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@107 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Replaced lots of __linux__ || __FreeBSD__ with __GNUC__tma2005-09-231-6/+2
| | | | | | | | * MinGW port now uses asm versions of SnapVector and ftol * Improved the handling of mangled symbols in vm_x86.c git-svn-id: svn://svn.icculus.org/quake3/trunk@99 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Port to MinGWtma2005-09-221-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@97 edf5b092-35ff-0310-97b2-ce42778d08ea
* Cleanups from pomac!zakk2005-09-021-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@67 edf5b092-35ff-0310-97b2-ce42778d08ea
* remove svn:executable propertyludwig2005-08-281-0/+0
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@24 edf5b092-35ff-0310-97b2-ce42778d08ea
* Ludwig's 1st diff: Some 64bit fixes for x86_64. Also fixes Makefile build.zakk2005-08-271-1/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@7 edf5b092-35ff-0310-97b2-ce42778d08ea
* newlines fixedzakk2005-08-261-3317/+3317
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@6 edf5b092-35ff-0310-97b2-ce42778d08ea
* Itsa me, quake3io!zakk2005-08-261-0/+3317
git-svn-id: svn://svn.icculus.org/quake3/trunk@2 edf5b092-35ff-0310-97b2-ce42778d08ea