Commit Graph

786 Commits

Author SHA1 Message Date
Thilo Schulz 782b890caa Another two minor clean-ups to last commit. 2008-04-27 17:43:35 +00:00
Thilo Schulz 425c351d1b - Implement stereo rendering with anaglyph images.
- Add r_greyscale for black&white rendering
2008-04-27 17:32:14 +00:00
Tony J. White = f222785168 * (bug 3611) prevent global symbol conflict on some systems (Mac OS X) for
lcc's getopt (Ben Millwood)
2008-04-23 17:39:39 +00:00
Thilo Schulz 1306d9760d Fix crash bug for interfaces without assigned address, thanks to PhoinixGR for reporting. 2008-04-21 13:34:44 +00:00
Thilo Schulz d77d3e0658 fix obvious bug, thanks mattn2 2008-04-16 20:57:08 +00:00
Ludwig Nussel 7a8c1ddaa6 Fix build on IRIX (Patrick Baggett) 2008-04-16 06:42:29 +00:00
Ludwig Nussel 53fc214d00 better handling of illegal mode values 2008-04-13 08:30:51 +00:00
Ludwig Nussel 89a5a6429e sort video modes only if there are modes to sort 2008-04-13 08:30:48 +00:00
Thilo Schulz cebdb640f3 remove commented code 2008-04-12 20:05:33 +00:00
Thilo Schulz c281b6aca0 Another change to server parsing as a server reporting in from 69.79.84.0/24 with the master server could screw up the server list in ioquake3 clients. 2008-04-12 19:53:16 +00:00
Tim Angus 845de6a960 * Fix some recently introduced warnings
* Fix referenced pk3 list including excessive number of spaces
2008-04-12 18:58:06 +00:00
Thilo Schulz 563eb9443b One minor comment fix 2008-04-12 17:14:53 +00:00
Thilo Schulz eb74549dde Only don't send packet on disabled multicast if it actually is a multicast packet 2008-04-12 17:03:18 +00:00
Thilo Schulz f8d8a1c2f7 - fix a potential file descriptor leak in server side of pak downloading
- add new functions for banning clients from server, in engine part. This will also make it possible to ban ipv6 addresses in old mods.
2008-04-12 17:00:18 +00:00
Thilo Schulz 9a8cc99a93 - Revamp in-game server browser: you can now scan for games on multiple master servers, while retaining compatibility with old QVMs.
- Make Master server reporting/server queries ipv6 capable.
2008-04-11 18:39:03 +00:00
Thilo Schulz 78a82bcba2 Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data. 2008-04-10 15:37:25 +00:00
Thilo Schulz b3822d03e2 Include #ifdef to make it easier to create a stand-alone binary. 2008-04-09 23:43:30 +00:00
Thilo Schulz ca5fabe8c6 Fix uninitialized usage warnings on MacOSX. 2008-04-09 22:20:04 +00:00
Thilo Schulz eb3b59308b Add Multicast capabilities for LAN server scanning. 2008-04-09 14:37:42 +00:00
Thilo Schulz 32bd0ab5bd Add length checking to prevent malicious mdr files to overflow buffers. 2008-04-08 18:56:03 +00:00
Thilo Schulz cafbb38d85 Handle detail textures correctly when r_detailedTextures is set to 0. 2008-04-06 16:29:22 +00:00
Ludwig Nussel 43ac1eca6a set flag to allow forced unload of a running VM
required to prevent a client from exiting if the server disconnects (bug 3585)
2008-04-06 12:59:35 +00:00
Ludwig Nussel 8bcb33892e debug output for EXEC_NOW 2008-04-06 12:59:30 +00:00
Ludwig Nussel 8d1a5f8b32 catch EXEC_NOW on quit to prevent deleting a running vm 2008-04-06 12:59:26 +00:00
Thilo Schulz 0811b1c99c Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too. 2008-04-06 02:24:07 +00:00
Thilo Schulz f5b3a13313 revert changes to that one as this is not necessary. 2008-04-06 02:19:00 +00:00
Thilo Schulz 5c1167557a Make sure that one broken shader file cannot crash the game / make the other shaders unusable. 2008-04-06 02:13:43 +00:00
Tim Angus 85bee47f52 * Fix to MinGW build following IPv6 changes 2008-04-05 16:01:58 +00:00
Thilo Schulz fcbf0bdd84 I hope this makes the code work on solaris, too and fix the EINVAL on sendto() 2008-04-05 15:10:50 +00:00
Thilo Schulz 70cd2ccfab - include Winsock2.h for windows
- add a __BSD__ define for all bsd platforms if it doesn't exist.
2008-04-05 14:28:57 +00:00
Thilo Schulz 7b80773212 Fix compilation on Solaris and possibly other platforms that have no getifaddrs() 2008-04-05 13:18:09 +00:00
Thilo Schulz 5d63a38ad9 Basic IPv6 support. Some inspiration from the patches by Lubos Dolezel and JF Tremblay at https://bugzilla.icculus.org/show_bug.cgi?id=2355. 2008-04-04 23:22:22 +00:00
Tony J. White = f82ea67c67 * remove COM_Compress() call on script buffer loaded into memory. I assume
this was added in order to save cycles if a script is loaded and then
  parsed multiple times, but it caused line numbers to be reported
  incorrectly for parse errors.  If a script is loaded into memory and
  parsed multiple times then the script itself should be optimized instead
  of doing it at runtime.  Also, there was a possibility of segfault
  due to where this was called.
