Commit Graph

1244 Commits

Author SHA1 Message Date
Eric Wasylishen 4bf5691cad experimenting with shobboxes 2015-12-07 15:02:18 -08:00
ewasylishen b63744399e Fog: move setting of GL_FOG_MODE to GL_EXP2 to a new Fog_SetupState() function and call it in VID_Restart.
Fixes bug where the fog mode was resetting to the default (GL_EXP) after a mode switch, causing fog to look different. This was only affecting SDL1 for me.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1259 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-11-26 09:06:42 +00:00
sezero 11913c0ded rebuilt SDL2 for windows and osx from SDL2 hg rev. 9915 (2015.11.14)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1258 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-11-14 14:05:34 +00:00
sezero 30168145d6 oslibs, codecs: rebuild libmikmod from latest sources.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1257 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-11-10 08:35:08 +00:00
ewasylishen b7baae191f Sbar_DrawPicAlpha: change glColor3f call to glColor4f with explicit alpha of 1 to work around intel 855 bug, which also affected Fitzquake 0.85.
With "r_oldwater 0" and "scr_sbaralpha 0", warp textures wouldn't be rendered and instead you would see a copy of the screen tiled where water surfaces should be.
Thanks to graham for reporting.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1256 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-10-06 06:18:30 +00:00
ewasylishen cf6d493154 PF_traceline: change Host_Error when a NaN is detected to a Con_Warning.
This only affects the case when the developer cvar is set, we already ignore NaN's here.

negke reports getting the nan error with this debug progs.dat: http://negke.fov120.com/files/progsbjp.zip (rename to pak0.pak + install as a mod)
and his sm133_neg!ke.bsp: https://www.quaddicted.com/reviews/sm133_pack.html (walk over the zombie to activate a lightning trap)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1255 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-10-06 04:08:29 +00:00
ewasylishen 31b3c37cc3 Xcode project: build debug builds with all music codecs
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1254 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-22 06:11:12 +00:00
ewasylishen a7abcdd0aa Alias model VBO renderer: restructure so each model is stored in a separate VBO and load them in Mod_LoadAliasModel, rather than R_NewMap.
Initially I thought that we would never need to draw an alias model that hadn't been precached when R_NewMap runs, but this assumption turned out to be incorrect. This fixes the issue where progs/bolt.mdl wasn't rendering in the Scourge Done Slick demos.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1253 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-20 20:10:49 +00:00
stevenaaus 5cf0eb9465 r_pos cvar: Dynamic position info, aka r_speeds + viewpos.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1252 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-12 03:29:41 +00:00
sezero 07b48e4392 rebuilt SDL2 for windows and macosx from SDL hg rev.9861
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1251 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-11 23:32:18 +00:00
sezero cbedb792f7 oslibs, codecs: rebuilt flac decoder for windows and macosx with fixes from xiph.org git applied.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1250 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-11 18:35:13 +00:00
ewasylishen 0de318293e VID_SetMode: for SDL2, move GL context creation to be after the window is shown.
This matches the order used in the SDL2 sample applications included with the library.

