Commit graph

176 commits

Author SHA1 Message Date
Zachary Slater
95060e4fb6 See here:
http://bugzilla.icculus.org/show_bug.cgi?id=4064
2009-06-13 22:00:28 +00:00
Zachary Slater
49a2e1913e < sg_Tequila> says that this is busted. Thilo will hopefully be pleased. 2009-06-10 19:47:45 +00:00
Thilo Schulz
5e108751f2 fix code cleanup 2009-06-10 10:41:11 +00:00
Thilo Schulz
a7417a4bde minor code cleanup 2009-06-10 09:00:31 +00:00
Thilo Schulz
b9bcf3da94 How did this happen? 2009-06-10 08:25:01 +00:00
Thilo Schulz
eaaaa6f5fc Replace a few sprintf with Com_sprintf 2009-06-01 00:18:02 +00:00
Thilo Schulz
4e8a181073 I'll retain the new way seeding the random number generator.. these calls are therefore redundant 2009-05-31 20:30:37 +00:00
Thilo Schulz
e4d0c14f70 Revert changes of rand() to random() as random() was redefined in quake3. 2009-05-31 20:24:10 +00:00
Thilo Schulz
b40f1507ea - Introduce seeding of the random number generator at startup
- Replaced all engine-side occurances of rand() with random()
2009-05-31 19:48:28 +00:00
Ludwig Nussel
ad06af3d8f make some functions static (#4014) 2009-05-02 18:01:02 +00:00
Tim Angus
18b27806bc * Remove unexplainable ( tr.overbrightBits > 0 ) condition when correcting
gamma in screenshots
2009-03-12 19:20:20 +00:00
Tim Angus
72dea0a184 * Fix some new GCC 4.3 warnings
* Fix many many strict aliasing warnings, now that it's re-enabled
2008-11-10 23:55:22 +00:00
Tim Angus
953200cafc * Update to jpeg-6b (only a decade old) 2008-08-21 23:29:09 +00:00
Tim Angus
f2baf359ae * s/GL_CLAMP/GL_CLAMP_TO_EDGE/g (If this change appears to cause you problems
and you're using an nVidia graphics card, make sure your 'conformant texture
  clamp' setting is set to on for ioq3)
2008-08-12 19:34:43 +00:00
Tim Angus
3855f65d17 * Fix confusion of cgame and renderer entity array bounds (Tr3B) 2008-07-16 18:07:36 +00:00
Tim Angus
8ea86a4670 * Allow floating point values for r_znear 2008-07-08 09:15:48 +00:00
Tim Angus
37d664d4b2 * Rename voip cvar to cl_voip
* 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
2008-07-07 22:31:39 +00:00
Tim Angus
2c0861c1ce * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend
<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>)
2008-07-05 23:50:38 +00:00
Ryan C. Gordon
c923872ca2 Added GL_EXT_texture_compression_s3tc support.
GL_S3_s3tc, which Quake 3 previously supported, is legacy. This new codepath
 is the common, vendor-neutral extension to get the same results.
2008-06-13 02:28:51 +00:00
Thilo Schulz
fa0ff6aaac shut up warning 2008-05-01 16:10:01 +00:00
Thilo Schulz
10ed996784 - replace a few constant values with GL macros in tr_cmds.c
- tidy up top of tr_types.h a bit, change flags to hex representation
- make ROM cvar enforcing really work
- remove cg_stereoSeparation from cgame as it is obsolete.
- Add CG_DrawCrosshair3D so people see crosshair correctly when stereoseparation is enabled
2008-05-01 14:56:57 +00:00
Thilo Schulz
1156a63d52 - change default value for stereo seperation
- make clearing buffer use black for clearing when changing anaglyphmode
- Make sure that dlights are greyscale, too.
2008-04-27 21:09:03 +00:00
Thilo Schulz
ae08d1a6d8 This may enable stereo rendering for other devices like shutter glasses, but I don't know whether this works yet. 2008-04-27 19:07:57 +00:00
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
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
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
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
Thilo Schulz
ccffb85185 This hack probably is not needed anymore. 2008-03-27 02:42:17 +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
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
Tim Angus
e8d3c48535 * Whitespace consistency in tr_init.c 2007-11-07 20:16:37 +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
1d54a9ebe5 * Revert 1176 -- MinGW's headers are too old *sigh*
* Revert to using literal function pointers for GL extensions rather than PFN*
  typedefs as some platforms' headers are broken enough that they prevent
  SDL_opengl.h from fixing things up if the PFN* typedefs are missing
2007-09-12 18:02:38 +00:00
Tim Angus
4f4f0c0dab * Remove use of GL_ARB_multitexture since this has been part of the
core API for many years now
2007-09-10 22:28:58 +00:00
Tim Angus
904cce6311 * Replace the ugliness in qgl.h with SDL_opengl.h 2007-09-05 18:56:39 +00:00
Tim Angus
672cfbf16f * Merge unified-sdl to trunk
* Bump Q3_VERSION to 1.35
2007-09-05 18:17:46 +00:00
Tim Angus
034e6e8f20 * Rewrite of R_LoadImage to make it more generic and data driven 2007-08-26 21:27:46 +00:00
Tim Angus
4997c4764a * (bug 3112) Removal of QVM name obfuscation (TsT <tst2006@gmail.com>)
* Add developer warning when texture loading falls back on jpg from tga
* Remove uppercase extension hack from texture loading since the Q3 pk3
  file system is case insensitive anyway and you would likely want to
  know about the failures when loading images from the native FS
2007-08-24 00:04:08 +00:00
Tim Angus
1144f567e8 * PNG support from Joerg Dietrich <dietrich_joerg@t-online.de>
* Cleanup of tabulation in R_LoadImage
2007-08-23 17:23:15 +00:00
Tim Angus
5e35d88b9b * (bug 3076) Map cycle breaks on empty or bot only servers (misanthropia)
* (bug 3303) Removal of never compiled code from cgame drawing functions (beast 
  <info@dbwatersports.com>)
* (bug 3297) Add missing limit to Q3 UI server info (beast
  <info@dbwatersports.com>)
* (bug 3029) Fix to shader hash table being overpopulated (identified by
  Stefan "#@" Langer <raute_at@gmx.de>)
2007-08-23 00:22:20 +00:00
Ludwig Nussel
3992f1a59c fix gcc 4.2 warnings about cast from pointer to integer (#3317) 2007-08-19 12:05:17 +00:00
Ludwig Nussel
686d365397 print the shader loading message if the cvar "developer" is set 2007-08-16 15:16:32 +00:00
Ludwig Nussel
9016006312 don't spam console with "loading..." messages when loading shaders 2007-08-16 14:52:29 +00:00
Tony J. White =
c1ed094e53 * (bug 2972) add r_swapInterval support to SDL client (if libSDL >= 1.2.10) 2007-05-22 03:42:32 +00:00
Thilo Schulz
15fe54a6e7 Fix annoying bug where transparent surfaces wouldn't draw over skyboxes. Thanks to Stefan Langer a.k.a. #@ for providing the fix. 2006-12-15 13:46:13 +00:00
Tim Angus
bd9e7c4b8f * Add r_customPixelAspect to support displays with non 1:1 pixel aspects (do
such things exist?)
* Remove r_customaspect as its value is implied through the other three
  r_custom cvars
2006-12-04 13:37:50 +00:00
Thilo Schulz
5568c9fcad Fix endian issue in MDR loading. 2006-09-22 12:53:03 +00:00
Tim Angus
e41d081710 * qvm files no longer installed by "make copyfiles"
* Loopback clients only get snapshots at the server frame rate now
  (Anonymous <nkylqinhvgcbyl@mailinator.com>)
* JPEG chroma subsampling disabled if the quality value is >= 85
  (Anonymous <nkylqinhvgcbyl@mailinator.com>)
* cl_lanForcePackets. When set to 0 (default is 1) the cl_maxpackets setting
  will be ignored if on a LAN. (Anonymous <nkylqinhvgcbyl@mailinator.com>)
2006-08-13 17:09:05 +00:00
Thilo Schulz
5efd7c8c36 Another patch to make uncompressed AVI write in RGB24 format by anonymous virtualdub sympathiser. 2006-07-31 15:32:59 +00:00
Thilo Schulz
3a1c4aa457 Fix from the VirtualDub people which should make avi files created with the video command playable with numerous windows players. 2006-07-31 13:05:15 +00:00
Tim Angus
fda7db7619 * Fix the MinGW build. Ugh. 2006-05-06 16:01:41 +00:00
Thilo Schulz
d21411452e Add string length checking to function COM_StripExtension. This fixes the R_RemapShader buffer overflow exploit that can be found here:
http://milw0rm.com/exploits/1750
2006-05-06 01:56:24 +00:00
Ludwig Nussel
8895df0925 - remove leftover anistropic filtering variables from glconfig_t
- check size of glconfig_t to prevent accidential ABI breakage in the future
2006-04-30 15:00:39 +00:00
Thilo Schulz
12a2b7694a - Fixed incompatibility to original VMs introduced by anisotropic filtering patch.
- Removed dependency of flares from tr.identityLight because they are barely visible with r_overbrightbits set to 1
2006-04-30 14:32:56 +00:00
Thilo Schulz
55453fd919 Fix for skybox blacklines bug on non-SDL compilations. 2006-04-27 14:48:35 +00:00
Tim Angus
68b9eb3fba * Anisotropic texture filtering (from Echon) 2006-04-22 22:14:15 +00:00
Thilo Schulz
40d5eee8ef Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID. 2006-04-22 18:24:50 +00:00
Thilo Schulz
57cc0f901e Still some little improvements to flares. 2006-04-20 16:52:39 +00:00
Thilo Schulz
c552a46e5f Fix for flares. Can be enabled by setting r_flares 1 2006-04-20 04:43:43 +00:00
Tim Angus
21e0bdd993 * Fix to (static!) buffer overflow in renderer (from Thilo Schulz) 2006-04-14 20:15:58 +00:00
Tim Angus
a235245e35 * Fixes to MDR implementation from Thilo Schulz 2006-04-14 20:13:49 +00:00
Tim Angus
a596185844 * Fixed radix sort on big endian platforms (from tjw, blame Timbo for the bug) 2006-04-14 19:54:56 +00:00
Tim Angus
947ebb932e * SDL build no longer requires a vid_restart when changing r_fullscreen 2006-01-25 17:57:53 +00:00
Tim Angus
a21eb2bbcb * AVI video output
- Uses motion jpeg codec by default
  - Use cl_avidemo to set a framerate
  - \video [filename] to start capture
  - \stopvideo to stop capture
  - Audio capture is a bit ropey
2006-01-04 03:12:12 +00:00
Tim Angus
310190a466 * Support for MinGW cross compilation 2005-12-29 00:04:41 +00:00
Tim Angus
aa3f7e1eb1 * Fix to what is apparently a typo in the original Q3 code
* If patch stitching breaks in mysterious ways, this change might be why
2005-12-28 23:05:22 +00:00
Maik
252ede0472 msvc project files updated and moved to win32/msvc
temporary build dirs moved to win32/msvc/build
2005-12-12 17:38:03 +00:00
Tim Angus
9415f5fe09 * Oopsie. 2005-12-06 18:17:10 +00:00
Tim Angus
1704eecc52 * Replaced ALIGN macro with PAD
* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
2005-12-05 17:32:54 +00:00
Ryan C. Gordon
dd4dce194e Fixed Altivec-based mesh rendering. 2005-12-04 14:23:46 +00:00
Tim Angus
796ba11301 * Ditch Mac OS 9 support 2005-12-01 21:36:16 +00:00
Tim Angus
68a59e1c93 * Moved win32 GL extension prototypes from tr_init.c to win_qgl.c 2005-11-26 17:51:26 +00:00
Tim Angus
382c6adb54 * Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
* Remove -gfull from linux section in Makefile -- it's darwin only
* Cast away some warnings that surfaced from using "new" AL headers
* Various whitespace and consistency fixes
2005-11-26 15:01:28 +00:00
Ryan C. Gordon
721b9a7d01 Mac OS X work...lots of little changes that touch a lot of random places.
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.
2005-11-26 07:46:21 +00:00
Tim Angus
b5c7d9dcd7 * Implementation of r_dlightBacks from Shane Isley 2005-11-15 23:30:35 +00:00
Tim Angus
fd9c1b00bb * Fix TA font loader to use new endian defines 2005-11-06 21:18:21 +00:00
Tim Angus
4eaebe4a31 * Tidy-up of q_platform.h
* Introduced Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN #defines
* Changed some stricmp to Q_stricmp so that #define stricmp strcasecmp could be
  removed
2005-11-06 00:29:59 +00:00
Tim Angus
e4b7a04d5c * Replaced a bunch of inline and __inline with ID_INLINE
* Replaced a bunch of __i386__ with id386
* General tidy up of asm preprocessor decisions
* Removed C_ONLY from the dedicated server build
2005-11-04 22:32:00 +00:00
Zachary Slater
857a5e264e Updated msvc project files from > Michael Zoech! 2005-11-04 02:35:30 +00:00
Ludwig Nussel
f4dbf0db95 5+2==7 :-) 2005-11-01 19:47:47 +00:00
Ludwig Nussel
39f5333862 use memcpy to fix use of misaligned data 2005-11-01 19:44:36 +00:00
Tim Angus
acf1f46a2b * More Solaris work 2005-11-01 16:05:06 +00:00
Tim Angus
c41483634c * General decrufting:
* Removed Q3_STATIC and associated defines
* Removed MAC_STATIC
* Replaced __LCC__ with Q3_VM
* Removed bspc and splines directories
2005-10-29 23:13:09 +00:00
Tim Angus
c5bdb034f2 * Beginnings of Solaris support from Vincent S. Cojot
* Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO
2005-10-29 22:05:20 +00:00
Tim Angus
05e8ab9538 * Added STATUS
* 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...
2005-10-29 01:53:09 +00:00
Tim Angus
3a2ad50406 * Moved various source files from their mod sdk locations to places more
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)
2005-10-26 19:45:21 +00:00
Tim Angus
64f167f183 * Fix to potential out of range index bug from misanthropia 2005-10-20 16:19:43 +00:00
Tim Angus
769372e2f9 * Fix to buffer overflow in lightmap loading code from misanthropia 2005-10-20 16:14:05 +00:00