2008-03-28 03:26:59 +00:00
Thilo Schulz 1d072dfdb5 These checks are now redundant. 2008-03-27 03:21:32 +00:00
Thilo Schulz fe1e02e457 A more clean solution to this bug. Stop the renderer when the UI VM is not running, as no commands get issued in that case anyways. 2008-03-27 03:18:32 +00:00
Thilo Schulz d79a5487bc Fix flashing connect screen, see https://bugzilla.icculus.org/show_bug.cgi?id=3425. 2008-03-27 03:00:49 +00:00
Thilo Schulz ccffb85185 This hack probably is not needed anymore. 2008-03-27 02:42:17 +00:00
Thilo Schulz 9412316883 Make sure fullscreen does not work for in_nograb when manually Alt-Entering, too. 2008-03-26 16:20:21 +00:00
Thilo Schulz 401f7521ff Make cast-workaround to unsigned int use sizeof operator. 2008-03-26 03:13:30 +00:00
Thilo Schulz 0ea4387270 strcpy -> memmove as string does overlap which should be avoided according to the manpage. Thanks to Jacques Boscq. 2008-03-25 22:06:08 +00:00
Thilo Schulz 11d9608fca Remove obsolete code for obfuscation. 2008-03-25 21:59:31 +00:00
Thilo Schulz 99fe055931 Commit patch from Jacques Boscq, which will prohibit the calling of memcpy with src=dest 2008-03-25 21:45:20 +00:00
Thilo Schulz bb47026b5f - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf.
2008-03-25 21:36:09 +00:00
Thilo Schulz 5728fc2ec8 vsnprintf -> Q_vsnprintf 2008-03-25 16:44:01 +00:00
Thilo Schulz 302b1b49ff Applied patch to clean up code for reading cvars and add new command "print" for printing the content of cvars, by Ben Millwood.
See also https://bugzilla.icculus.org/show_bug.cgi?id=3546
2008-03-25 16:20:03 +00:00
Ludwig Nussel 7a5243a3b2 use vm->callLevel to count recursive calls to VM_Call
Throw an error if vm->callLevel is set and VM_Free is called.
2008-03-24 21:20:55 +00:00
Ludwig Nussel 6c5211c0d3 catch Cbuf_ExecuteText(EXEC_NOW,...) from the ui as that would crash the vm 2008-03-24 21:20:49 +00:00
Tim Angus 6a213889dc * (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich) 2008-03-11 21:43:25 +00:00
Tim Angus b5a220359b * Ogg codec fix regarding ogg files in pk3s (Tr3b) 2008-03-02 15:28:39 +00:00
Tim Angus e31156e586 * Write q3config_server.cfg for the server, to avoid reseting client variables
after running a dedicated server
2008-02-28 21:39:54 +00:00
Tim Angus fd69a32508 * (bug 3427) Single Player causes SIGBUS on SGI IRIX (Patrick Baggett) 2008-02-20 19:41:52 +00:00
Thilo Schulz dc3d2457e0 Angst and zinx cajoled me into removing trying to load libcurl.so again. 2008-02-17 13:46:34 +00:00
Thilo Schulz a99634c2d3 Fall back to libcurl.so.4 or libcurl.so.4 if the default symlink does not exist. 2008-02-16 22:57:45 +00:00
Thilo Schulz 1f86aba342 Remove .3 part in default curl library. With it www download is broken on most recent distributions, as there is no libcurl.so.3 2008-02-16 22:23:47 +00:00
Ludwig Nussel c0f7c8d9cd png fixes by Joerg Dietrich 2008-02-15 08:37:44 +00:00
Ludwig Nussel d91c5c9282 make the pcx decode actually work 2008-02-14 13:30:32 +00:00
Tim Angus a5b51a95d7 * Consolidate tr_image_*.h headers into tr_local.h to more closely follow the
Q3 coding style
* Prefix image loaders with R_ now they're non-static
2008-02-14 13:16:13 +00:00
Ludwig Nussel 84f32478b9 remove code duplicated from libjpeg and make internal functions static 2008-02-14 11:13:51 +00:00
Ludwig Nussel 7132b492dd don't read more memory than available in jpg decode 2008-02-14 11:13:42 +00:00
Ludwig Nussel c77f537ae3 make pcx decoder more robust against corrupt files 2008-02-14 11:13:30 +00:00
Ludwig Nussel 85ba66e7e8 move all image decoders into separate files 2008-02-14 11:13:18 +00:00
Ludwig Nussel a3d62033d8 make tga decoder more robust against corrupt files 2008-02-14 11:12:59 +00:00
Ludwig Nussel 02d842532e make bmp decoder more robust against corrupt files 2008-02-14 11:12:42 +00:00
Ludwig Nussel f65dbd4351 integer overflow safeguards 2008-02-12 10:03:43 +00:00
Ludwig Nussel 4eec54c338 move png support to separate file 2008-02-12 10:03:21 +00:00
Tim Angus cb06e3e93a * Fixes to some muppetry in snd_dma.c (arQon) 2008-02-10 21:01:06 +00:00
Tim Angus 50783f1dbb * Disabling r_allowSoftwareGL as per bug 3526 2008-01-31 17:44:33 +00:00
Tim Angus 59c231c6c6 * (bug 3412) %s expansion security patch (DevHC) 2008-01-22 23:44:10 +00:00
Tim Angus 9cc4e0c976 * Fix to bug in S_FileExtension (Tr3B) 2008-01-19 19:06:25 +00:00
Tony J. White = 4c3b7def84 * send along the reason for disconnection when sending the disconnect
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)
2007-12-31 22:35:22 +00:00
Thilo Schulz 08ee31604a Remove small redundancy 2007-12-27 11:45:20 +00:00
Thilo Schulz 87fa68fd41 Add gamedirectory in .app to searchpath on MacOSX 2007-12-14 21:53:57 +00:00
Thilo Schulz 3648af78dc Fix building on MacOSX. 2007-12-14 16:54:13 +00:00
Thilo Schulz 662b67c733 Replace obsolete macro with some other macro. I hope this does not break too much. 2007-12-14 16:25:33 +00:00
Thilo Schulz 99c8676383 Revert changes in ioquake3 AL code, fix OpenAL headers. 2007-12-13 23:27:41 +00:00
Thilo Schulz a9a8022d53 Modification to stop crash on Linux for dlopened() OpenAL, will break MacOSX build again. 2007-12-13 13:46:30 +00:00
Thilo Schulz d075f172df Fix multiple symbol errors for compilation on MacOSX. Remove unnecessary definitions. 2007-12-13 10:58:43 +00:00
Tim Angus b906e94a6d * (bug 3470) Correct type for function pointer
(baggett.patrick@figglesoftware.com)
2007-12-11 21:11:01 +00:00
Tim Angus b9ab949ec7 * Replace "powered by ioq3" text with ui_ioq3 CVAR_ROM
* Guess display aspect based on the desktop resolution
* Sort detected resolutions by...
  + closeness to display aspect
  + ascending width
  + ascending height