Seems to fix an issue on Windows 10 with DPI scaling 150%, launching QS 0.90.1 with  "-width 1920 -height 1080 -fullscreen", and you get a horrible black flicker every few frames.
see http://celephais.net/board/view_thread.php?id=60452&start=1587

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1249 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-07 20:36:43 +00:00
ewasylishen a4f3ef53d9 sys_sdl_win.c: fix calling conventions for SetProcessDpiAware[ness]. Was getting a runtime error about that when compiling with VS2015.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1248 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-07 20:36:39 +00:00
ewasylishen 442e6c9d77 TexMgr_ReloadImages: attempt to fix random texture recoloring after mode change (http://sourceforge.net/p/quakespasm/bugs/10/)
This removes the Cache_Flush() call that was here, which was there to fix the jam3_tronyn / low heapsize bug, and instead adds a different workaround for that issue.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1247 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-09-04 09:22:33 +00:00
ewasylishen 914083b256 r_alias.c, r_sprite.c: print the model name in the "no such skin" (r_alias.c) and "no such frame" (r_sprite.c) developer messages
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1246 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-31 18:36:38 +00:00
sezero ee2f39fb69 prevent a possible buffer overflow in Cbuf_Execute (an old q1/q2 issue this was.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1245 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-23 09:56:31 +00:00
sezero 6e5ba6d525 gl_mesh.c: add missing casts so that C++ compilers won't fail
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1244 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-23 09:55:02 +00:00
sezero 439b8c2e1b r_alias.c: remove duplicated shadevector (was introduced in r1151)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1243 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-23 09:53:05 +00:00
sezero 13265cd894 constify arg_completion_type_t->command
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1242 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-23 09:51:35 +00:00
sezero fddcd0f8d9 recompiled some music decoders for osx and windows
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1241 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-15 15:15:23 +00:00
sezero d80a9e1226 common.c (MSG_ReadString): replaced MSG_ReadChar with MSG_ReadByte
to avoid potentional vulnerability (icculus.org quake2 svn rev. 180.)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1240 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-05 14:47:25 +00:00
ewasylishen d17e292442 r_alias.c: Add model name to "no such frame" warning
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1239 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-08-02 18:21:57 +00:00
ewasylishen 9b024888bd new cvars: r_lavaalpha, r_slimealpha, r_telealpha for fine-tuning specific liquid opacities (from DirectQ, RMQEngine)
new worldspawn keys: _wateralpha, _lavaalpha, _slimealpha, _telealpha, _skyfog (unique to Quakespasm)

The lava/slime/telealpha cvars are non-archived, and default to 0, which means to use the value of r_wateralpha, so they have no effect by default.

The worldspawn keys allow custom maps to set these values in a way that only applies while the map is loaded, and doesn't change the cvar value. (similar to the behaviour of the "fog" worldspawn key.) They are accepted with or without the underscore, like "fog".

see also:
http://forums.insideqc.com/viewtopic.php?f=3&t=5532
http://celephais.net/board/view_thread.php?id=60452&start=937

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1238 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-07-26 21:51:25 +00:00
sezero a34afe2834 recompile some cdoecs from latest sources
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1237 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-07-13 16:56:29 +00:00
sezero 33f4023258 snd_mp3.c: applied a patch to skip APEv2 tags
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1236 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-07-13 06:37:02 +00:00
sezero f7877d59f9 snd_mp3.c: return type tweak for mp3_tagsize()
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1235 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-07-13 06:26:15 +00:00
ewasylishen e0fc971a95 R_DrawEntitiesOnList: revert entity texture sorting added in r1151 as it introduces wrong alpha-sorting in contract revoked start.bsp
reported here: http://www.celephais.net/board/view_thread.php?id=60452&start=1515

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1234 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-24 18:22:56 +00:00
ewasylishen 84422cfe79 "flush" command: Call a wrapper around Cache_Flush that also does GLMesh_LoadVertexBuffers.
"flush" command is used by modders to view modified mdl files. need to call GLMesh_LoadVertexBuffers to keep that use case working with GLSL renderer.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1233 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-15 22:52:29 +00:00
ewasylishen 79431b9c9e SCR_TileClear: fix for GLSL gamma causing the tiled screen border to turn white, if you use "sizedown" to show the border.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1232 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-15 21:17:45 +00:00
ewasylishen d60c11b315 GLSLGamma_GammaCorrect: support this code path on old cards without the NPOT extension
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1231 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-15 21:17:39 +00:00
sezero c525c83dee bumped version to 0.91.0 for future development
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1230 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-15 08:21:14 +00:00
ewasylishen aca6afe940 gl_model.c: Mod_LoadTextures: avoid crash on broken maps such as jam2_tronyn.bsp or kellbase1.bsp, where we try to read texture pixel data past the end of the texture lump (crashing because the textue lump is the last thing in the .bsp file buffer).
This would only hapen on OS X or Linux (perhaps just luck or windows is more leniant about reading ~40 bytes past the end of a malloc). Note this will only handle cases where the lump size is recorded as being too small, we will still crash if the bsp file itself is truncated since there are generally no checks against the whole .bsp file buffer size.

FYI, the corruption in jam2_tronyn.bsp was caused by a bug in tyrutils which is fixed now: http://disenchant.net/git/?p=tyrutils&a=commit&h=5111c5485c96918b937843715f9b8f51f263e40e
Not sure about kellbase1.bsp (quoth).

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1228 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-12 02:26:10 +00:00
sezero 76b1206f7d minor doc updates
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1227 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-04 17:05:39 +00:00
sezero 453d701e73 rebuilt SDL2 from SDL hg rev. 9702 to fix osx borkage
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1226 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-04 17:04:54 +00:00
sezero eb7080bfee docs: minor typo fix, update edit date, some hand-editing to txt version.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1225 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-03 14:56:11 +00:00
ewasylishen a9dcbecf1f Modlist_Init: (win32) don't list "." as a mod.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1224 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-03 03:54:47 +00:00
sezero d6ec440cad recompiled SDL2 for windows and osx from SDL hg 2015-06-01/rev.9699
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1223 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-02 20:00:29 +00:00
ewasylishen 4c6cb650fe Quakespasm.{html,txt}: Update
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1222 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-01 05:17:00 +00:00
ewasylishen 645e511b2d docs: Quakespasm.sgml: add note that stdout.txt is no longer generated with sdl2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1221 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-06-01 04:40:22 +00:00
ewasylishen 5e18e31b05 docs: Update Quakespasm.sgml with latest changes
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1220 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-31 21:16:57 +00:00
ewasylishen 917d8a4544 Add filename tab-completion for "playdemo" and "record" commands
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1219 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-30 02:28:58 +00:00
ewasylishen b791f5379d Host_Pause_f: Allow pausing demos even if cls.demonum != -1, i.e. we are in a demo loop.
The logic to prevent pausing the demo loop was preventing pausing in some valid cases, and there's no special reason not to allow pausing a demo loop.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1218 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-29 18:33:19 +00:00
ewasylishen 6e8f4cd5dc ExtraMaps_Add: merge with Modlist_Add into new FileList_Add
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1217 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-29 18:33:14 +00:00
ewasylishen 0b04690279 Convert to Con_DWarning (developer 1 only) the remaining two "exceeded standard limit" warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1216 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-29 18:33:08 +00:00
ewasylishen 237eec45ed xcode project: add indentation settings
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1215 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-25 19:55:58 +00:00
ewasylishen e924d51054 Move more spammy message from "developer 1" to "developer 2", continued:
- .ent, .lit not found in COM_FindFile (they will usually be missing, we print a message with "develoepr 1" when they are found)
- "trying to load" .ent file
- "bad chunk length"

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1214 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-25 18:38:37 +00:00
ewasylishen 86fedcc281 Move more spammy message from "developer 1" to "developer 2":
- "meshing", "tri vert cmd"
- "PR_AlocStringSlots: realloc'ing"

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1213 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-25 03:39:05 +00:00
ewasylishen c532ecfabd COM_FindFile: in addition to .pcx, suppress "can't find" warning for .tga textures when developer.value < 2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1212 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-25 02:00:06 +00:00
ewasylishen cb0357e98c Make "exceeds standard limit of" messages only display when developer cvar is set, with a new Con_DWarning function.
Have heard these are confusing players and mappers/modders; people assume there is an error or a limit in QS is exceeded, but the messages are only about exceeding the limits in vanilla WinQuake/GLQuake.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1211 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-25 01:48:03 +00:00
ewasylishen a3f63c8023 add r_noshadow_list cvar (from MarkV), removing hardcoded list of models to not have shadows
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1210 af15c1b1-3010-417e-b628-4374ebc0bcbd
2015-05-18 18:00:49 +00:00