Zack Middleton
4fb053b8e7
Fix incorrect strncpy in S_AL_StartBackgroundTrack
...
Error is loop argument is NULL.
Ensure that s_backgroundTrack is a null terminated string.
2015-02-05 04:37:26 -06:00
Ensiform
43c7f1e734
Inform how many shader stages the max is in the warning message
2015-01-26 02:39:59 -06:00
Xycaleth
2742dfad26
Add arrow key support for win32 console
2015-01-26 02:39:59 -06:00
Ensiform
b9e97b3857
Move Event processor call down below the mouse checks.
...
Only send mouse events if both values are non-zero.
Hopefully this helps with the event overflow spam that can sometimes
happen on loads or laggy situations.
2015-01-26 02:39:58 -06:00
vloup
d7f00e2b65
Fix Team Arena tauntGauntlet command
2015-01-26 02:39:58 -06:00
Pan7
9c52d6c2bf
SIGABRT is in ANSI and POSIX.1, and SIGIOT isn't.
2015-01-18 18:41:06 +01:00
Pan7
16c67b96c2
No unix memmove for msvc
2015-01-17 18:15:03 +01:00
Zack Middleton
10e2caad46
Fix crash in MSVC x64 qsnapvectorsse, bug #5905
...
Make MASM x64 qsnapvectorsse the same as the inline version.
Remove leftover OP code, see commit 8a500d71da
.
2015-01-14 15:29:45 -06:00
Zack Middleton
af8acbd7a9
Make barrel/flash model name buffer safe
2015-01-12 22:35:20 -06:00
Zack Middleton
af617bc0e6
Fix possible levelPicNames buffer overflow in q3_ui
2015-01-12 21:28:03 -06:00
Zack Middleton
daa604ae9b
Fix parsing bots in arena info with trailing spaces
...
q3_ui would shown bot at index of number of bots in list.
game would send empty name to addbot command and command would think skill
(i.e., 2.000000) was the bot name.
2015-01-12 21:28:03 -06:00
Zack Middleton
9c4b75c499
Remove logically dead code from UI_GetServerStatusInfo
2015-01-12 21:28:03 -06:00
Zack Middleton
78e7656900
Make Window_Paint check if w is NULL before dereference
2015-01-12 21:28:03 -06:00
Zack Middleton
84e792f453
Fix (unused) "orders" menu script logic
...
"orders" menu script is not used by Team Arena.
The same C format string was given an int or string argument depending on if
ordering a single person or everyone. Make it always use int.
2015-01-12 21:28:03 -06:00
Zack Middleton
f74479afe8
Fix handling too many characters or aliases in Team Arena UI
2015-01-12 21:28:02 -06:00
Zack Middleton
07eb0f6dc9
Fix possible string buffer overflows in Team Arena UI
2015-01-12 21:28:02 -06:00
Zack Middleton
5020361be4
Fix off-by-one range checks in Team Arena UI
2015-01-12 18:31:39 -06:00
Zack Middleton
d62dfd87f9
Set float rounding mode on non-Windows platforms
...
Sys_SetFloatEnv in sys_unix.c existed but was not called. It sets the
rounding mode to "to nearest" which is the default on Linux. Might be
required on other platforms, I don't know.
2015-01-12 17:03:13 -06:00
Zack Middleton
1ff28f2389
Merge pull request #22 from zturtleman/cvar_modified
...
Add cvar_modified command
2015-01-07 19:48:16 -06:00
Zack Middleton
e7c7ca1309
Merge pull request #100 from Pan7/q3lcc
...
q3lcc option -lcppdir and -lrccdir.
Enabled using `q3lcc -Wo-lrccdir=/path/to/dir -Wo-cppdir=/path/to/dir`.
2015-01-07 19:45:12 -06:00
Zack Middleton
bd2af6e4ea
Use MSVC mode marcos for creat in q3cpp on Windows
...
Using unix mode 0666 for creat was causing crashes when compiled with MSVC.
So use the marcos recommended by MSDN. MinGW also has the marcos, so apply
to Windows builds in general.
2015-01-07 19:27:59 -06:00
Zack Middleton
aa1aad928e
Merge pull request #98 from Pan7/lcc
...
Windows header files for q3lcc
2015-01-07 19:31:51 -06:00
Zack Middleton
010821384c
Merge pull request #97 from Pan7/outp
...
Renaming outp to outbufp because outp() is an existing function
2015-01-07 19:27:53 -06:00
Simon McVittie
df7dab721f
Don't crash if more than 128 modes are available
2015-01-07 23:39:12 +00:00
Simon McVittie
ff7ff32b0e
Ensure that mbstowcs does not overflow its buffer
...
Similar to one of the changes by Tim Angus in fd986da
: mbstowcs' third
argument is the number of wchar_t available in dest, not the number
of bytes.
This does not appear to be exploitable, because ioquake3 does
not actually call mumble_set_identity() or mumble_set_description()
anywhere, but it might be relevant to derivatives.
Spotted via compiler warnings.
2015-01-07 23:37:11 +00:00
Michael Rieder
7c5feef6a2
Have custom intro cinematics for standalone game
2015-01-07 23:47:18 +01:00
Jun Woong
8469c40c2b
Stop LCC from warning about null pointer conversion to function pointer
...
Fixed LCC to correctly diagnose expressions with NPC. It no longer reports messages such as
warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent
2015-01-06 23:43:04 -06:00
Pan7
c4f851668b
q3lcc option -lcppdir and -lrccdir
2015-01-07 03:43:18 +01:00
Michael Rieder
dd3c6619bc
rephrase SSE availability message
2015-01-02 02:31:10 +01:00
Tim Angus
dd82b9d1a8
Fix case where interval overflows (thanks jackeri)
...
[17:58] <Jacker> hey, you might be interested in checking out this
4da5a397b5 (diff-acaedc9d8b492f9af8966ae68597392cR615)
[17:58] <Jacker> its related to the ddos protection code you wrote
[17:59] <Jacker> in continuation to:
ab9b08e584
[17:59] <Jacker> in a case if the client has in the past connected to
the server days/weeks earlier and time wraps the client wont be able to
connect
[18:00] <Jacker> since in that case if the bucket of that clients ip
still exists it wont get checked correctly
2014-12-29 19:08:42 +00:00
Zack Middleton
7de09c3490
Include stdint.h instead of inttypes.h in libmumblelink.c
...
MSVC 2010 has stdint.h but not inttypes.h.
Debian (GCC, MinGW) and OS X (Clang) can compile using stdint.h.
2014-12-28 15:08:02 -06:00
Zack Middleton
3cc16d6b92
Merge pull request #94 from wombat23/asmfix
...
Fix compile error with ml64 assembler
2014-12-28 15:06:29 -06:00
Tim Angus
a2bbb74cae
Unfix warning
2014-12-28 15:47:40 +00:00
Tim Angus
4756826521
Fix warning
2014-12-28 12:44:59 +00:00
Zack Middleton
70e3d61006
Fix cg.intermissionStarted only being enabled at first intermission
...
Game sets CS_INTERMISSION to 1 at intermission, but does not clear it at
map_restart so it's only sent the first time. CG_MapRestart manually clears
cg.intermissionStarted (which is set to value of CS_INTERMISSION when it's
modified). So subsequent intermissions do not have cg.intermissionStarted
enabled.
Now CS_INTERMISSION is cleared and sent each time intermission is started
and cg.intermissionStarted is enabled each time.
This makes subsequent intermissions not play sounds in CG_CheckLocalSounds
during the 1 second between intermission starting and switching to scoreboard
(PM_INTERMISSION) and makes Team Arena voice chats not play.
2014-12-27 18:32:49 -06:00
Pan7
a82fb6d1b1
Windows header files for q3lcc
2014-12-26 23:33:52 +01:00
Pan7
6de3f51c23
Renaming outp to outbufp because outp() is an existing function
2014-12-26 12:52:10 +01:00
Zack Middleton
4463af85fb
When player stops following a player, keep view angles
...
Now player keeps looking the same direction instead of facing somewhere else
which is slightly disorienting.
2014-12-19 22:09:26 -06:00
Zack Middleton
5cf45c5937
Don't use dead view angles after stop following a dead player
...
If ps.stats[STAT_HEALTH] is less or equal to 0, cgame uses fixed view angles.
When stop following a player, make sure health isn't less or equal to 0.
2014-12-19 22:08:06 -06:00
Zack Middleton
a700b76722
Fix reading 4 byte UTF-8 text input
2014-12-19 21:56:54 -06:00
Zack Middleton
65121c62c9
Add weapon barrel to gauntlet/mg/bfg items in baseq3 too
2014-12-10 19:29:36 -06:00
Zack Middleton
b0561e5fb4
Fix weapon barrel angle on Gauntlet and BFG items in Team Arena
...
The barrels were rotated 90 degrees from what they should be.
Used barrel code from CG_AddPlayerWeapon to fix them.
2014-12-10 19:23:35 -06:00
Michael Rieder
55c15e4466
Fix compile error with ml64 assembler
2014-12-07 03:40:52 +01:00
Zack Middleton
424122c366
Fix bot's teamleader name field being too short
...
Players using names with 32 to 35 characters could not be recognized as
the team leader.
Reported by Razor.
2014-12-04 16:50:28 -06:00
Zack Middleton
b21a59af8c
Fix negative glyph index in Team Arena text functions
...
Team Arena's text functions cast signed char values to int and use as an array index.
This works fine for values 0 to 127, but not for -128 to -1 which are a negative array index.
Instead use "character & 255" like client and original Q3 ui/cgame string drawing code.
2014-12-01 22:14:58 -06:00
Zack Middleton
08ddb99732
Fix saving/loading glyph 255 in RegisterFont
...
The glyph for character 255 (lower case y with two dots above it) was
rendered, but it's glyph information was not stored in fontInfo_t and
not saved into .dat file (including the ones in Team Arena).
Attempting to load it from existing .dat font files is fine because
shader name is "" and gets 0 handle. The handle was already 0 anyway.
2014-12-01 22:04:40 -06:00
SmileTheory
8c7fedb1fe
OpenGL2: Fix face culling.
2014-11-30 21:50:33 -08:00
SmileTheory
fd23249357
OpenGL2: Ensure tess VAO is bound before using it.
2014-11-21 16:12:53 -08:00
Zack Middleton
c787cf3aef
Fix stencil shadows not drawing if has 500 or more vertexes
...
Stencil shadow is not drawn if a mesh, or multiple meshes with the same
entity and shader, have more than 500 vertexes. The issue is caused by storing
the projected positions in the tess vertex buffer. Use a new array instead.
2014-11-16 21:21:30 -06:00
Zack Middleton
d06deb41c8
Don't set fog image border color
...
GL1's R_CreateImage sets GL texture to 0 before it ends, so border color is not
applied to the fog image. GL_CLAMP is not used for fog image (in either renderer),
so it would presumably not be used even if applied to the fog image.
2014-11-16 14:59:09 -06:00
Zack Middleton
60d28722ef
Remove unfinished OpenGL display list code
...
It seems unlikely anyone is going to do anything with this aside from stub
it out in OpenGLES ports.
2014-11-16 14:57:13 -06:00
Zack Middleton
22bcda018b
Correct a few OpenGL variable types
...
Affectly no change for desktop OpenGL.
Use correct types for OpenGLES support.
2014-11-16 14:56:43 -06:00
SmileTheory
89b719ec8d
OpenGL2: Bit more parallax optimization.
2014-11-14 01:12:41 -08:00
SmileTheory
d9e2184c1a
OpenGL2: Add support for parallax occlusion mapping.
2014-11-10 22:11:36 -08:00
SmileTheory
b1821e303d
OpenGL2: remove lightmap support from generic glsl shader.
...
This path was barely used and doing this compiles fewer shaders.
2014-11-10 21:59:37 -08:00
Zack Middleton
1d016e6ff5
Clear window buffer when it's created
...
When starting the game in windowed mode, the window buffer used whatever
was on the screen before running the game. Kind of like you could see
through the window, but it doesn't update what happens behind it.
It makes it look like something is broken or non-responsive.
So clear the window opengl buffer to black.
Credit to theinvsblman for the code.
2014-11-07 21:50:00 -06:00
SmileTheory
1ad2b413ef
Remove accidentally added increment.
2014-11-03 22:18:17 -08:00
SmileTheory
943259f6b4
OpenGL2: Support half floats for texcoords and vertex colors.
2014-11-03 19:10:35 -08:00
Zack Middleton
1ba9e7a45e
Always use GL_Cull to change cull state
...
Manually changing cull state can cause later GL_Cull calls to not change
the cull state.
2014-10-29 01:32:50 -05:00
Zack Middleton
39cf21bf54
Fix pid file ignoring user set fs_homepath
...
Create pid file in fs_homepath instead of (always) default homepath.
If not manually set, fs_homepath is set to Sys_DefaultHomePath().
2014-10-29 00:03:49 -05:00
Zack Middleton
3273df14af
Add missing EV_USE_ITEM15 cases
...
Add EV_USE_ITEM15 to cg_event.c and ai_dmq3.c for consistency.
2014-10-29 00:03:49 -05:00
SmileTheory
e488663e31
OpenGL2: Change normal/tangent vertex encoding.
2014-10-28 18:15:13 -07:00
SmileTheory
7e808f92d6
OpenGL2: Speed up tonemap shader.
2014-10-27 06:37:57 -07:00
Pan7
50038a7d26
qcurl_multi_add_handle error check
2014-10-26 17:10:41 +01:00
Ludwig Nussel
6214f73af5
a VM for ARMv7l
2014-10-24 13:44:23 +02:00
SmileTheory
3765652778
OpenGL2: Fix corrupt models.
2014-10-23 16:51:10 -07:00
SmileTheory
4f5ebf8349
OpenGL2: Bit of multidraw optimization.
2014-10-16 00:32:20 -07:00
SmileTheory
03ac9649ea
Fix a bug in previous commit.
2014-10-15 20:28:26 -07:00
SmileTheory
e34972b110
OpenGL2: Fix missing surfaces with r_mergeMultidraws 2.
2014-10-15 20:00:54 -07:00
SmileTheory
541d3a40c2
OpenGL2: Interleave vertex data for static MD3s.
2014-10-15 03:42:29 -07:00
SmileTheory
05e07311ba
OpenGL2: Fix invalid texture parameter.
2014-10-15 03:40:16 -07:00
SmileTheory
0578b70f38
OpenGL2: Reduce redundant GL calls.
2014-10-14 06:15:06 -07:00
SmileTheory
84206c8598
OpenGL2: Vertex array object support.
2014-10-14 01:50:44 -07:00
SmileTheory
873a02bd3c
OpenGL2: VBO cleanup.
2014-10-13 21:57:06 -07:00
SmileTheory
a90c17ac1b
OpenGL2: Better BSP surface merging.
2014-10-07 04:17:01 -07:00
Zack Middleton
918eed9295
OpenGL2: Don't segfault if r_ext_multitexture is disabled
2014-09-29 01:02:13 -05:00
Zack Middleton
a955d975b7
Add function for clearing global shader instead of duplicating the code
2014-09-27 01:35:35 -05:00
Tim Angus
f83334d81b
Add facility to describe cvars
2014-09-26 14:29:51 +01:00
Tim Angus
f9c202f83e
Use correct type for thinktime
2014-09-26 14:29:11 +01:00
Zack Middleton
24923615b7
Don't add duplicate resolutions to r_availableModes
...
SDL can give the same resolution with different refresh rates.
The refresh rate isn't used, so only add resolution to mode list once.
2014-09-20 19:23:33 -05:00
Zack Middleton
9fbbf4214d
Fix Windows key bind name on non-Mac using SDL2
...
SDL 1.2 sends SDKL_*META (command) and SDLK_*SUPER (windows key).
SDL2 sends SDLK_*GUI for both.
2014-09-11 20:04:28 -05:00
Zack Middleton
878cda6a20
Fix binding 'context menu' key using SDL2
...
SDL 1.2 converted Windows' VK_APPS and X11 XK_Hyper_R to SDLK_MENU.
SDL2 has it as a separate SDLK_APPLICATION key, so convert it to K_MENU too.
2014-09-11 20:03:54 -05:00
Zack Middleton
4529f124d6
Merge pull request #29 from inolen/shader_tidying
...
misc shader fixes
2014-09-09 19:18:59 -05:00
Zack Middleton
a5d641b3d0
Merge pull request #84 from MAN-AT-ARMS/openal_speedsound
...
Change default value for s_alDopplerSpeed
2014-09-09 18:05:08 -05:00
Zack Middleton
d5ddb72502
Merge pull request #85 from MAN-AT-ARMS/curl_fixes
...
Fix building with curl on Linux PPC and Sparc
2014-09-09 18:03:36 -05:00
MAN-AT-ARMS
dd69576dc1
Fix building with curl on Linux PPC and Sparc
2014-09-09 13:18:28 -04:00
MAN-AT-ARMS
a3653e475e
Change default value for s_alDopplerSpeed
2014-09-09 13:03:29 -04:00
MAN-AT-ARMS
dd83cbdc25
Fix possible division by zero in S_PaintChannelFrom16_altivec
2014-09-09 11:30:23 -04:00
Tim Angus
43b21055b8
Actually, that's not suppressing, that's changing behaviour
2014-09-01 13:07:08 +01:00
Tim Angus
7277d8d6e7
Fix more warnings
2014-09-01 13:03:06 +01:00
Tim Angus
6665ea4a49
Fix renderergl2 warnings
2014-09-01 11:35:49 +01:00
Tim Angus
d38039f975
Fix renderergl1 warnings
2014-09-01 11:31:39 +01:00
Tim Angus
eeaf0227f7
Suppress warning of (deliberate) null pointer deference
2014-09-01 11:19:57 +01:00
Tim Angus
4f3c95c589
Fix client warnings
2014-09-01 11:13:47 +01:00
Tim Angus
fbdb3e0875
Fix game warnings
2014-09-01 11:09:11 +01:00
Tim Angus
b55809b925
Fix ui warnings
2014-09-01 11:05:46 +01:00
Tim Angus
4444202a41
Fix cgame warnings
2014-09-01 10:47:15 +01:00
Tim Angus
621a72e698
Fix a few warnings
2014-08-30 17:29:23 +01:00
Zack Middleton
c621589157
Fix 6155: OpenGL2: some shader stages remains visible through fog volumes
...
Fix CalcFog in generic_vp.glsl to fog fogged surfaces.
Now it's the same as CalcFog in fogpass_vp.glsl.
Fixes shaders that use adjustColorsForFog. Impact wallmarks, blood sprites, flame textures and so on.
2014-08-29 02:50:02 -05:00
Zack Middleton
de3062623a
Use ColorIndexForNumber in Con_DrawSolidConsole
2014-08-29 01:55:47 -05:00
Zack Middleton
e742952db8
Port COM_ParseExt fixes to CommaParse
2014-08-28 20:34:05 -05:00
Zack Middleton
1d95ef210e
SDL 2 scroll/caps/num lock keys send KEYUP event when key is released
2014-08-28 20:09:37 -05:00
Pan7
18e08125dd
Add ColorIndexForNumber macro replacing '& 0x07'
...
Makes it easier to add more colors.
2014-08-28 20:09:37 -05:00
Zack Middleton
eeef7cbae7
Don't scale cinematic time by timescale twice
...
Reported by Ensiform.
2014-08-28 20:09:37 -05:00
Zack Middleton
f17f58705c
Remove a numIboIndexes=0 that is not read from GL2 tr_bsp.c
...
numIboIndexes is set to 0 inside the loop for each surface. Does not need to be set before loop.
2014-08-27 20:47:45 -05:00
Zack Middleton
e5f54c584a
Fix incorrect rgbGen const reading uninitialized memory
...
If ParseVector fails, color isn't fully set.
2014-08-27 20:35:16 -05:00
Zack Middleton
0853c85e19
Fix incorrect strncat usage in CL_ServerInfoPacket
2014-08-27 20:35:16 -05:00
Zack Middleton
b0596248ff
Remove unused functions from null_main.c and null_input.c
...
Sys_mkdir is suppose to have a capital M, which is also in null_main.c.
2014-08-27 20:35:16 -05:00
Tim Angus
86b75ba936
There have been 0 days since the last compiler warning
2014-08-27 12:40:45 +01:00
Tim Angus
0c0019a2d1
Fix some warnings
2014-08-27 11:24:25 +01:00
Zack Middleton
137ddb9dc6
Get clipboard data from SDL
...
This makes pasting in client console and UI edit fields work on X11 and OS X.
Sys_GetClipboardData is only used by client, so returning NULL in dedicated is fine.
2014-08-27 04:32:05 -05:00
Zack Middleton
077f6bd068
Fix binding KP_NUMLOCK
...
Restore mapping SDL numlock to quake3 numlock.
2014-08-26 23:01:18 -05:00
Tim Angus
cf7004ffb2
Fix OSX build
2014-08-25 12:03:10 -04:00
Tim Angus
2a3368481d
Merge branch 'master' into sdl2
...
Conflicts:
Makefile
code/renderergl2/tr_image.c
2014-08-25 15:00:48 +01:00
Tim Angus
7d026177ad
Fix assorted warnings
2014-08-25 14:48:49 +01:00
SmileTheory
ca9eebb125
OpenGL2: Fix a glsl compile error on old hardware with r_shadowFilter 0.
2014-08-02 00:02:46 -07:00
SmileTheory
ff1f093a0b
OpenGL2: Remove R_MipMap() and R_MipMap2(), and fix gamma conversion in R_MipMapsRGB()
2014-08-01 23:57:26 -07:00
SmileTheory
2b2d696f12
OpenGL2: Add fourth cascade for sun shadows, and adjust sun shadow cvar defaults.
2014-07-31 21:01:57 -07:00
/dev/humancontroller
7b866ae96d
guard against out-of-bounds jump table targets
2014-07-31 03:56:29 -05:00
Zack Middleton
75cce50a9c
Don't load external GLSL files by default
...
External GLSL should probably only be used for development testing,
not released products. The GLSL files are tied to the code, and the
code changes some what often.
Fixes using OpenArena 0.8.8 which has incompatible GLSL files in a pk3.
2014-07-25 23:57:53 -05:00
SmileTheory
3d01543e2c
OpenGL2: Replace R_MipMapsRGB() with faster version.
2014-07-22 11:43:19 -07:00
Pan7
f62d4c7f1c
sayto cmd with player name completion
2014-07-18 00:15:05 +02:00
Zack Middleton
0fe2e8d224
Restore drawing a cut off client console line in 1920x1080
...
The text lines don't meet at top of the sceen in 1920x1080, restore
drawing a cut off line across the top. In 640x480 this line isn't seen
at all. This is still better then trying to draw twice as many lines
than are actually seen (the way it was before the last commit).
2014-07-13 02:07:45 -05:00
Zack Middleton
b9e0398244
Don't draw client console buffer past top of screen
...
Thanks @Pan7.
2014-07-12 21:57:03 -05:00
Zack Middleton
d9309ac6db
Fix overstrike/insert logic being reversed in q3_ui
2014-07-03 21:06:05 -05:00
Zack Middleton
1d664a3a10
Remove unused cvar in_joystickDebug
2014-07-03 20:59:54 -05:00
Zack Middleton
5994564537
Remove unused array joy_pressed
2014-06-19 20:48:54 -05:00
Zack Middleton
5c1091b414
Fix SkipRestOfLine going past end of string
...
If string data starts with a 0 (string terminator), don't skip over it at p++.
Not causing any problems in ioq3 as far as I know.
2014-06-17 21:31:29 -05:00
Zack Middleton
95b241b8ba
OpenGL2 don't try to dlight surfaces that had all dlights culled
...
In the renderers, dlightbits are never cleared from world surfaces.
The dlight image does not repeat, so if it draws on extra surfaces it's
not visible.
However if using a repeating image (tr.defaultImage instead of tr.dlightImage);
* In OpenGL1 image is only drawn on surfaces close to dlight origin.
* In OpenGL2 image is draw on surfaces clearly outside the dlight radius, including past non-dlighted surfaces.
It seems there was a similar issue with pshadowBits. So update surface
dlightBits even if 0, like already done for pshadowBits. This causes
only surfaces close to origin to be affected. (Though it is a little
farther than in OpenGL1.)
I have no idea why this isn't a problem in OpenGL1.
2014-06-10 21:34:31 -05:00
Zack Middleton
107cae63d6
Merge branch 'master' into sdl2
...
Conflicts:
.travis.yml
2014-06-03 00:52:49 -05:00
Zack Middleton
b12a9acf4d
Merge branch 'master' (early part 2) into sdl2
2014-06-03 00:50:50 -05:00
Ensiform
af79d2cb38
Fix an invalid null deref check in the slider code.
2014-05-29 22:27:00 -05:00
SmileTheory
9efaf819dc
OpenGL2: Really obvious optimization to previous commit.
2014-05-27 20:52:36 -07:00
SmileTheory
318d45cff5
OpenGL2: Reimplement MD3 tangent space calculation.
2014-05-27 18:20:12 -07:00
Zack Middleton
347b429fdb
Fix potential OOB in Windows Dedicated TTY CON_Show
...
Found by Coverity.
2014-05-26 23:11:56 -05:00
Zack Middleton
077ab4cbd1
Fix OOB access in CM_EdgePlaneNum without erroring in CM_GridPlane
...
I changed warning to error in 9d74227559
,
which broke JA's mp/ctf4 map and probably others.
2014-05-25 23:03:42 -05:00
Zack Middleton
eeeaf3f125
Fix potential buffer overflow caused by long tcMod args
...
Found by Coverity.
2014-05-25 18:44:17 -05:00
Zack Middleton
9c99cf29db
Have OpenGL2 "map $lightmap" check for NULL tr.lightmaps too
...
Zero length lightmap lump will have NULL tr.lightmaps.
OpenGL1 already has this check, because r_vertexLight 1
would crash Team Arena. OpenGL2 does not disable loading lightmaps
when r_vertexLight is 1 though, so it does not have that issue.
2014-05-25 18:41:57 -05:00
Zack Middleton
7a4ef47476
Fix max bans range check in SV_AddBanToList
...
Adding too many bans would write out of bounds. Found by Coverity.
2014-05-25 18:41:51 -05:00
Zack Middleton
eea9fbdb61
Fix unchecked buffer size issues in l_script.c and l_precomp.c
...
Found by Coverity.
2014-05-25 18:41:24 -05:00
Zack Middleton
078d004dc2
Fix potential buffer overflow in PS_ReadPrimitive
...
Found by Coverity.
2014-05-25 16:28:38 -05:00
Zack Middleton
e21ff01946
Don't use memset with non-zero value to fill ints
...
Coverity reported using value -2 as a bad memset. Really doesn't make sense when filling ints and not bytes too.
2014-05-25 16:10:01 -05:00
Zack Middleton
9d74227559
Fix potential out of bounds access caused by CM_GridPlane
...
Coverity doesn't care if there is a warning, out of bounds access is bad.
2014-05-25 15:59:09 -05:00
Zack Middleton
6a33a69795
Disable key repeat if key catcher is 0
...
SDL1.2 branch disables key repeat when key catcher is 0.
Presumably to prevent binds from executing multiple times.
SDL2 replaced being able to disabled key repeat using SDL_EnableKeyRepeat
with a non-zero repeat value in the key event.
2014-05-19 03:45:44 -05:00
Zack Middleton
a3c2f77236
Fix Gauntlet barrel axis in UI
...
UI's PositionRotatedEntityOnTag is different than CGame's and
UI has switched pitch/roll for Gauntlet/BFG axis to get it to
look like /close to/ how it looks in CGame.
Making UI use the same *PositionRotatedEntityOnTag and axis as
CGame fixes the Gauntlet blade being wobbly in controls menu.
2014-05-18 20:38:14 -05:00
Zack Middleton
daa570c193
Fix always switching back to mgun in Q3 controls menu
...
Caused by 120e296a74
.
2014-05-18 20:27:18 -05:00
Zack Middleton
3a7298d6ae
Make R_LerpTag return qfalse if MDR tag does not exist
...
Elite Force SDK has trap_R_LerpTag return void, so this shouldn't cause issues for iostvef.
Allows new games to check if a tag exists in a MDR model.
2014-05-06 21:10:16 -05:00
Zack Middleton
b9061c8447
Fix cg.skulltrails out of bounds access in Team Arena Harvester mode
...
In Team Arena's Harvester mode, players corrupt your memory from beyond
the grave. Gib the players to stop the corruption!
CG_PlayerTokens is called for player entities, including corpses.
The entity number is used for the index in cg.skulltrails which only has
MAX_CLIENTS elements. This results in incorrect memory being overwritten
for corpse entities (as the entity number is >= MAX_CLIENTS).
So limit skull trails to valid entities (entity number < MAX_CLIENTS).
2014-05-01 21:32:21 -05:00
MAN-AT-ARMS
b9b67036f3
Rebuilt MSVC SDL 1.2.15 Revision 8040 import libs
2014-04-16 15:08:21 -05:00
SmileTheory
4fe69cb418
OpenGL2: Remove sRGB support, replace with gamma cvars.
2014-04-16 05:26:03 -07:00
MAN-AT-ARMS
880a7c6bec
Add MSVC SDL 1.2.15 Revision 8040 import libs
2014-04-07 22:28:18 -05:00
MAN-AT-ARMS
d426ed307d
Update SDL2 to 2.0.3
2014-03-24 19:13:56 -04:00
Zack Middleton
c55df2c9aa
Merge branch 'master' into sdl2
2014-03-24 17:53:08 -05:00
Zack Middleton
73aa7ef2c7
Merge branch 'master' (early part) into sdl2
2014-03-24 17:51:57 -05:00
Tobias Kuehnhammer
63463d1bcf
Fix compiling game VM with OBSTACLEDEBUG defined
2014-03-24 17:10:24 -05:00
Zack Middleton
9f3fd12501
Remove unused extern qboolean charSet
...
No variable even exists.
2014-03-24 12:47:14 -05:00
Tim Angus
3185ae6b1f
Merge pull request #56 from MAN-AT-ARMS/net_stop
...
Release network bindings on shutdown
2014-03-24 14:35:34 +00:00
Tim Angus
1cbb5e9771
Merge pull request #44 from xhairball/features/add-vorbis-1.3.4
...
Add vorbis 1.3.4 support
2014-03-24 14:15:11 +00:00
Tim Angus
2393c8f44f
Merge pull request #55 from MAN-AT-ARMS/status_command
...
Fix colored name padding and allow IPv6 address to fit in output of 'status' command
2014-03-24 14:12:06 +00:00
Tim Angus
9027365be6
Merge pull request #59 from MAN-AT-ARMS/sdl_1215_hg
...
Update SDL 1.2.15 to Revision 8040
2014-03-24 13:23:24 +00:00
SmileTheory
b099255748
#6095 : OpenGL2: Use areamask and leaf cluster for PVS when VIS is missing.
2014-03-19 17:59:07 -07:00
Zack Middleton
67d9ecd070
Fix FS_FOpenFileReadDir non-zero file handle when file not found in pk3
...
If a pk3 search path is passed to FS_FOpenFileReadDir, a non-zero
file handle is returned if file is not found. This causes incorrect
behavior in FS_ReadFileDir (when a pk3 search path is passed in)
which only checks file handle, not length, for seeing if file exists.
I don't know of any issues in ioq3 caused by this.
2014-03-18 20:49:52 -05:00
Zack Middleton
0861d3c583
Revert "DMA 44100Hz needs more memory for sound buffers"
...
This reverts commit 0e6632f464
.
Cause crashes if com_soundMegs is 32.
2014-03-17 13:44:30 -05:00
Zack Middleton
9f22ae9cb2
Fix ctrl-c etc codes for edit fields
2014-03-17 12:46:09 -05:00
Zack Middleton
344ff23164
Fix multisampling on X11
...
Setting SDL_GL_ACCELERATED_VISUAL was disabled for ioq3 SDL 1.2
for other reasons. However, it causes creating GL context to fail
if multisampling is enabled on X11 for both SDL1.2 and SDL2.
Tested using nVidia proprietary driver on Debian 7.
2014-03-17 12:24:59 -05:00
SmileTheory
375f6247d4
OpenGL2: Parallax corrected cubemap (cheaper trick)
2014-03-16 16:29:38 -07:00
Zack Middleton
8455b5a833
Don't crash when fail to create SDL window
2014-03-15 17:54:00 -05:00
Tequila
baca82d64e
Bunch of comment fixes
2014-03-13 02:20:54 +01:00
Zack Middleton
0e6632f464
DMA 44100Hz needs more memory for sound buffers
...
It doubles the size of the data compared to the default (22050),
so increase the buffer automatically. Likewise, decreasing speed
doesn't need as much (though that doesn't really matter).
2014-03-11 17:16:03 -05:00
Zack Middleton
a167110f43
Don't mix sfx with NULL soundData
...
Caused a crash. Already done for looping sounds.
2014-03-11 16:44:50 -05:00
Zack Middleton
63d1911c18
Parse q3map_sunExt in OpenGL1 too
...
Used for drawing sun, which is supported by both OpenGL1 and OpenGL2.
OpenGL2 already parses it.
2014-03-11 12:38:53 -05:00
Zack Middleton
07290a7d52
Fix typo in animMap and videoMap warnings
2014-03-10 19:58:55 -05:00
Zack Middleton
c8c7bb1dc3
Fix R_GetEntityToken ending prematurely
...
If spawn var key or value is "" it caused R_GetEntityToken (available to
cgame, used by opengl2) to stop parsing, whereas game VM would continue.
Changed it to match parsing used for game VM
(see G_GET_ENTITY_TOKEN in code/server/sv_game.c).
The map poq3dm5 has a "wait" key with value "".
2014-03-10 16:27:31 -05:00
Zack Middleton
5a3e10d716
Don't say cubemap is outside lightgrid 6 times
2014-03-10 16:12:49 -05:00
Zack Middleton
b98e6d5cc0
Fix error handling in R_ParseSpawnVars
...
When R_GetEntityToken returns qfalse it resets pointer for parsing, by
R_ParseSpawnVars not returning qfalse it could cause an infinite loop.
Also add newlines to printfs.
2014-03-10 15:57:26 -05:00
MAN-AT-ARMS
5e1011bf70
Update SDL 1.2.15 to Revision 8040
2014-03-09 09:24:54 -04:00
MAN-AT-ARMS
dafed0fd66
Update SDL2 to 2.0.2
2014-03-08 21:33:02 -06:00
Zack Middleton
9ec7931c54
Merge branch 'master' into sdl2
2014-03-08 21:32:47 -06:00
Zack Middleton
e7f43545ed
Don't wash out HDR vertex lite surfaces in OpenGL2
...
Vertex lite surfaces being brighter than light maps looks bad,
they're meant to look the same. Especially in ET, which mixes
them fequently. It's noticeable in Q3 too though.
BSP lightmaps (i.e. not external HDR lightmaps) use
R_ColorShiftLightingBytes, now *Floats (used by vertex colors)
has the same behavior.
This may be a problem for HDR lightmaps, as the RGB will always be
scaled to 0.0 to 1.0 range.
I had enabled this for non-HDR before, but now HDR needs it too.
2014-03-08 12:30:47 -06:00
MAN-AT-ARMS
11ed883298
OpenGL2: Set default normal/specular in RE_RegisterShaderFromImage
2014-03-04 20:31:31 -05:00
SmileTheory
ee67d0a981
OpenGL2: Add normalScale and parallaxDepth stage keywords and helper cvars.
2014-03-03 21:02:39 -08:00
SmileTheory
ea2810c085
OpenGL2: Minor GLSL shader improvements.
2014-03-03 17:32:07 -08:00
MAN-AT-ARMS
89fab090d7
Fix s_alDopplerSpeed default value
2014-03-02 23:00:46 -06:00
Ensiform
950dc7254a
Fix native trap_BotMutateGoalFuzzyLogic
2014-03-02 22:53:15 -06:00
MAN-AT-ARMS
8661e0509b
Release netowrk bindings on shutdown
2014-02-22 21:18:34 -05:00
MAN-AT-ARMS
94e36c288c
Fix colored name padding and allow IPv6 address to fit in output of
...
'status' command
2014-02-22 20:47:18 -05:00
MAN-AT-ARMS
71386beaac
OpenGL2: Fix pshadows for MDR models
2014-02-22 18:09:48 -06:00
Zack Middleton
5bf4f26d5f
Remove references to alDopplerVelocity
...
Let's load driver even if it doesn't have the deprecated alDopplerVelocity.
2014-02-22 18:06:04 -06:00
MAN-AT-ARMS
6887a69064
Replace deprecated alDopplerVelocity with alSpeedOfSound per OpenAL 1.1 spec
2014-02-22 18:02:22 -06:00
SmileTheory
3740c55dec
OpenGL2: Remove and force r_softOverbright.
2014-02-20 17:01:50 -08:00
Tim Angus
1250b352be
Merge branch 'master' into sdl2
2014-02-18 10:30:35 +00:00
SmileTheory
5fabc28dff
OpenGL2: Fix rendering when r_hdr = 0 and r_floatLightmap = 1
2014-02-14 22:41:25 -08:00
Zack Middleton
3cfc1bb1f9
Rebuilt Windows libcurl-7.35.0 static libraries
...
Fix linking with mingw32.
Enable FTPS and HTTPS.
2014-02-14 20:08:48 -06:00
SmileTheory
78f8100d74
OpenGL2: Oops, set lightmap alpha to 1.
2014-02-14 03:31:54 -08:00
SmileTheory
7a23bb1c59
OpenGL2: Fix bug in ColorToRGBM().
2014-02-14 02:52:22 -08:00
SmileTheory
79e9baedf8
OpenGL2: Set RGBM to use a multiplier of 1, and only use it with HDR lightmaps.
2014-02-13 18:04:23 -08:00
Zack Middleton
6beab9cf58
Merge pull request #45 from xhairball/features/upgrade-curl-7.35.0
...
Upgrade libcurl to the latest release (7.35.0).
2014-02-13 16:50:25 -06:00
Zack Middleton
718d0a0d11
Fix sending pk3 download error messages to clients
...
Disabled in e52a492f61
.
2014-02-09 20:23:48 -06:00
user
922d7044f6
Merge branch 'master' into features/upgrade-curl-7.35.0
2014-02-10 00:28:57 +00:00
Zack Middleton
90eb32c5ab
Clear referenced paks when disconnecting
...
After playing Team Arena, if you switch to Q3A and try to play a demo with
cl_allowDownload enabled it would print "Need Paks: blah blah" and not play the demo.
2014-02-08 22:09:30 -06:00
hairball
1435e78454
Upgrade from libcurl 7.15.5 (2006-08-07) to 7.35.0 (2014-01-29)
...
Note: This uses the generic curlbuild.h because it is used by multiple platforms.
A system curl would have a configure generated one.
The libraries for win32 and win64 were cross compiled with these options:
--disable-shared --enable-static --disable-ares --enable-http \
--enable-ftp --disable-ldap --disable-ldaps --disable-rtsp \
--disable-dict --disable-file --disable-telnet --disable-tftp \
--disable-pop3 --disable-imap --disable-smtp --disable-gopher \
--enable-ipv6 --without-ssl \
--disable-manual --disable-libcurl-option
This effectively enables only HTTP and FTP protocol support.
2014-02-08 17:33:56 +00:00
hairball
cc40051839
Add vorbis 1.3.4 build support
2014-02-08 08:26:03 +00:00
Zack Middleton
ed087bb89e
Merge branch 'master' into sdl2
2014-02-07 23:24:12 -06:00
Zack Middleton
d0b1fb4fed
Merge branch 'features/upgrade-opus-1.1' of https://github.com/xhairball/ioq3 into opus_update
...
Conflicts:
Makefile
2014-02-07 22:12:59 -06:00
Zack Middleton
166f5ab90c
Merge branch 'features/upgrade-opusfile-0.5' of https://github.com/xhairball/ioq3 into opus_update
2014-02-07 22:11:31 -06:00
hairball
2de340895f
Upgrade libogg 1.3.0 to 1.3.1
...
This is a minor bugfix release with few changes
2014-02-08 03:38:01 +00:00
hairball
b0aed02823
Upgrade opusfile 0.2 to 0.5
2014-02-08 03:29:10 +00:00
hairball
9e0c602795
Upgrade opus 1.0.2 -> 1.1
2014-02-08 03:21:02 +00:00
Zack Middleton
d8e42cf02f
Merge pull request #35 from inolen/no_renderer_restart
...
don't restart renderer in SV_SpawnServer unless client running dedicated
2014-02-01 16:22:24 -08:00
Zack Middleton
aedb151d94
Merge pull request #33 from inolen/widescreen_clear_fix
...
don't clear screen during CA_LOADING and CA_PRIMED
2014-02-01 15:51:41 -08:00
Anthony Pesch
278d7533e5
restart the renderer after the hunk mark has been set
2014-02-01 09:58:49 -08:00
Zack Middleton
36a4075a8d
Try default OpenAL driver if user set one fails to load
2014-01-27 20:09:55 -06:00
robo9k
1611188ef7
Fix check for jpeg_mem_ to work with libjpeg-turbo
2014-01-27 23:41:51 +01:00
Zack Middleton
cc9072d098
Check for buffer overflow for rail/lightning surfaces
2014-01-25 21:15:36 -06:00
Anthony Pesch
280b5269f8
don't clear screen during CA_LOADING and CA_PRIMED
2014-01-23 13:44:36 -08:00
Zack Middleton
dde36d91ce
Fix OpenGL2 non-HDR map surface over brighting
...
Vertex lit map surfaces were saturating to white when
r_mapOverBrightBits was increased and r_hdr was disabled.
Now the color is normalized like lightmaps and lightgrid
when r_hdr is disabled. Which is the same as OpenGL1.
Noticeable on misc_model trisoup.
2014-01-16 00:12:21 -06:00
Zack Middleton
aa92f7e76a
Merge pull request #30 from inolen/nova_fix
...
don't call va each frame in GLSL_VertexAttribPointers
2014-01-14 13:23:37 -08:00
Anthony Pesch
3603102088
don't call va each frame in GLSL_VertexAttribPointers
2014-01-14 13:19:15 -08:00
SmileTheory
eea652f5c5
Don't create images/framebuffers that won't be used, and add checks before use.
2014-01-12 20:52:36 -08:00
Zack Middleton
0698817a7f
Remove unused code path from S_Base_StartBackgroundTrack
...
We make sure intro isn't NULL. Then if loop is NULL, set it to intro.
2014-01-12 18:16:39 -06:00
Zack Middleton
ebac005c9e
Don't read clc.voipIncomingSequence until range checked sender
2014-01-12 18:01:02 -06:00
Zack Middleton
581b6316b7
Fix GL2 deluxemap 0,0,0 to 127,127,127
...
Checked if first byte was 0 twice instead of checking second byte.
2014-01-12 17:02:21 -06:00
Zack Middleton
52e72408d9
Fix demoName Com_sprintf size larger than buffer
...
Maybe this is why demoName is a static global with the comment 'compiler bug workaround'?
2014-01-12 16:22:46 -06:00
Zack Middleton
43c6ebee8d
Fix music studder in base sound when starting silent cinematics
2014-01-12 15:14:38 -06:00
Anthony Pesch
25bde423b5
fixed formatting of a few GLSL float constants
...
remove unneeded version number from texturecolor shader
call GLSL_VertexAttribPointers after attribute arrays have been enabled
2014-01-11 17:43:19 -08:00
Zack Middleton
a889d7a14f
Remove extra client_t::csUpdated[] slot
...
sv.configstrings[] is limited to 0 to MAX_CONFIGSTRINGS-1, make client_t::csUpdated[] the same.
2014-01-11 17:37:06 -06:00
Zack Middleton
4520857fc9
Make GL2 MDR code use R_VboPackNormal for normal
2014-01-10 12:48:17 -06:00
Zack Middleton
fda03ee4ca
Fix PNG tRNS length checks
2014-01-10 12:34:48 -06:00
SmileTheory
bc2efc4870
#6077 : OpenGL2: Add r_ignoreDstAlpha.
2013-12-17 04:08:25 -08:00
Zack Middleton
1a86229538
Fix playback of stereo sounds in Base sound system
...
Already works correctly in OpenAL.
2013-12-15 00:23:10 -06:00
SmileTheory
623d107f42
OpenGL2: Small glsl shader optimizations, fixes, and cleanup.
2013-12-12 21:38:01 -08:00
Amanieu d'Antras
efe8437cde
Fix crash in OpenAL when no input devices are available
2013-12-10 16:40:28 -06:00
SmileTheory
f6f3a19f73
OpenGL2: Support GL_ARB_vertex_type_2_10_10_10_rev for normals/tangents/lightdirs
2013-12-09 17:33:54 -08:00
Zack Middleton
2ba7a33715
Have ui_test cmd in missionpack ui return qtrue
2013-12-07 21:27:17 -06:00
Zack Middleton
fa9fd1b1fc
Support spatialized raw streams in base sound, e.g. for VoIP
2013-12-07 00:15:29 -06:00
Zack Middleton
7c0491d7fd
Add latch to r_centerWindow and r_allowResize
2013-12-06 23:42:23 -06:00
IR4T4
ca23b626a0
r_noborder changes require a restart
2013-12-06 23:29:47 -06:00
Zack Middleton
973a616061
Fix white flash levelshot bug in OpenGL1
...
If you tried to draw the last loaded image, gl texture 0 (which is appearently white)
was used because renderer thought the image was already bound.
Why OpenGL1 renderer binds texture 0, I have no idea. It's been removed from OpenGL2.
2013-12-06 23:06:52 -06:00
Zack Middleton
37de879211
Add cvar_modified command
...
Based on cvarlist command, it only lists modified cvars.
2013-12-01 23:16:51 -06:00
James Canete
c02528cf1d
Merge pull request #21 from cmf028/master
...
Fix glsl DEFORM_BULGE calculation
2013-12-01 19:33:51 -08:00
cmf028
e01b66aef5
Fix glsl DEFORM_BULGE calculation
2013-12-01 21:19:26 -06:00
Zack Middleton
0a4da32d62
Remove R_AddAnimSurfaces and R_MakeAnimModel prototypes
2013-11-30 03:16:05 -06:00
SmileTheory
ecc1f23b1d
OpenGL2: Remove redundant GLS_* enum.
...
Thanks Xycaleth for pointing out.
2013-11-29 23:40:48 -08:00
SmileTheory
6f3edb20b8
#6069 : Remove md4 model support.
2013-11-29 16:13:47 -08:00
Zack Middleton
952fd0489c
Readd backspace char event for UI VM text fields
...
UI VMs expect a backspace char event, but sdl2 branch only was only sending a key event.
Revert cl_keys.c to master branch (it would cause backspace to happen twice in console).
2013-11-26 17:03:15 -06:00
Zack Middleton
ad514c9689
Merge branch 'master' into sdl2
2013-11-26 16:57:10 -06:00
Zack Middleton
2044bcb12d
Silence warnings about unused static functions in opengl2
2013-11-25 15:27:09 -06:00
Zack Middleton
1633ac5b93
Make kamikaze timer loops use level.num_entities instead of MAX_GENTITIES
...
Optimization. Many other loops use level.num_entities, there was no
special reason that MAX_GENTITIES was used for these.
2013-11-21 02:26:31 -06:00
Zack Middleton
57eae5da91
Fix signal 6 in S_Base_StartBackgroundTrack on OS X 10.9
...
In S_UpdateBackgroundTrack, s_backgroundLoop was passed to
S_Base_StartBackgroundTrack and tried to copy to itself using Q_strncpyz.
2013-11-20 23:19:17 -06:00
Zack Middleton
8af9516e88
End current draw surface before drawing cinematic
...
Fixes drawing StretchPic *before* CIN_DrawCinematic resulting
in cinematic being drawn before the StretchPic.
2013-11-20 21:37:17 -06:00
SmileTheory
d63d7ba6bf
OpenGL2: Use RGBA16F format for HDR.
...
RGB16F is not 4-byte aligned and not supported by certain hardware.
2013-11-20 00:48:18 -08:00
SmileTheory
e686010d73
#6059 : OpenGL2: Read depths from resolve fbo when msaa is on in RB_TestFlare().
2013-11-20 00:45:08 -08:00
SmileTheory
c350963bf2
OpenGL2: Match glsl data type names: matrix_t -> mat4_t, vec*i_t -> ivec*_t
2013-11-19 03:23:50 -08:00
Zack Middleton
3736968943
Merge branch 'master' into sdl2
2013-11-17 19:01:35 -06:00
SmileTheory
6e5f8cc918
OpenGL2: Calculate bitangent in shader, and store normal/tangent as normalized byte arrays.
2013-11-12 19:21:51 -08:00
Zack Middleton
a53e7c3074
Fix comparing unsigned values to < 0 in gl2
2013-11-11 01:12:42 -06:00
Ensiform
93be2655f8
Remove unused cvar_t variable cl_trn
2013-11-11 01:09:10 -06:00
Zack Middleton
203ab7b9af
Fix cinematics often being silent on OS X
...
If OpenAL source isn't playing, often what happens is: queued buffers is 0 and processed buffers is non-0.
S_AL_StreamUpdate won't play the steam if queued buffers 0.
So start the stream in S_AL_RawSamples.
2013-11-11 00:21:53 -06:00
Zack Middleton
b3bd74fce7
Fix restoring loop sound position on OS X
...
The default OpenAL library on OS X errors AL_INVALID_VALUE for AL_SEC_OFFSET if source isn't playing.
2013-11-10 23:28:54 -06:00
Zack Middleton
5795be68f6
Make OpenAL buffer management work on OS X
...
Don't assume we have unlimited OpenAL buffers.
Detach buffers from sources by setting AL_BUFFER to 0. Cannot delete buffers on OS X immediately after alSourceUnqueueBuffers.
Free unprocessed stream and music buffers.
Free unused sfx buffers when sound file exists and fails loading into OpenAL (though I haven't seen it fail).
2013-11-10 22:55:35 -06:00
Zack Middleton
d526eacd10
Fix flares being invisible after vid_restart
...
flareCoeff was only set if r_flareCoeff cvar was set as modified.
Cvars are set as modified when created or changed.
2013-11-09 16:57:58 -06:00
SmileTheory
ae57eebf52
Merge branch 'glindex_size_fixes' of https://github.com/inolen/ioq3 into inolen-glindex_size_fixes
2013-11-08 22:19:32 -08:00
Zack Middleton
baf5737779
Remove function prototypes for non-existant Sys_* DLL functions
2013-11-08 18:44:04 -06:00
Zack Middleton
028f0f1ac4
Remove old comment that FS_Seek doesn't work on zipped files
2013-11-08 18:43:48 -06:00
Zack Middleton
2d45e57068
Support FS_SEEK_END and negative offset for zipped files in FS_Seek
...
Use FS_SEEK_END in sound code instead of working around it.
If FS_SEEK_SET and going to current position, just return.
2013-11-08 18:43:34 -06:00
Zack Middleton
c69db4a400
Remove unused variable baseOffset from fsh[]
2013-11-08 18:43:20 -06:00
Zack Middleton
90c98c90a3
Fix VM FOpenFile( FS_READ ) files seeking twice in FS_Seek
2013-11-08 18:42:56 -06:00
SmileTheory
ef9fe17dd5
OpenGL2: Remove srfTriangle_t, and use glIndex_t instead.
2013-11-08 01:46:17 -08:00
SmileTheory
d295db747c
OpenGL2: Small optimizations and comments in world VBO creation and surface merging.
2013-11-07 04:03:52 -08:00
Zack Middleton
fd4cd6612d
Fix running if built on OS X 10.9
...
strncpy with in == out causes signal 6 if built on OS X 10.9.
(If built on older OS X versions, the game works on 10.9 though.)
It was happening in COM_StripExtension during map load.
2013-11-06 22:23:40 -06:00
SmileTheory
7672533e8f
OpenGL2: Prefer VBO/IBO sizes of around 4MB.
2013-11-05 20:07:10 -08:00
SmileTheory
8c3ae8d7d2
OpenGL2: Reimplement soft overbright to avoid a framebuffer blit.
2013-11-05 00:08:59 -08:00
SmileTheory
a7c5fc0ee7
OpenGL2: Some small shader optimizations.
2013-11-04 22:50:53 -08:00
SmileTheory
0e25d0357b
OpenGL2: Revisit fragment tangent space calculation, and remove tangent space lighting.
2013-11-04 21:53:05 -08:00
SmileTheory
3846c115e6
OpenGL2: Reduce glsl shader count by using a uniform to disable textures.
2013-11-03 19:34:22 -08:00
Tim Angus
779ebfacfd
Merge branch 'master' into sdl2
2013-11-02 19:12:52 +00:00
Tim Angus
7ae49cc237
Fix video recording sync drift (patch refactored but original author unknown)
2013-11-02 19:11:14 +00:00
Zack Middleton
ae0e09aba9
Remove vertexLightmap from textureBundle_t, it's never qtrue
2013-11-02 02:59:31 -05:00
Zack Middleton
6bd52de44e
Remove unused shader state code from tr_local.h
2013-11-02 02:35:59 -05:00
Zack Middleton
0f30dad10a
Merge last two commits into renderergl2
2013-10-29 23:22:02 -05:00
Zack Middleton
611d913443
Initialize blendIndexesType and blendWeightsType
2013-10-29 23:18:05 -05:00
Zack Middleton
f55bb272b6
Fix IQM comments refering to IQM_BYTE instead of IQM_UBYTE
2013-10-29 23:11:32 -05:00
Zack Middleton
c28fabf505
IQM int/float vertex arrays were already swapped
2013-10-29 23:07:15 -05:00
Zack Middleton
0bf1f3d0ba
Add support for IQM int blend indices and float blend weights
...
Integer blend indices are converted to bytes at load, ioq3 doesn't allow more than 128 joints.
Heavily based on code by @zippers.
2013-10-29 22:09:06 -05:00
Zack Middleton
1515841b38
Support IQMs with joints and no poses
2013-10-29 20:47:33 -05:00
Zack Middleton
e0a42885d9
Clear more variables in CL_InitServerInfo
...
Have cls.localServers use CL_InitServerInfo.
Don't set cls.localServers netType to from.type, it's the wrong value.
Note: server->visible is not cleared in CL_InitServerInfo, as stated by a comment below a place where CL_InitServerInfo is used.
2013-10-28 15:23:01 -05:00
Zack Middleton
5fdff01d1b
Check #ifdef MACOS_X not #if MACOS_X
2013-10-20 13:58:30 -05:00
Zack Middleton
8c1d3c635c
Use bundle icon on Mac OS X instead of internal 32x32 window icon
2013-10-19 01:54:58 -05:00
Zack Middleton
983ebbb4a6
Ignore -psn* arguments on Mac OS X
...
Mac OS X adds an argument starting with "-psn" when launched using Finder, Dock,
or a terminal using open command and not specifying arguments.
It caused the opening videos to be skipped.
This change mimics SDL 1.2.
2013-10-19 01:10:24 -05:00
Zack Middleton
cb153f2aaa
Fix warning that SDL_GetKeyboardState return value is used non-const
2013-10-19 00:39:07 -05:00
Zack Middleton
c6a61d212a
Fix SDL2 losing event subsystem
...
Quiting SDL Video or Joystick subsystem implies quiting the Event subsystem in SDL2.
SDL keeps track of number of init and shutdown calls for each subsystem.
Shuting down video or joystick more or equal to number of times they're inited will lead to event shutdown.
Toggling in and out of fullscreen or running in_restart twice causes SDL event subsystem to shutdown, making input not work.
If the console is closed, IN_GobbleMotionEvents gets stuck in a loop. SDL_PeepEvents returns -1 when there is an error, but we assume non-0 means read more events.
IN_ShutdownJoystick needs to check if joystick subsystem was inited before quitting it, otherwise we may cause SDL event subsystem to shutdown.
2013-10-18 16:31:19 -05:00
SmileTheory
535d0ea70e
OpenGL2: Merge bsp surface structs into a single struct, and more cleanup.
2013-10-15 01:19:16 -07:00
SmileTheory
01efe4a538
OpenGL2: Use an idea from ETXreal and separate world VBO into separate VBOs by shader.
2013-10-14 03:58:13 -07:00
SmileTheory
08fcecc829
OpenGL2: Clean up texmod calculations, and improve vertex animation handling.
2013-10-14 01:55:54 -07:00
SmileTheory
f8355ba2fb
OpenGL2: Fix TCGEN_ENVIRONMENT stages not rendering correctly.
2013-10-10 03:41:31 -07:00
Zack Middleton
a836c2db89
Drop sounds starting with * before allocating sfx slot
...
Causes handle 0 to be returned by S_RegisterSound.
2013-10-09 09:51:32 -05:00
Zack Middleton
e4227d1cd5
Revert "5097 - Menu corrupted on start (on IRIX)"
...
Calling glClear( any bits ) in GL_SetDefaultState makes connect screen black using the proprietary NVidia driver on Windows and GNU/Linux.
This reverts commit 92573270de
.
2013-10-08 08:01:00 -05:00
SmileTheory
c6774cf113
OpenGL2: default to RGBM lightmap, and add r_floatLightmap for old behaviour.
2013-10-07 01:46:50 -07:00
SmileTheory
acbeca6042
OpenGL2: Remove AGEN_FRESNEL(superceded by cubemap patch), and some small fixes and optimizations.
2013-09-24 03:29:49 -07:00
cmf028
11c3bed74d
Send key up events for the mouse wheel
...
Previous versions of SDL would send SDL_MOUSEBUTTONUP events for the mouse wheel immediately following the corresponding SDL_MOUSEBUTTONDOWN event
2013-09-23 12:21:21 -05:00
cmf028
7d83bba2d0
Set com_minimized to 0 when the window is restored
2013-09-23 12:21:21 -05:00
cmf028
d7444b8ca1
Don't set the window title twice
2013-09-23 12:21:20 -05:00
SmileTheory
82be4e667f
OpenGL2: Disable GL_ARB_seamless_cube_map by default, caused huge frame drops on some hardware
2013-09-20 17:20:36 -07:00
Zack Middleton
fcaab903d1
Fix UI parse message for menu files
...
Missing a space after colon.
2013-09-19 21:41:27 -05:00
SmileTheory
3ab895d1cd
OpenGL2: reduce varying usage in lightall shader.
2013-09-17 23:52:40 -07:00
SmileTheory
cbd05da5d1
OpenGL2: Fix for "unsupported framebuffer format" bug
2013-09-17 15:33:46 -07:00
SmileTheory
42501db862
OpenGL2: Some shader cleanup
2013-09-16 23:41:04 -07:00
SmileTheory
5985cca2e6
OpenGL2: Speed up fog shader slightly.
2013-09-16 23:20:44 -07:00
Tim Angus
76e49b668e
Merge branch 'master' into sdl2
2013-09-16 22:34:51 +01:00
SmileTheory
a408a2bdae
OpenGL2: Fix inaccurate RGBM calculation.
2013-09-16 14:26:42 -07:00
SmileTheory
e80faf812e
OpenGL2: Use RGBM instead of RGBE encoding for lightmaps.
2013-09-16 05:57:14 -07:00
SmileTheory
7e875c6941
#5979 : Cubemap support for opengl2.
2013-09-16 00:54:26 -07:00
Tim Angus
58b8cfa0b3
Various fixes from Fuma
2013-09-15 23:54:52 +01:00
Zack Middleton
68a616c7f1
Free bot client if cannot load bot
...
Introduced by commit a57a5cfd9b
.
2013-09-08 21:59:58 -05:00
Zack Middleton
27ddba9c2e
Fix crash caused by too many surfaces in skin
2013-09-04 20:36:45 -05:00
Razish
61dd609aee
Fix warning message in animation.cfg parsing functions
...
Signed-off-by: Zack Middleton <zturtleman@gmail.com>
2013-09-04 15:51:34 -05:00
Tim Angus
462694763e
Bug #6021 Fix misuse of Sys_Mkdir (Joerg Dietrich)
2013-09-04 17:56:11 +01:00
Zack Middleton
99317a9e9a
Make cgame's tcmd use trap_SendClientCommand for "gc"
...
gc command was forwarded to server after if wasn't recognized locally, but let's just send straight to server.
(trap_SendConsoleCommand should of had a \n at end, but using trap_SendClientCommand makes more sense.)
2013-09-03 18:19:48 -05:00
Zack Middleton
c79e0dfc25
Fix targetNum check in cgame's tcmd
2013-09-01 20:58:51 -05:00
Tim Angus
fb9270306b
Fix initial window position being top left
2013-08-29 19:15:35 +01:00
Thilo Schulz
daf71ca502
Fix recursive crash when home path cannot be created
2013-08-25 12:00:30 +02:00
SmileTheory
311376af8a
Fix upside-down SSAO.
2013-08-23 01:51:58 -07:00
SmileTheory
d46916082d
#5999 : OpenGL2: Don't use lightall shader with deforms or adjustColorsForFog.
2013-08-23 01:35:17 -07:00
SmileTheory
ebd164deaf
#6004 : OpenGL2: Make any CGEN_LIGHTING_DIFFUSE stages use lightall shader.
2013-08-23 00:55:28 -07:00
Tim Angus
273b9ab77e
Update SDL2 headers... oops
2013-08-20 18:30:56 +01:00
Tim Angus
32a859c680
More updates to SDL2 libs from MAN-AT-ARMS
2013-08-19 23:19:29 +01:00
Tim Angus
e13773de69
Update prebuilt SDL2 libs for Windows
2013-08-18 18:23:14 +01:00
Tim Angus
e6d075e165
SDL2 libs for OSX, thanks to MAN-AT-ARMS
2013-08-18 18:08:03 +01:00
Tim Angus
bde7665462
Merge branch 'master' into sdl2
...
Conflicts:
code/sdl/sdl_input.c
2013-08-16 23:34:08 +01:00
Zack Middleton
d4c6711e51
Fix "bind <key>" message for unbound keys
...
"bind X cmd; unbind X; bind X" now says '"x" is unbound' instead of '"x" = ""'
2013-08-16 15:41:01 -05:00
Zack Middleton
3d69ae9995
Fix OpenAL music stop issues using stream stop code
...
S_AL_StopBackgroundTrack would sometimes generate AL errors.
S_AL_MusicSourceFree needs to kill source or next track may have short looping buffer.
2013-08-16 15:29:12 -05:00
Zack Middleton
81909bb266
Fix text getting appended to vid_restart in command buffer
...
I was getting unknown command "vid_restart-button2" warning on OSX when trying to use alt-return to toggle fullscreen.
2013-08-03 17:40:50 -05:00
Zack Middleton
3518e7b22e
Fix bind commands getting run when closing UI
...
Introduced in commit "Add togglemenu command" bf2b04.
Don't let UI key event changing key catcher affect bind parsing. Bind parsing itself will never change the key catcher.
Example of issue: if mouse1 is bound to +attack when clicking Resume Game, player will shoot until releasing the mouse button.
Mouse button should have to be released and pressed again before player will shoot.
2013-07-22 17:44:28 -05:00
Henry Stratmann III
db85b61e94
Add assignment below declarations otherwise compiling fails with msvc
...
Signed-off-by: Zack Middleton <zturtleman@gmail.com>
2013-07-21 19:15:24 -05:00
Zack Middleton
43ea1aebb3
Fix Windows server history scrolling
...
Update history position when CON_HistNext goes to input line, otherwise
when going to previous a line is skipped.
Don't let CON_HistPrev go to unused lines.
2013-07-21 17:32:56 -05:00
Anthony Pesch
b0f0376a4f
Misc fixes to IBO code to correctly use sizeof(glIndex_t)
2013-07-19 14:16:49 -07:00
morturp
7b47c6cf36
out seems to be unnecessarily large for one byte per pixel
2013-07-18 03:00:39 +03:00
Zack Middleton
690b281e4d
Remove unused models from server_t
2013-07-11 23:26:30 -05:00
Zack Middleton
30fcabec65
SDL Mouse Button clean up
...
Make 'b' variable an int so that key values more than 255 will work (not currently an issue in ioq3 afaik).
Use SDL_BUTTON_* for easier transition to SDL2.
(SDL2 doesn't have SDL_BUTTON_WHEELUP or SDL_BUTTON_WHEELDOWN, X1/X2 are different values.)
2013-07-09 14:41:56 -05:00
Zack Middleton
4776fb4767
(bug #5984 ) Unload renderer lib
2013-07-08 16:36:30 -06:00
Zack Middleton
6b13806066
Fix getting servers from and being listed on id's q3 master server
...
Use q3 master protocol when com_gamename is Quake3Arena (the default), otherwise use dpmaster protocol.
2013-07-07 16:31:36 -05:00
Zack Middleton
608e852ac6
Free Team Arena fonts/fontImage_X.dat buffer
...
Caused temp memory to be present all the time, so Hunk_Alloc ignored memory low/high preference.
May have caused other issues as well.
2013-07-04 15:34:05 -05:00
morturp
213b8e2435
Prevent the skip of the glyph if it does not fit
2013-06-26 11:42:59 +03:00
Zack Middleton
d79fe65878
Fix r_mergeLightmaps 0 crashing OpenGL2 renderer
...
tr.fatLightmapStep was 0 and caused modulus division by 0.
2013-06-20 21:56:04 -05:00
Zack Middleton
872465500e
Fix r_nocurves in OpenGL2 renderer
...
Check r_nocurves in surface cull.
While r_nocurves is enabled, don't use merged surfaces because merged curves would be renderer. (note: surface merging is enabled by r_mergeLeafSurfaces)
2013-06-20 16:27:00 -05:00
Zack Middleton
323e8b9921
Fix r_speeds 4 in OpenGL2 renderer
2013-06-20 16:21:26 -05:00
Zack Middleton
aa2ea68741
Fix IQM tess buffer overflow
...
Set the variables that use tess.numVertexes after calling RB_CHECKOVERFLOW() as it may set tess.numVertexes to 0!
Could cause visual issues and error "RB_EndSurface() - SHADER_MAX_VERTEXES hit".
2013-06-18 18:00:45 -05:00
Zack Middleton
cb2fa48d65
Only allow model meshes to have SHADER_MAX_VERTEXES - 1 vertexes
...
The last index is used to check for buffer overflows. See RB_CheckOverflow and RB_EndSurface.
2013-06-18 17:02:47 -05:00
Zack Middleton
00c1831edb
Don't try to fog flares with fogNum 0
...
fogNum 0 means no fog. Shaders don't try to apply fog color if fogNum is 0.
This was done to make things more consistent and fix a crash in iortcw MP using a user made map on GNU/Linux x86_64.
2013-06-11 15:47:00 -05:00
Tim Angus
7b15415042
Rate limit getchallenge
2013-06-10 20:31:15 +01:00
Zack Middleton
2937ac7661
Allow adjusting VoIP gain and mute during SP demo playback
2013-06-04 23:19:47 -05:00
Zack Middleton
e89a1b9f8e
Allow adjusting VoIP gain and mute during demo playback
2013-06-04 23:02:23 -05:00
Zack Middleton
21c93736b8
Allow recording VoIP in SP for demo commentaries
2013-06-04 22:28:46 -05:00
Zack Middleton
1315d62491
Make COM_ParseWarning report starting line number of multi-line tokens
...
COM_ParseWarning use to show last line number of multi-line string tokens, now shows starting line number.
2013-06-03 22:35:57 -05:00
Zack Middleton
d4f785c465
Improve warning for shader missing opening brace
2013-06-02 21:59:01 -05:00
Zack Middleton
3ec2b02dce
Check for shaders without closing brace
...
Shaders without closing brace can eat shaders in other files.
Pass depth to SkipBracedSection instead of reparsing text as it messed up parse line numbers.
2013-06-02 21:55:19 -05:00
Zack Middleton
c0a21d0898
Fix setting COM_Parse current line number
...
Fix initial off-by-one error.
Count lines in /* */ comments and multi-line strings.
Fix counting some lines twice if text has Unix newlines.
2013-06-02 21:21:45 -05:00
Zack Middleton
6c4d010f29
Fix null model axis disappearing if sky is in view
2013-05-31 01:07:49 -05:00
Zack Middleton
eb73dcb7f4
Catch more bad shader syntax cases
...
Use to only ignore file in cases where both { and \0 were missing after shader name. Now ignore file when either are missing, such as "}\0".
2013-05-30 22:58:58 -05:00
/dev/humancontroller
120e296a74
fix some OOB enumerator usages
...
(should be no-op with usual compiler workings)
2013-05-30 15:48:49 -05:00
/dev/humancontroller
9e9d6fa52c
clean up return statements a bit more
2013-05-30 15:43:21 -05:00
/dev/humancontroller
9d626b6a12
drop some useless return statements
2013-05-30 15:43:21 -05:00
/dev/humancontroller
bbd17d75ce
reduce the amount of compiler warnings for variable shadowing
2013-05-30 15:43:20 -05:00
/dev/humancontroller
1d0a044de3
when using the condump command, do not say "dumped console text" prematurely, before trying to open the file
2013-05-30 15:41:19 -05:00
/dev/humancontroller
a8ce30163e
make the fread() success-check code in Sys_RandomBytes() more secure
2013-05-30 15:41:19 -05:00
/dev/humancontroller
f0b43aba35
remove some unused stuff
2013-05-30 15:41:19 -05:00
/dev/humancontroller
8cc817b5a3
remove some redundant exit() calls
2013-05-30 15:41:18 -05:00
/dev/humancontroller
830d93aa38
add some noreturn annotations
2013-05-30 15:39:22 -05:00
/dev/humancontroller
2d54a12615
fix some "\n"-related stuff
...
add missing "\n"s to some Printf()-like calls (in Rend2)
drop erroneous "\n"s from some Error()-like calls (in Rend2)
drop erroneous "\n" from a Com_Error() call (in vm_sparc.c)
2013-05-30 15:32:44 -05:00
Tim Angus
242dcf9cf8
Suppress warning
2013-05-29 14:24:09 +01:00
Zack Middleton
0c3ec34db9
Allow drawing sun in OpenGL1 renderer
...
Removed #if 0 ... #endif around RB_DrawSun().
Merged improvements and changes from OpenGL2 renderer.
2013-05-27 14:52:18 -05:00
Tim Angus
ab4c602374
Fix Freetype build problems
2013-05-27 20:45:42 +01:00
Zack Middleton
d5b046186a
Clarify comment for OpenGL2's RDF_NOFOG
2013-05-24 13:16:56 -05:00
Zack Middleton
71b804a096
Remove RF_SUNFLARE from OpenGL2 renderer
...
RF_SUNFLARE didn't do anything after commit "Merge Reaction renderer features, remove "#ifdef REACTION"s".
2013-05-24 12:26:45 -05:00
Zack Middleton
0448f68a13
Fix predicting touching items in CTF and 1FCTF
...
In CTF, rail or plasma gun/ammo were not predicted for pickup depending on what team player is on. The rail and plasma values are the same as PW_REDFLAG and PW_BLUEFLAG.
In 1FCTF, only neutral flag, BFG, and BFG ammo were predicted for pickup. WP_BFG is equal to PW_NEUTRALFLAG.
2013-05-23 00:55:32 -05:00
Svante Signell
540e4225cc
Add support for the GNU/Hurd architecture
...
[As with GNU/kFreeBSD, it's treated as "Linux": all three use the GNU libc
and runtime linker, which is mostly what matters for ioquake3. -smcv]
Bug-Debian: http://bugs.debian.org/679330
Reviewed-by: Simon McVittie <smcv@debian.org>
2013-05-19 21:50:40 +01:00
Ensiform
53bbfc2cd6
Remove unused renderCommandList variable from renderers
2013-05-13 12:08:16 -05:00
Tim Angus
d9d52f0306
Merge branch 'master' into sdl2
...
Conflicts:
Makefile
code/renderercommon/qgl.h
code/renderergl1/tr_local.h
code/sdl/sdl_glimp.c
2013-05-08 14:27:15 +01:00
Jonathan Gray
3234d2b141
dlopen libopenal.so not libopenal.so.1 on OpenBSD
2013-05-05 11:28:54 +10:00
Zack Middleton
ee7bd0cae6
Show surface names in excessive vertexes and triangles warnings
...
Add newlines to renderergl2's R_LoadMD3 vertex and triangle warnings.
2013-05-03 14:28:18 -05:00
SmileTheory
3a47192ba8
Use specular texture RGB as specular reflectance, multiplied by per-material value.
2013-05-03 00:32:59 -07:00
SmileTheory
aff3f18101
#5889 : Do post-processing only on viewport portion of frame buffer.
2013-04-26 18:49:48 -07:00
Zack Middleton
b6d64b7dc4
Correct TeamCount return type and team argument type
2013-04-26 15:46:12 -05:00
Harley Laue
1b2a6abed9
Rename FS_CheckFilenameIsNotImmutable to ..IsMutable
2013-04-24 14:45:37 -05:00
Zack Middleton
6c88bf8aee
Rename FS_CheckFilenameIsNotExecutable to ..NotImmutable
2013-04-24 14:14:13 -05:00
Zack Middleton
936db459ee
Don't allow modifying qvms or pk3s
...
Exception for allowing pk3s to be downloaded.
2013-04-24 14:11:18 -05:00
SmileTheory
8270d54a25
Don't scale shadow multipliers by overbrightbits, and improve documentation.
2013-04-22 21:52:16 -07:00
Zack Middleton
feb012152c
Give botlib com_basegame for botlib.log path
...
Before it always used BASEGAME fallback code.
2013-04-22 23:11:10 -05:00
Zack Middleton
b95d8a91aa
Fix referencing pk3 with only qagame QVM
2013-04-22 16:21:46 -05:00
Zack Middleton
a7317ac0d5
Add fallback for __func__ (ioq3 isn't compiled as c99 by default)
...
Using Debian gcc version 4.7.2 and clang 3.0-6.1 anyway.
2013-04-20 21:28:21 -05:00
Mikael Pettersson
1c66e30e7e
Fix memmove()
...
[The lcc source] overrides the libc memmove() with its own implementation,
but that implementation fails to follow the specification. In particular,
it returns NULL rather than memmove()'s first parameter.
GCC now optimizes based on this aspect of the specification, so things go
wrong at runtime.
[Text & patch from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56881#c8 ]
2013-04-14 20:08:08 +01:00
Tim Angus
6983187a99
Remove old .mak files from botlib
2013-04-13 11:26:42 +01:00
Zack Middleton
319df2d4d7
Fix zone memory leak in OpenGL2 renderer
...
meminfo command showed the dynamic renderer zone amount going up by 1824 bytes each time I reloaded map using map command.
2013-04-10 23:21:40 -05:00
Tim Angus
230af8c9e9
Fix shfolder.dll not getting freed
2013-04-09 21:43:01 +01:00
Zack Middleton
0f62a565f9
Fix setting CVAR_VM_CREATED flag on user created cvars
...
Fix setting CVAR_VM_CREATED flag on cvars created using set[asu] commands (including archived cvars from cfg) and trap_Cvar_Set.
trap_Cvar_Register called Cvar_Get which cleared CVAR_USER_CREATED flag, but CVAR_VM_CREATED wasn't set because the cvar already existed.
2013-04-06 01:06:34 -05:00
SmileTheory
6a763f0671
Merge branch 'HEAD' of https://github.com/ioquake/ioq3.git into suntest
2013-04-02 00:18:24 -07:00
SmileTheory
28e14c4546
Add sunlight/lightmap merging by multiply (r_sunlightMode 1)
...
Merge additive sunlight and map lighting into one GLSL shader (r_sunlightMode 2)
Change single lightmap blends to use lightall
2013-04-02 00:17:24 -07:00
Tim Angus
12115c28cd
Fix the warning caused by fixing the warnings
2013-03-26 18:32:36 +00:00
Tim Angus
98360bcd57
Fix some of the things clang --analyze flagged
2013-03-26 16:50:03 +00:00
SmileTheory
66acde6d60
Merge branch 'HEAD' of https://github.com/ioquake/ioq3.git into suntest
2013-03-25 21:05:27 -07:00
Zachary Slater
01efc26654
s/enum/typedef enum/g on uniform_t for glorious fix of mac build. h/t MAN-AT-ARMS
2013-03-25 14:28:01 -07:00
Tim Angus
8d70929d12
Ditch 'historical compatibility' and use 'logic' instead
2013-03-22 11:33:27 +00:00
SmileTheory
8b23985358
Make all GLSL shaders use the same set of uniforms.
2013-03-20 22:53:30 -07:00
Zack Middleton
9bfff1363e
Fix NET_IPSocket and NET_IP6Socket return type
...
It was causing a warning on Windows x64.
2013-03-18 16:04:53 -05:00
Zack Middleton
98dda7758f
Always initialize joint_names in R_LoadIQM
...
Reported by MAN-AT-ARMS
2013-03-18 15:55:25 -05:00
Ensiform
9a752ce8cd
Use PATH_SEP for a debug message in FS_FOpenFileReadDir
2013-03-18 14:44:34 -05:00
Zack Middleton
bf962c516d
Fix loading and rendering IQMs with no joints
2013-03-18 14:13:09 -05:00
Tim Angus
ecd50f01c2
Remove RAVENMD4 #define
2013-03-18 19:05:51 +00:00
SmileTheory
e14a814ba2
Support more tcgens in lightall shader.
2013-03-14 23:11:27 -07:00
SmileTheory
9eef320c91
Remove some more automatic sRGB image flags.
2013-03-12 22:00:51 -07:00
Tim Angus
dfbad1360f
Fix some clang warnings
2013-03-12 21:50:59 +00:00
Tim Angus
bf25c27105
Oops missed a bit
2013-03-12 21:20:33 +00:00
Tim Angus
3e92679100
Fix USE_FREETYPE breakage
2013-03-12 19:41:52 +00:00
Tim Angus
37c69a8009
Move renderers a bit closer together
2013-03-12 17:52:29 +00:00
SmileTheory
41985945f6
Always reset vertex attrib pointers with animated meshes.
2013-03-11 22:46:21 -07:00
Tim Angus
78132cf829
Remove old x86_64 JIT compiler
2013-03-11 22:20:10 +00:00
Zack Middleton
b009528e6a
Fix displaying demo name when loading demo
2013-03-09 15:58:35 -06:00
Zack Middleton
89ee8b050f
Fix size reserved for IQM jointMats (allocated more than used)
2013-03-08 15:28:27 -06:00
Zack Middleton
8aa6efe7b6
Fix origin returned by IQM's LerpTag
...
It use to return pose joint's offset from base at the lerped frame, now it returns the joint's origin at the lerped frame.
Patch by Axel Isouard and Zack Middleton.
2013-03-08 13:47:16 -06:00
SmileTheory
e6e0d47099
Fix clampmapped images being always treated as sRGB.
2013-03-07 14:23:28 -08:00
SmileTheory
fb6b08bdd6
Merge branch 'HEAD' of https://github.com/ioquake/ioq3.git
2013-03-06 21:00:21 -08:00
Zack Middleton
a737d442a0
Fix RAVENMD4 warnings in OpenGL2
2013-03-06 17:52:06 -06:00
SmileTheory
fbe56e4fa1
Some minor cleanup.
2013-03-06 02:02:01 -08:00
SmileTheory
027af8e6cc
Simplify RE_StretchRaw() with RE_UploadCinematic() and RB_InstantQuad2().
2013-03-06 00:54:56 -08:00
SmileTheory
11e83b2ee3
Oops, fix typo.
2013-03-05 20:21:03 -08:00
SmileTheory
7c04002b87
Simplify previous patch.
2013-03-05 19:52:11 -08:00
SmileTheory
2153fc4671
Calculate viewport and screen texture coordinates correctly for sun shadows. This fixes part of #5889 .
2013-03-05 01:41:51 -08:00
Ensiform
e7753f9acf
Fix vote Y/1 and teamvote Y/1
2013-03-03 21:53:14 -06:00
Zack Middleton
fe0a65e52e
Show lowercased ascii in bind command
2013-03-03 19:14:36 -06:00
Zack Middleton
a18ae32a5e
Fix Key_StringToKeynum to return lowercased ascii
...
Fixes bind and unbind uppercase ascii and uppercase ascii in cl_consoleKeys.
keycodes.h states "normal keys should be passed as lowercased ascii"
2013-03-03 19:07:44 -06:00
Zack Middleton
db68f59281
Fix comment for gametype parsing in ui
2013-02-27 16:09:10 -06:00
Zack Middleton
4cd60e5af7
Fix BotExportTest's args for BotGetReachabilityToGoal
2013-02-27 15:57:55 -06:00
Zack Middleton
b9a33f84be
Remove unused config string code from botlib
2013-02-27 15:55:01 -06:00
Zack Middleton
57cb0b2d89
be_ai_weap.c: s/move state/weapon state/g
2013-02-27 15:39:28 -06:00
Zack Middleton
c7059fbf28
Move noise function declations to tr_common.h
...
tr_noise.c is in renderercommon directory, so declare them in header there too.
2013-02-27 15:35:02 -06:00
Zack Middleton
eb7e554c46
Fix comment in snd_codec_opus.c
2013-02-27 15:31:26 -06:00
Zack Middleton
eef897b3c1
Remove Sys_SnapVector
2013-02-18 19:05:37 -06:00
James Canete
5b5f7f5c0a
Fix compiling opusfile on mingw32
2013-02-18 19:00:41 -06:00
Zack Middleton
7987b71a9d
Fix last commit
2013-02-17 20:42:18 -06:00
Zack Middleton
a41354f3f7
Add missing config_types.h for libogg
...
It's usally generated by configure, most platform cases are handled in os_types.h
2013-02-17 20:34:45 -06:00
Zack Middleton
5c3d76665f
Fix compiling opus using mingw
2013-02-17 18:56:31 -06:00
Zack Middleton
2a31f33fc6
Add libogg 1.3.0
2013-02-17 18:56:06 -06:00
Zack Middleton
6d56d8bb33
Add libopus 1.0.2 and libopusfile 0.2
2013-02-17 18:33:39 -06:00
Zack Middleton
3dd5c5d862
Add Ogg Opus support
2013-02-17 18:32:05 -06:00
Zack Middleton
1b0fb6e8d8
5882 - Update OpenAL Headers to OpenAL Soft 1.15.1
2013-02-17 07:34:41 -06:00
Zack Middleton
f4d56e5429
Add GPL header to tr_common.h
2013-02-16 15:46:09 -06:00
Tim Angus
d201443350
Remove a few name tags
2013-02-16 21:03:56 +00:00
Tim Angus
2da0fd6de8
Add renderercommon/tr_common.h
2013-02-16 20:58:04 +00:00
Tim Angus
93e6183ce3
Move some things into renderercommon
2013-02-16 12:15:36 +00:00
Zack Middleton
372b07a97a
Fix freeing source while parsing botfiles/items.c
2013-02-16 04:40:27 -06:00
Ensiform
3041eee0cf
condump improvements
...
Default output file extension to ".txt"
Show output filename in error message.
Use Windows line endings on Windows.
Dynamically allocate line buffer. (by ZTM)
2013-02-15 22:49:08 -06:00
Ensiform
e5f7e1de52
Remove unneeded variable extern
2013-02-15 22:03:34 -06:00
Zack Middleton
2e45edb550
5717 - Gamecode can open file "" for reading
2013-02-15 21:08:47 -06:00
Zack Middleton
92573270de
5097 - Menu corrupted on start (on IRIX)
2013-02-15 20:14:02 -06:00
Tim Angus
f6fb9eb602
renderer -> renderergl1, rend2 -> renderergl2
2013-02-15 23:46:37 +00:00
SmileTheory
bff574e04e
#5878 : Ensure surfaces are drawn before executing full-screen render commands, and when at the end of the render command list.
2013-02-12 20:53:59 -08:00
Zack Middleton
c0d5ba9e06
Fix compiling
2013-02-11 20:45:17 -06:00
Zack Middleton
91194bfc3e
Fix possible delta from invalid entity
2013-02-11 20:36:14 -06:00
Zack Middleton
62cef99b28
Extend Team Arena name edit fields to MAX_NAME_LENGTH
2013-02-11 19:51:36 -06:00
Zack Middleton
6f88df262c
Don't add pk3dirs if connecting to a pure server
...
Only .cfg etc would be read from pk3dirs, but they should be treated like pk3s that are not on the pure list.
2013-02-11 19:15:14 -06:00
Zack Middleton
ebee21157c
Change pk3dir README / comments to fit in better
2013-02-11 18:02:40 -06:00
Andrew Browne
37a9614179
5289 - Support for .pk3dir
2013-02-11 17:58:24 -06:00
Zack Middleton
c9137d9d14
Update invalid g_gametype right away
2013-02-11 16:43:18 -06:00
Zack Middleton
50e85b23b3
Remove newlines from Rend2 error messages
2013-02-11 16:37:00 -06:00
Zack Middleton
eab1f9720a
Add missing traps to cg_local.h
2013-02-11 16:28:41 -06:00
Tobias Kuehnhammer
2147f2b7c2
Adds Z checking to CanDamage function.
2013-02-11 16:02:01 -06:00
Zack Middleton
ac621642ac
Unify/cleanup max snapshot entities on client and server
2013-02-11 15:49:47 -06:00
Zack Middleton
d815052df0
Fix renderering TrueType Fonts in Rend2
...
Reported by Axel Isouard (exidl)
2013-02-11 14:33:38 -06:00
Zack Middleton
75598f1a2b
Fix IPv6 favorites in q3_ui
...
This does however allow favorites to contain hostnames which was explicitly not allowed before.
2013-02-08 18:11:03 -06:00
Zack Middleton
81f92fe7f0
Extend Team Arena Favorite Address edit field to hold an IPv6 address
2013-02-08 18:10:22 -06:00
Zack Middleton
7b34987823
Fix resolving IPv6 favorites in Team Arena UI
2013-02-08 16:47:27 -06:00
Zack Middleton
2b7bf5b37e
Merge branch 'master' of https://github.com/ioquake/ioq3
2013-02-07 21:04:28 -06:00
Zack Middleton
7ccdff6e12
Fix creating favorite when not on view favorite servers
2013-02-07 21:03:33 -06:00
Zack Middleton
fe47952bf5
Increase favorite address buffer size in Team Arena UI
...
Now it can hold an IPv6 address.
2013-02-07 20:55:51 -06:00
SmileTheory
649f0c351f
Merge branch 'reactionmerge'
2013-02-04 20:34:58 -08:00
SmileTheory
9bace5bac7
Merge Reaction renderer features, remove "#ifdef REACTION"s
2013-02-04 20:33:58 -08:00
Zack Middleton
80b0792980
Remove MSG_WriteDeltaUsercmd and MSG_ReadDeltaUsercmd
2013-02-02 22:26:22 -06:00
Jeremy Davis
617107429d
Use Q_strncpyz in G_AddRandomBot
2013-02-02 21:58:01 -06:00
Zack Middleton
9c741f95ea
Remove some unused defines from msg.c
2013-02-02 21:40:03 -06:00
Zack Middleton
b4ad5a8411
Fix MSG_ReadDeltaKey setting bit 1<<bits often
...
MSG_ReadDeltaKey would often set 1<<bits, it should never be set. It exceeds the size of what was being read.
Worked okay for weapons/forward/right/up as they stored as chars (value would wrap around to correct value, lucky).
Angles had the wrong value, not sure if it was causing issues.
2013-02-01 22:07:52 -06:00
SmileTheory
cda1c46e3a
Merge branch 'HEAD' of https://github.com/ioquake/ioq3.git into suntest
2013-01-30 17:28:34 -08:00
SmileTheory
974b938f8f
Starting sunlight experimentation branch
2013-01-30 17:27:36 -08:00
Tim Angus
b9355c5f12
The in_mouse stuff makes no sense in SDL2
2013-01-28 09:25:38 +00:00
Tim Angus
51df89ab13
Remove the SMP renderer feature
2013-01-24 22:53:08 +00:00
Tim Angus
b43f766141
Update bundled SDL headers/libs
2013-01-21 22:40:05 +00:00
Tim Angus
42586b782b
Improve console key situation
2013-01-21 22:20:15 +00:00
Tim Angus
9b8711d2e1
Fix wacky patch for r_ignorehwgamma
2013-01-19 21:39:35 +00:00
Tim Angus
aaea838d39
Convert SDL text input to UTF-32
2013-01-19 21:35:09 +00:00
Tim Angus
3105d62027
Allow hardware gamma, in theory
2013-01-18 21:53:37 +00:00
Jeremy Davis
3f489fe5f2
Make UI_CVAR_CREATE use VM specific code
...
Makes cvar be flagged as VM created and unset ROM if ARCHIVE is set.
2013-01-17 15:21:29 -06:00
Tim Angus
61ed67bd1a
Make the mousewheel work
2013-01-17 19:04:27 +00:00
Tim Angus
f478761e07
Use SDL 2 instead of SDL 1.2
2013-01-17 18:20:03 +00:00
Zack Middleton
9c701a781b
Run toggleconsole in binds while in menu or message mode
2013-01-16 23:06:35 -06:00
Zack Middleton
4ba14425ed
Add togglemenu to q3_ui controls menu
2013-01-16 23:04:50 -06:00
Zack Middleton
bf2b04254a
Add togglemenu command
...
Allow togglemenu to be run in binds while in menu or message mode.
2013-01-16 23:03:09 -06:00
Jeremy Davis
4de32b1c1a
Fix error message in BG_EvaluateTrajectory
2013-01-14 14:50:12 -06:00
Jeremy Davis
76f906703e
Fix error message in BG_EvaluateTrajectoryDelta
2013-01-14 00:22:57 -06:00
Tim Angus
70b165ee33
Fix screwed up whitespace in files.c
...
Apologies to anyone merging this :(
2013-01-13 22:26:09 +00:00
Tim Angus
5fd456ff7c
Fix FS_FOpenFileRead corner case
...
FS_FOpenFileRead is a fairly mental function that changes its return
behaviour depending on whether or not file is NULL or not. It turns out
in the case where file is NULL, we were returning the wrong value when
the file didn't exist.
2013-01-13 22:26:09 +00:00
Zack Middleton
693e51c654
Remove old FIXME, pmove_framecount isn't networked
2013-01-11 17:29:39 -06:00
Zack Middleton
2d6b68edd8
Fix win32 console partial print being overwritten
2013-01-10 16:29:54 -06:00
Zack Middleton
20cd170993
Make win32 console cursor visible
2013-01-10 15:34:54 -06:00
Zack Middleton
c1ddacf5be
Fix win32 input left on buffer and overwritten
...
The input line on the console screen buffer was moved up a line and
overwritten by CON_Print.
Remove input line when console shutdown as well.
2013-01-10 15:06:59 -06:00
Zack Middleton
eb6b5e5eab
Merge branch 'master' of https://github.com/ioquake/ioq3
2013-01-09 23:18:41 -06:00
Mark
a99a214589
Fix #5849 - broken snapvector inverts player speed
...
Snapvector was converting floats to 16 bit integers instead of 32 bit integers.
2013-01-09 23:15:21 -06:00
SmileTheory
ed87774a77
#5866 : Fix surface culling through portals, and use the correct number of frustum planes.
2013-01-09 18:30:12 -08:00
Zack Middleton
daa9619913
Don't look for colors past win32 input line length
2013-01-09 15:42:21 -06:00
Zack Middleton
768083b46f
Fix win32 dedicated input line printing to backlog
...
Use to write win32 input line using WriteConsole then overwrite by
CON_Print, so when CON_Print removes color format characters the end of original input line was visable.
"hi ^1guys" use to be shown as "hi guysys" in the console backlog.
2013-01-09 15:21:44 -06:00
Zack Middleton
c501c1ad8a
Colorize text on win32 console
...
Text input line color based on code by "spior"
Main colorize function based on Sys_AnsiColorPrint in sys_main.c
2013-01-08 17:20:01 -06:00
SmileTheory
3d311bdbe3
#5863 - Use proper texture coordinates for alpha tested materials when doing depth prepass.
2013-01-07 21:29:19 -08:00
SmileTheory
af77b93597
#5818 - Modular renderer and Rend2 support for MSVC.
2013-01-07 20:30:49 -08:00
Zachary Slater
20a77764dd
Increase various arbitrary limits - Bug #5463
2013-01-06 01:36:39 -08:00
Richard Allen
6a7a67a497
More fixes to the macosx buildsystem. This removes the SDL Framework and makes use of a SDL library that is position independant. This also brings back PPC builds into the UB and also as a standa alone build choice.
2012-12-31 01:32:15 +00:00
Zack Middleton
45bb0f7b53
Fix bot skill format so it doesn't always have a space at the beginning of it.
2012-12-29 03:35:48 +00:00
Zack Middleton
a57a5cfd9b
Changes from Ensiform:
...
- In G_AddBot, try to allocate clientNum before doing anything else.
- In G_AddBot, don't set SVF_BOT and inuse. It's done in ClientConnect, plus inuse causes ClientDisconnect to be run for no reason.
- In G_AddBot, only set skill in bot useinfo once.
- Avoid using cl->ps.clientNum to check if cl is a bot.
2012-12-29 03:33:00 +00:00
Zack Middleton
b791040f42
- Fix spectator client being switched from follow to free after map_restart if following a client with a higher client number.
...
- Fix client unlinking issue caused by ent->s.number being set to followed client's ps->clientNum after map_restart. Reported by Ensiform.
2012-12-29 01:45:11 +00:00
Richard Allen
1c8fa31c0d
Changed the MacOS-X build system to make UB's containing i386 and x86_64 arches and made make-macosx.sh not build UB's but only standard binaries
2012-12-20 00:15:17 +00:00
James Canete
98677b1c72
Missed a file in the previous commit.
2012-12-18 06:21:47 +00:00
James Canete
78b4a3bb7a
Support r_srgb even without hardware support. Also tweak default autoexposure/tonemap settings to look good on both r_srgb 0 and 1.
2012-12-18 06:15:38 +00:00
Zack Middleton
26b1fcc471
Save all arguments from connect for reconnect command.
...
Remove unnecessary localhost check from reconnect command.
2012-12-16 19:20:08 +00:00
Zack Middleton
8ef0f36a3f
Fix dedicated server crashing when using MSG_ReadDelta*, though it only happens if someone modifies the engine. ( #5449 )
2012-12-16 00:15:14 +00:00
Zack Middleton
aac23d6934
Fix reconnect command to work after leaving server. ( #5794 )
2012-12-15 23:33:02 +00:00
Zack Middleton
c5af65fe5f
Fix passing arg9 (qvm only), arg10, and arg11 to vmMain for native libs and non-i386 compiled or interpated qvms. (Currently they aren't use in vmMain in game, cgame, or ui.)
...
Fix passing args[11] to args[15] from vm to engine on ppc64 and sparc64. Some of the args are used by game bot prediction syscalls. May have been causing bugs. Note: This was fixed for x86_64 in r2163.
2012-12-15 21:55:07 +00:00
Zack Middleton
b943d506bf
Fix clients being able to reset their player state and respawn using donedl.
2012-12-15 08:08:46 +00:00
James Canete
3bb7138b84
Fix a couple files not ending with a newline.
2012-12-15 00:40:08 +00:00
James Canete
082ecc4d6c
Only declare var_SampleToView in lightall shader when it is actually used.
2012-12-15 00:39:17 +00:00
Zack Middleton
d79ea2e5cd
- Allow changing cl_voip without restarting.
...
- Fix assert failing in CL_ParseVoip() while flipping cl_voip off and on.
2012-12-14 07:32:07 +00:00
Zack Middleton
50475fc37b
Fix server ignoring client move commands if voip data is included.
2012-12-13 23:54:58 +00:00
Zack Middleton
7786f95c06
Fix writting voip data in demos (broke in r2102).
2012-12-13 05:25:50 +00:00
James Canete
f4a0a78b43
Split light sample into direct and ambient parts when using deluxemaps or per-vertex light vectors. Fixes #5813 .
2012-12-10 22:35:57 +00:00
James Canete
b356dac903
From /dev/humancontroller: Typo.
2012-12-06 21:53:52 +00:00
James Canete
374c551404
#5812 - Use refdef's coordinates when drawing to screen shadow fbo, and separate depth texture and screen texture coordinates in glsl shaders.
2012-12-06 01:55:45 +00:00
James Canete
736e1d5170
Oops, fix line endings in new files in previous commit
2012-12-04 03:05:34 +00:00
James Canete
edb414b34a
#5808 - Include and use .glsl in source (rend2)
2012-12-04 01:56:52 +00:00
Thilo Schulz
6b811ada7a
Add length check here as well, thanks Ensiform
2012-12-03 17:58:55 +00:00
Zack Middleton
311acbe263
In q3_ui if uis.demoversion is set, hide "Team Arena" and "Mods" in main menu. (They aren't shown in id's q3a demo and use to be drawn under demo message).
2012-12-01 23:17:14 +00:00
Zack Middleton
29c406c9ec
Fix function prototype for Info_RemoveKey_Big. Pointed out by Ensiform.
2012-11-29 17:09:28 +00:00
Zack Middleton
10a574e6ed
Remove unused function CL_DisconnectPacket. Pointed out by Ensiform.
2012-11-24 20:55:47 +00:00
Zack Middleton
b785f8a241
Changes suggested by DevHC:
...
- Remove "!target" checks from tell, vtell, and gc commands. Target was just set, cannot be NULL.
- Validate "order" in gc command before "player id."
2012-11-20 22:51:48 +00:00
James Canete
467619c034
Make software overbright optional (cvar r_softOverbright) and reduce the number of FBOs and FBO blits when able.
2012-11-20 03:34:16 +00:00
Zack Middleton
1f8db4c14a
Remove references to non-existent functions CM_MarkFragments and CM_LerpTag.
2012-11-19 05:48:27 +00:00
Zack Middleton
3da8779180
- Check for invalid filename in OpenAL's RegisterSound function.
...
- Changed Base sound system to warn not error when sound filename is empty or too long.
2012-11-19 00:40:03 +00:00
Zack Middleton
6c1045a003
Remove unneeded name buffer in S_Play_f.
2012-11-18 23:30:26 +00:00
Zack Middleton
d9bea4977b
Improve "play" command, based on a patch from Ensiform.
2012-11-18 23:16:13 +00:00
Zack Middleton
98f04d39a6
#5799 - Change messagemode text box to display colors like in console input box.
2012-11-18 22:24:15 +00:00
Zack Middleton
05bc03d32d
Remove anti tamper leftover code 'CL_ChangeReliableCommand'. From Ensiform.
2012-11-18 22:12:30 +00:00
Zack Middleton
bf9b5cd7de
- Fix up "gc" command, make it more like "tell". Based on patch by Ensiform.
...
- Add usage messages for gc, tell, vtell, and votell commands.
- Check player names in gc, tell, vtell, and votell commands.
2012-11-18 22:08:58 +00:00
Zack Middleton
1cdb3b33e7
Fix follow command to find clients whose name begins with a number.
2012-11-18 21:55:40 +00:00
Zack Middleton
f13a87daad
Change error message in CL_ConfigstringModified to specify out of range index like in server.
2012-11-18 19:14:07 +00:00
Zack Middleton
82f83cd092
Fix some "> MAX_*" to be ">= MAX_*".
2012-11-18 19:09:54 +00:00
James Canete
d635193e19
Various shader fixes and optimizations.
2012-11-14 10:56:31 +00:00
James Canete
b269acac94
Fix bugs where some surfaces weren't merged and others were counted as merged in R_MergeLeafSurfaces().
2012-11-09 08:13:38 +00:00
James Canete
86984eb536
When calling qglDrawRangeElementsEXT(), use proper start and end parameters.
2012-11-07 00:06:51 +00:00
Zack Middleton
8234225459
Change more operator commands to require sv_running to be usable. Patch by Ensiform.
2012-11-01 06:03:15 +00:00
James Canete
262e8e96b6
Ensure the correct FBO is bound when drawing. (Fixes bug #5791.)
2012-10-30 22:05:07 +00:00
Zack Middleton
c4288507e0
Don't draw cursor during Team Arena's loading screen.
2012-10-30 20:06:48 +00:00
Zack Middleton
016b74b633
Fix restoring old fs_game upon leaving a server. Patch by Ensiform.
2012-10-30 16:51:06 +00:00
Zack Middleton
17ee96e6c8
Clean up getting pshadowMap in Rend2's R_DecomposeSort().
2012-10-30 09:00:58 +00:00
Zack Middleton
faa0cb04c1
Show reason non-default renderer failed to load.
2012-10-30 07:43:44 +00:00
James Canete
32d1bc4f2a
Fix some non-ASCII characters.
...
Patch originally by /dev/humancontroller, modified by me.
2012-10-30 03:00:46 +00:00
Zack Middleton
36c30f6782
Remove initializing "sv_mapname" cvar in game. It's set to "" and never used.
2012-10-29 19:18:06 +00:00
James Canete
3dff29e991
Remove ARRAY_SIZE, and use ARRAY_LEN instead.
2012-10-28 20:35:16 +00:00
James Canete
5cbe7888f8
Fix FBO_*() usage when framebuffers are unavailable or undesired.
2012-10-28 20:22:13 +00:00
Zack Middleton
6bc0e6fae4
Merge changes to GL_Cull from Rend2 into opengl1 renderer, behavior is the same.
2012-10-26 07:40:57 +00:00
Zack Middleton
3dfd2dac7e
Split Rend2's printing OpenGL extensions string (> 1024 characters) into separate function and merged into opengl1 renderer. (Fixes bug #5559.)
2012-10-26 07:23:49 +00:00
Zack Middleton
64ed856dfd
Add smiletheory to credits in q3_ui.
2012-10-26 04:16:25 +00:00
Zack Middleton
c9e5537341
Remove gfxmeminfo command when shuting down Rend2.
2012-10-26 04:07:07 +00:00
Zack Middleton
3814f04a8a
Fix gcc warnings in Rend2.
2012-10-26 03:56:45 +00:00
Zack Middleton
d092ba6627
Fix restoring fs_game when default.cfg is missing.
2012-10-26 01:27:16 +00:00
James Canete
4f7eb9fa21
Added Rend2, an alternate renderer. (Bug #4358 )
2012-10-26 01:23:06 +00:00
Zack Middleton
037565293f
From /dev/humancontroller:
...
to further reduce confusion, rename constants like MAX_ENTITIES to MAX_REFENTITIES
2012-10-17 21:20:29 +00:00
Zack Middleton
bc4ca164e0
From /dev/humancontroller:
...
really fix the confusion with game entity and refentity numbers
for any natural number M, the following is logical as a whole:
- the array size for refentities is M;
- the refentity number limit is M-1, ie., each refentity number is in [0..M-1];
- the special number for the world is M.
before r1429, the code was roughly the following:
// constants related to the game, should not be used by the renderer
// renderer stuff
refEntity_t refEntities[MAX_ENTITIES];
int numRefEntities = 0;
void addRefEntity(refEntity_t re)
{
if (numRefEntities >= ENTITYNUM_WORLD)
return; // full
refEntities[numRefEntities++] = re;
}
void render(int num)
{
if (num == ENTITYNUM_WORLD)
renderWorld();
else
renderRefEntity(refEntities[num]);
}
so before r1429,
- the array size for refentities was 1023;
- the refentity number limit was 1021, ie., each refentity number was in [0..1021]; and
- the special number for the world entity was 1022.
this was a small waste of memory, as the last array element wasn't used.
r1429 changed
if (numRefEntities >= ENTITYNUM_WORLD)
to
if (numRefEntities >= MAX_ENTITIES).
this creates the following configuration:
- the array size for refentities is 1023;
- the refentity number limit is 1022, ie., each refentity number is in [0..1022]; and
- the special number for the world entity is 1022.
r1429 just makes things worse: it allows 1 more refentity to be added, but that entity doesn't get drawn anyway, as its number will be equal to the special number for the world. this is a small waste of not only memory, but also processing time.
perhaps in XreaL,
ENTITYNUM_WORLD is a game entity constant, and has nothing to do with refentities. a new REFENTITYNUM_WORLD constant should be added to denote the special number for the world, and that constant should be used in the renderer code in place of ENTITYNUM_WORLD. so define such a constant, and let it be equal to MAX_ENTITIES, which is 1023.
2012-10-17 21:17:37 +00:00
Zack Middleton
d49d0753eb
When in third person, don't play player's sounds as full volume in Base sound system. OpenAL already does this. (Related to bug 5741.)
2012-10-17 20:39:45 +00:00
Zack Middleton
ce9f2ee5f9
Check last listener number instead of clc.clientNum in S_AL_HearingThroughEntity so sound work correctly when spectate following a client. (Related to bug 5741.)
2012-10-17 19:30:41 +00:00
Zack Middleton
0167b439c9
Don't include client.h in sdl_glimp.c as it is part of the external renderer lib.
2012-10-13 23:15:02 +00:00
Zack Middleton
0a8eb09834
Play correct team sounds when in spectator mode and following a player.
2012-10-11 18:22:41 +00:00
Zack Middleton
cf30922932
Fix resetting single player level selection in q3_ui when there is no training level, such as in demoq3.
2012-09-30 06:21:08 +00:00
Zack Middleton
a32dc4dca4
Fix arrow buttons in q3_ui join server menu to be selectable by mouse.
2012-09-30 03:59:10 +00:00
Zack Middleton
656a0145bc
Added myself to ioq3 credits in q3_ui.
2012-09-30 03:10:10 +00:00
Zack Middleton
11811e8138
Fix UI player model FOV when using non-640x480 resolution.
2012-09-30 02:56:50 +00:00
Zack Middleton
2cb7f25093
Cache servers for each master server in q3_ui, otherwise servers from last updated master for shown for all Internet# sources.
2012-09-17 04:16:30 +00:00
Zack Middleton
02f3664b2e
Fix game getting stuck in a do-while loop when "team follow1" or "team follow2" client sends a follownext or followprev command.
2012-09-10 01:22:13 +00:00
Zack Middleton
c65142179f
Fix g_warmup < 2 causing client prediction issues (bug #5740 ). (Reused code for tournament gametype.)
2012-09-09 22:14:15 +00:00
Zack Middleton
e3fc1826b1
Send team info for team overlay to spectators for the team of the client they're following (bug #5740 ).
2012-09-08 23:19:06 +00:00
Zack Middleton
56ebe14239
Don't have g_teamAutoJoin affect bot's team
...
Bots set their team later, setting it here causes some bots to change team and die later. Can cause extra skulls to be spawn at beginning of harvester (bug #5740 ).
2012-09-08 22:32:41 +00:00
Zack Middleton
b4a76e74f7
Remove a redundant code statement.
2012-09-04 21:13:25 +00:00
Zack Middleton
1aaf9d3e7b
Use correct fallback height and width for r_mode -2.
2012-08-27 15:38:55 +00:00
Zack Middleton
42d3ff8d1d
Added r_mode -2, uses desktop resolution. Bug #5408 . Patch by Andrei Drexler and myself.
2012-08-27 14:52:41 +00:00
Zack Middleton
a3ae0dc5ef
Removed a check that was made unnessicary by r1644.
2012-08-24 18:04:44 +00:00
Zack Middleton
dc8b48855d
More MISSIONPACK ifdeffery.
2012-08-17 19:05:40 +00:00
Zack Middleton
9a69b738bf
Added MISSIONPACK ifdef around GT_1FCTF code.
2012-08-17 06:18:37 +00:00
Zack Middleton
b82c02fc03
Don't replay to status OOB requests in Team Arena single player.
2012-08-16 21:38:02 +00:00
Thilo Schulz
027ea8d6d3
Oops, still need this
2012-08-08 09:42:33 +00:00
Thilo Schulz
ffac0e6757
Move argument passing from VM to engine to global variables which allows to get rid of lots of OS specific stuff and also fixes errors that happens when compilers add lots of boilerplate to the DoSyscall() function
2012-08-08 09:34:03 +00:00
Thilo Schulz
ded2b11959
Fix this for real now.
2012-07-23 21:27:17 +00:00
Tim Angus
88cbeae0fd
* Fix warning
2012-07-07 18:24:20 +00:00
Thilo Schulz
053aa8ead7
Fix windows as well
2012-07-07 18:22:19 +00:00
Tim Angus
37f2b4db90
* (bug #5709 ) Fix crash when invoked with --version
2012-07-07 17:32:19 +00:00
Zack Middleton
79bb668a9f
Fixed G_LogPrintf format warning on 64 bit systems added in r2294.
2012-07-05 13:42:08 +00:00
Zack Middleton
2cfda4384b
We should not try to broadcast via the IPv4 socket if that socket is closed.
...
Previously, error messages were generated when querying local servers while IPv4 was disabled. Patch from /dev/humancontroller.
2012-07-05 13:33:55 +00:00