* Apply Q3 coding style to resolution detection code
2007-12-11 00:19:23 +00:00
Ludwig Nussel 6b5fbd189d detect available resolutions and offer them in the menu
Store the resolutions detected by SDL in a cvar. The mod code can
then optionally use the cvar to offer a better choice in the menu.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
2007-12-08 10:08:05 +00:00
Ludwig Nussel f2cbb819fc print "powered by the ioquake3 engine" in the main menu 2007-12-08 10:08:02 +00:00
Tim Angus 6113cf7a68 * (bug 3454) Fix crash in autocompletion due to incorrect strncpy buffer size 2007-12-03 00:07:56 +00:00
Tim Angus dfc97a1dfa * Make some botlib memory allocations /potentially/ safer 2007-12-02 13:30:12 +00:00
Julian Priestley 4f0565a4a7 * Add con_log.c and con_passive.c from r1222 to quake3.vcproj.
* Rename 'write' and 'read' variables in con_log.c, as these are already
defined in io.h in the MSVC environment.
2007-12-02 00:48:59 +00:00
Tim Angus 5bd3ef4190 * Fix poppy captured audio when recording videos 2007-12-01 19:39:03 +00:00
Tim Angus 3cde9bf0dc * Add con_log.c to log all console output
* Add con_passive.c to cut down on #ifdef DEDICATED in sys_main.c
* Add Sys_ErrorDialog to report ERR_FATALs to the user
  + On Windows use a MessageBox and offer to copy the console log to the
    clipboard
  + On everything else print to the terminal and save the console log as
    crashlog.txt
