SmileTheory
c07cc282d0
OpenGL2: Use correct sunlight color for sunlight specular.
2015-12-09 05:25:58 -08:00
SmileTheory
08ecc3a80a
OpenGL2: Forgot a multiply.
2015-12-09 03:42:12 -08:00
SmileTheory
f9c72eee69
OpenGL2: Parse radius entries from misc_cubemap entities.
2015-12-09 02:00:40 -08:00
SmileTheory
b52ede0445
OpenGL2: Add r_glossIsRoughness.
2015-12-08 21:23:50 -08:00
SmileTheory
92d4b20129
OpenGL2: Add option in code for alternate overbright method.
2015-12-08 05:17:05 -08:00
SmileTheory
e5aabdaff6
OpenGL2: Remove some rendering options for simplicity.
2015-12-03 02:44:33 -08:00
SmileTheory
2954bdfa65
OpenGL2: automatically load textures with a _s suffix as specular.
2015-12-02 17:08:40 -08:00
SmileTheory
f663104cfc
Access 32-bit registry key from 64-bit Windows correctly.
2015-12-02 17:07:26 -08:00
Zack Middleton
41f83ac8b0
Replace 4 with sizeof( int ) in R_GetCommandBufferReserved
2015-10-17 21:58:11 -05:00
Zack Middleton
81e2b6c0cf
Fix reserved size for swap buffer command being too small on x86_64
2015-10-16 20:50:25 -05:00
Zack Middleton
e6209f3b7c
Fix crash from reading past end of tr.refdef.drawSurfs
...
The number of draw surfaces was range checked against number of surfaces for
the current view but needs to check total for the frame otherwise can read
past the end of the tr.refdef.drawSurfs array when there are multiple views.
2015-10-16 20:21:15 -05:00
Zack Middleton
8531162bd9
Fix not swapping buffers because out of cmd buffer space
...
Reserve space for end of list and swap buffer commands. These are absolutely
required and cannot be dropped. Dropping swap buffer command causes screen
to not update and possible crash from drawsurf buffer overflow if not enough
cmd buffer space for many continous frames.
2015-10-16 19:38:49 -05:00
Zack Middleton
ce35188acd
Add support for uncompressed image upload flag to OpenGL1
2015-10-16 03:29:27 -05:00
Zack Middleton
7f4b34bf09
Remove unused define MAC_EVENT_PUMP_MSEC
2015-10-04 17:20:56 -05:00
Tim Angus
7e0dac7517
Fix check for empty rconpassword in CL_Rcon_f
2015-10-04 21:11:35 +01:00
Zack Middleton
1902b6e659
Fix compiling on Windows without Steam path/appid
2015-09-26 19:26:21 -05:00
Tim Angus
9732f1ba69
Now with less infinite recursion
2015-09-26 10:54:16 +01:00
Tim Angus
c70e10d15e
Effectively revert c2e146c1
2015-09-25 22:50:01 +01:00
SmileTheory
2f77a98afe
Use Windows uninstall path to find Steam Quake 3 install.
...
Thanks Pan- and Ensiform for pointing this out.
2015-09-25 04:55:41 -07:00
SmileTheory
3bd7a8d842
Search for mods in steam path as well as home and base paths.
2015-09-25 04:52:17 -07:00
Zack Middleton
7e96fd9cb6
Make steam path optional at compile time for standalone games
2015-09-22 19:25:16 -05:00
Zack Middleton
750fdc0e43
Align indent of defines at top of q_shared.h to 4 space tabs
2015-09-22 19:05:46 -05:00
Zack Middleton
68ab4e9548
Early out of Cmd_CompleteArgument and Cmd_SetCommandCompletionFunc
...
Reported by Ensiform.
2015-09-20 18:51:20 -05:00
Zack Middleton
5e09f20cd4
Use correct array size for facets in cm_patch.c
2015-09-17 18:46:01 -05:00
SmileTheory
f860a753e0
Add Steam's Quake 3 Arena dir to game dirs on Windows.
2015-09-17 02:53:19 -07:00
Zack Middleton
3001cacf89
Make add bots menu use standard menu drawing
...
Made add bots menu draw banner and background like remove bots menu.
2015-09-16 01:43:28 -05:00
Zack Middleton
b85935d30c
Fix glyph width calculation in Text_Paint_Limit
...
Text_Width's scale argument will be multiplied by glyphScale, so don't
pass useScale that is already multiplied by glyphScale as this makes
the scale too big.
2015-09-15 16:56:03 -05:00
Tim Angus
ec6916ded5
Fix the wonky fix to the wonky va_list usage
2015-09-09 23:33:36 +01:00
Tim Angus
566e2a18de
Fix wonky va_list usage
2015-09-09 22:32:12 +01:00
Tim Angus
9767a0e790
Merge pull request #152 from dionrhys/cvar-unset-notify
...
Fix Cvar_Unset not notifying cvar_modifiedFlags
2015-09-07 13:00:30 +01:00
Dion Williams
2917077323
Ensure reads from /dev/urandom are unbuffered
...
Upstream: JACoders/OpenJK@de6a9dfd40
2015-09-07 11:33:29 +01:00
Dion Williams
ce2b8db294
Fix Cvar_Unset not notifying cvar_modifiedFlags
...
Upstream: JACoders/OpenJK@9a5e9e87ff
2015-09-07 11:29:15 +01:00
Zachary J. Slater
87e0bf6eaf
Better language, less tense
2015-08-28 18:19:29 -07:00
Zachary J. Slater
4667210e1d
more helpful error message
...
Can’t find your pak0.pk3? Here’s where we tried looking.
2015-08-28 10:36:46 -07:00
Zack Middleton
f4aa39adc1
Remove unused define CG_FONT_THRESHOLD
2015-08-25 16:23:06 -05:00
Tobias Kuehnhammer
49ab0cc05e
Fix (unused) watertype checks in PM_WaterMove
2015-07-30 19:33:28 -05:00
Pan7
8fddf5d6cd
Fix va_list warning
2015-07-30 17:09:51 +02:00
Pan7
017af35969
Add missing qcurl handle cleanup
2015-07-29 16:44:59 +02:00
Tim Angus
4e1cf7ac9b
Return the result from qcurl_easy_setopt_warn
2015-07-29 13:39:27 +01:00
Tim Angus
eb3dda59e4
Merge pull request #143 from Pan7/qcurl_cleanup
...
qcurl_multi_cleanup check
2015-07-29 13:16:39 +01:00
Pan7
e9e1e25d77
qcurl_multi_cleanup check
2015-07-29 13:32:00 +02:00
Pan7
c2e146c145
qcurl_easy_setopt dev warning
2015-07-28 17:23:31 +02:00
Tim Angus
da79a3ed4e
Merge pull request #140 from Pan7/qcurl_remove
...
qcurl_multi_remove_handle check
2015-07-28 10:37:07 +01:00
Pan7
4db5c3af40
qcurl_multi_strerror not curl_multi_strerror
2015-07-27 21:04:47 +02:00
Pan7
85faec91ab
qcurl_multi_remove_handle check
2015-07-27 20:38:20 +02:00
Tim Angus
db941dcb5f
Merge pull request #138 from Pan7/SDL_Swap
...
SDL_GL_SetSwapInterval() check
2015-07-26 19:49:49 +01:00
Tim Angus
793708a010
Merge pull request #137 from Pan7/SDL_display
...
SDL_GetWindowDisplayIndex() check2
2015-07-26 19:49:04 +01:00
Tim Angus
0dad4ce9fe
Merge pull request #92 from Pan7/curl_error
...
qcurl_multi_add_handle error check
2015-07-26 19:48:03 +01:00
Pan7
525eac0d99
SDL_GL_SetSwapInterval() check
2015-07-26 20:23:48 +02:00
Pan7
56808ab51f
SDL_GetWindowDisplayIndex() check2
2015-07-26 19:46:07 +02:00
Tim Angus
c35e0faffb
Merge pull request #136 from Pan7/SDL_NULL
...
SDL_CreateWindow NULL check
2015-07-26 15:50:54 +01:00
Tim Angus
5a495d5824
Merge pull request #135 from Pan7/SDL_Index
...
SDL_GetWindowDisplayIndex check
2015-07-26 15:50:30 +01:00
Tim Angus
19fe4f8fbd
Merge pull request #134 from Pan7/GammaCheck
...
SDL_SetWindowGammaRamp check
2015-07-26 15:49:42 +01:00
Tim Angus
30c88442b2
Merge pull request #133 from Pan7/SDL_bool
...
SDL_FALSE/TRUE for SDL_SetWindowGrab
2015-07-26 15:48:59 +01:00
Pan7
19c4048315
Added SDL_GetError()
2015-07-26 15:45:21 +02:00
Pan7
4b176297e2
Added SDL_GetError()
2015-07-26 15:41:41 +02:00
Pan7
6fb47ce9bf
SDL_CreateWindow NULL check
2015-07-26 13:54:29 +02:00
Pan7
9694e93fd2
SDL_GetWindowDisplayIndex check
2015-07-26 13:03:47 +02:00
Pan7
2003a054f9
SDL_SetWindowGammaRamp check
2015-07-26 04:31:27 +02:00
Pan7
9e08cdb16a
SDL_FALSE/TRUE for SDL_SetWindowGrab
2015-07-26 03:21:45 +02:00
Tim Angus
605dfabb94
Merge pull request #132 from Pan7/SDL_Init
...
SDL_Init zero check
2015-07-25 11:54:12 +01:00
Pan7
2a38bca931
SDL_Init zero check
2015-07-24 22:56:00 +02:00
Tim Angus
61a49ba1db
Merge pull request #129 from smcv/generic-platform
...
Implement Linux architecture support generically
2015-07-15 13:37:51 +00:00
Simon McVittie
2a71948f21
build: define ARCH_STRING in Makefile on Linux and other GNU platforms
...
GNU platforms (Linux, kFreeBSD, Hurd) have endian.h to determine
endianness, so all architectures except x86_64 are in fact treated
identically, except that their ARCH_STRING is different.
The ARCH_STRING must always be identical to the ARCH from the Makefile,
otherwise the engine will not find its cgame, game and ui plugins
under their expected names and startup will fail. If we pass it in
from the Makefile, then an identical value is guaranteed, and we can
get rid of an increasingly long list of defined(__some_cpu__) tests.
The one remaining quirk is that we test __x86_64__ to determine
whether to define idx64; I've kept that, but separated it from
the ARCH_STRING.
On non-Linux platforms we only support a few architectures anyway,
so keeping the list up to date is less of a burden; *BSD porters
could probably use the same technique to get support for lots of
architectures with little effort, but I have not done that here,
because I cannot test it.
Windows must continue to support preprocessor-based architecture tests
in any case, so that the MSVC solutions (which do not use the Makefile)
can continue to work. However, Windows only runs on a few CPU families,
so this shouldn't be a significant burden in practice.
When cross-compiling, the tools are compiled for the build architecture
(COMPILE_PLATFORM, COMPILE_ARCH) rather than the host architecture
(PLATFORM, ARCH), so define ARCH_STRING to COMPILE_ARCH on a GNU
COMPILE_PLATFORM.
2015-07-14 22:51:57 +01:00
Zack Middleton
c91fe0bcfe
Fix handling too many teams in Team Arena UI
2015-07-13 00:09:22 -05:00
Zack Middleton
b4b68b8e80
Remove logically dead code from CL_GetServerStatus
...
Found by Coverity.
2015-07-12 21:14:04 -05:00
Zack Middleton
604b63f00f
Fix cgs.teamVoteString buffer overflow in CG_ConfigStringModified
...
Found by Coverity.
2015-07-12 21:08:16 -05:00
Zack Middleton
a5fbc1bfc4
Fix alloc size for default skin and single shader skin
...
Found by Coverity.
2015-07-12 20:41:47 -05:00
Zack Middleton
4473924636
Remove logically dead code in R_CheckFBO
...
Found by Coverity.
2015-07-12 20:35:22 -05:00
Zack Middleton
c7500bb28e
Don't segfault in FS_CreatePath when there are no path seperators
2015-07-12 20:06:24 -05:00
Zack Middleton
2e904141ff
Make more vm_x86 macros use braces so they work with if blah run macro
...
MASK_REG in EmitMovEDXStack would incorrectly emit asm if 'andit' was 0.
'andit' would never be 0 though so it wasn't causing issues.
Found by Coverity.
2015-07-12 19:11:13 -05:00
Zack Middleton
ee2541efee
Fix range checks for numBorders in CM_AddFacetBevels
...
Found by Coverity.
2015-07-12 18:39:54 -05:00
Zack Middleton
9f57fea0ee
Backport ignoring values outside lightgrid to OpenGL1
...
Fixes possibly of reading memory past end of lightGridData or reading
wrong light grid data (wrapping around to next row).
2015-07-12 18:17:57 -05:00
Zack Middleton
1bb2bc370d
Fix OpenGL2 ignoring last light grid point on each axis
...
Also change light grid bounds clamping to make it more clear what invalid
values are.
2015-07-09 22:42:01 -05:00
Zack Middleton
5768e2316a
Remove unused fpucw from snapvector.asm
...
It's usage was removed in commit 8a500d71
.
2015-07-09 18:35:45 -05:00
Zack Middleton
993b838f27
Fix Windows file list extension check
...
Windows' Sys_ListFiles would add files that contain the extension anywhere,
not only at the end of the file name.
Example: "word.pk3omghacks" use to be loaded as a pk3 file.
2015-07-04 20:46:03 -05:00
Zack Middleton
b152cf1423
Don't fog 3D crosshair sprite
2015-07-04 19:33:28 -05:00
Zack Middleton
5e575ae82e
Apply greyscaling to fog blocks
2015-07-04 19:17:58 -05:00
Zack Middleton
386a00fc2b
Fix CGame CG_WaterLevel() comparisons
...
My last commit made it so that CGame "waterlevel 1" is feet in water,
but before it was erroneously about waist deep in water. The places
where it is checked it is suppose to be view position underwater.
Change comparisons to use correct value for view position underwater.
2015-07-04 05:53:29 -05:00
Zack Middleton
08ac364cd6
Fix CG_WaterLevel() checks for waterlevel 2 and 3
...
CG_WaterLevel() added lerpOrigin to itself instead of adding view height
when checking for waterlevel 2 and 3. This did not cause issues because
ioq3 only compared the calculated waterlevel to more or equal to 1.
2015-07-04 03:40:05 -05:00
Zack Middleton
6a03817a9c
Merge pull request #4 from smcv/hurd
...
Add support for the GNU/Hurd architecture
2015-06-30 19:02:46 -05:00
Martin Michlmayr
ebb69f699c
Add support for Aarch64 (ARM64)
...
Add support for Aarch64, the 64-bit ARM architecture.
2015-06-30 14:22:49 -04:00
Zack Middleton
6d62dc3646
Fix abs() being used for float in cl_input.c
2015-06-28 18:27:09 -05:00
Zack Middleton
1d09a7d578
Fix abs() being used for long int in l_precomp.c
2015-06-28 18:13:06 -05:00
Zack Middleton
70eb1fa79e
Make cinematic times be int like CL_ScaledMilliseconds
...
Cinematic's startTime and lastTime are always set from CL_ScaledMilliseconds
which returns int and are converted back and forth to int and unsigned int.
This fixes a warning that abs() is used on an unsigned int.
2015-06-28 18:02:51 -05:00
Zack Middleton
b27e0fbf95
Remove unused function WRITE_1BYTES from cl_avi.c
2015-06-28 17:55:51 -05:00
Zack Middleton
f0c4c185fc
Remove check for cg_recordSPDemoName.string array address
...
It will always be true.
2015-06-28 17:55:25 -05:00
Zack Middleton
da8a74d734
Fix variable declaration for C89 compilers
2015-06-28 16:29:10 -05:00
Tim Angus
61825d8e5f
Check SDL_GetNumDisplayModes return value for errors
2015-06-28 18:01:03 +01:00
/dev/humancontroller
c52e35bcd8
fix a stupid use of strcpy()
...
strcpy() arguments may not overlap !
2015-06-18 17:24:50 -05:00
Zack Middleton
5d7612ec84
Merge pull request #109 from Pan7/SIGABRT
...
SIGABRT is in ANSI and POSIX.1, and SIGIOT isn't.
2015-06-18 13:20:54 -05:00
Zack Middleton
9e03e606cd
Merge pull request #108 from Pan7/memmove
...
No unix memmove for MSVC
2015-06-18 13:13:25 -05:00
Zack Middleton
e857ed7273
Merge pull request #118 from jkent/master
...
fix buffer overflow in CL_CheckForResend
2015-06-18 13:09:58 -05:00
Zack Middleton
f110f668bf
Move image load function prototypes to tr_common.h
...
The functions themselves are in code/renderercommon/tr_image_*.c
2015-06-12 14:22:37 -05:00
Zack Middleton
e5af084211
Remove erroneous new line from error message
2015-06-12 13:08:10 -05:00
Tim Angus
77ad75887f
Merge pull request #105 from smcv/sdl-modes
...
Don't crash if more than 128 modes are available
2015-06-12 16:29:38 +01:00
Tim Angus
68dbb8a1bb
Commit newly generated gram.c
2015-06-06 23:06:19 +01:00
Tim Angus
01275693a6
Fix cppcheck warning
2015-06-06 22:56:45 +01:00
Zack Middleton
5082548bf5
Horizontal scroll should not cause K_MWHEELDOWN key press
2015-05-29 16:38:43 -05:00
Zack Middleton
2292bf5bb2
Save bot accompany distance across map change or restart
...
If a bot is accompanying someone before map change or restart, the bot would
continue accompanying them but press up against them and orbit around them.
This is caused by the bot's formation distance being 0.
Save the formation distance so they maintain proper distance and do not
orbit around the player.
2015-04-30 17:19:00 -05:00