2007-11-30 18:32:52 +00:00
Tim Angus b61ccb0b9b * Initialise botlib libvarlist to NULL as having it uninitialised may
potentially cause problems
2007-11-26 21:11:02 +00:00
Tim Angus eaeed742c5 * Move MINSDL_ values to sys_local.h from Makefile/VC project
* Merge *BSD platform definitions in q_platform.h
* IRIX support (Patrick Baggett <baggett.patrick@figglesoftware.com>)
2007-11-26 20:18:53 +00:00
Tim Angus 6bd4bb16a0 * Move SDL library version check to sys_main.c as it's proving difficult to
make the Makefile check sufficiently portable
* Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls
* Replace OS X uname workaround with Solaris workaround, as I believe OS X
  uname now behaves the same as GNU name
2007-11-25 23:41:01 +00:00
Tim Angus 3f3e1a51a1 * (bug 3420) Don't respect sv_killserver unless a server is actually running
* (bug 3431) USERINFO cvars created in cg_main not getting sent (arQon)
2007-11-23 00:33:13 +00:00
Tim Angus f2f8e73d58 * s/O_NDELAY/O_NONBLOCK/ 2007-11-19 19:59:37 +00:00
Tim Angus b62950ca6e * Fix bug where an extraneous render command can cause a crash when
recording video
* Make S_CodecUtilClose NULL the snd_stream_t pointer
* Fix indentation in runtime SDL check code
2007-11-18 01:06:46 +00:00
Tim Angus 3f3c827bcd * Remove all the crappy old bat/sh QVM building scripts 2007-11-16 22:41:01 +00:00
Ludwig Nussel f0215128af make master server used by client configurable (cl_master)
patch by Erik Kloppenburg
2007-11-14 19:04:12 +00:00
Tim Angus 25ac1317b1 * Remove work around for a 2 year old OpenAL bug that now actually causes a
crash on snd_restart
2007-11-11 22:15:25 +00:00
Tim Angus e8d3c48535 * Whitespace consistency in tr_init.c 2007-11-07 20:16:37 +00:00
Ludwig Nussel 6f85c247e3 Don't define ELF, use __ELF__ instead 2007-11-06 16:41:57 +00:00
Tim Angus 527a5ddb1d * Fix to win_resource.rc for MSVC build 2007-11-03 21:53:50 +00:00
Tim Angus 31c24bd0d2 * (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)
* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
2007-11-02 23:36:23 +00:00
Tim Angus 881988636a * Don't truncate the cvar value when the user specifically asks for it 2007-11-01 16:07:13 +00:00