Commit graph

739 commits

Author SHA1 Message Date
Eric Wasylishen
1c2480c764 validate snd_filterquality 2014-08-04 14:58:41 -06:00
Eric Wasylishen
b7b42a317c Pick default filter quality based on OS 2014-08-04 14:49:18 -06:00
Eric Wasylishen
d1d17a6c74 default to filter quality 5 2014-08-04 12:56:33 -06:00
Eric Wasylishen
745beb1598 formatting tweaks. put filter into simd-friendly form (idea from speex resampler) 2014-08-04 12:52:33 -06:00
Eric Wasylishen
78bc37751f fix filter glitchy output. add more quality levels 2014-08-04 01:38:25 -06:00
Eric Wasylishen
cb238f7ed3 resampling optimisation 2014-08-03 22:34:02 -06:00
Eric Wasylishen
2ec2f6a785 tweak filter params 2014-08-02 00:49:21 -06:00
Eric Wasylishen
07e4fff2af Add lowpass filter 2014-07-31 16:55:06 -06:00
sezero
b7ffb3599d remove unused var
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@943 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:45:07 +00:00
sezero
64194b83d5 reset all models and set mod_numknown to 0 upon gamedir changes.
fixes issue described at:
http://celephais.net/board/view_thread.php?id=60452&start=825
also see http://forums.inside3d.com/viewtopic.php?f=12&t=5509


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@942 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:33:03 +00:00
sezero
a178a424c9 Host_Game_f: fix broken behavion if -gamedir is specified. (use com_basedir, not host_parms->basedir)
Modlist_Init: no need for -basedir check, just use com_basedir


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@941 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:02:25 +00:00
sezero
1a852583a0 remove zombie USE_QS_CONBACK ifdefs
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@940 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-29 16:22:29 +00:00
sezero
699bc1430c net_sys.h: update from uhexen2
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@938 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 14:37:16 +00:00
sezero
62e7f9bef8 request 24-bit depth buffer / z-buffer. patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@935 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-15 07:03:56 +00:00
sezero
d41891d397 restore compilation with g++, some whitespace tidy-up.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@934 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:50:57 +00:00
sezero
e78f6bb02c dynamic light speedup, patch from Eric Wasylishen, based on an earlier work by MH.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@933 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:01:58 +00:00
sezero
93cff46ed7 arch_def.h: update from uhexen2.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@932 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 07:06:15 +00:00
sezero
b99a7ea72a support for GL_ARB_texture_non_power_of_two, patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@931 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 06:56:09 +00:00
sezero
a2416ef43e move MAX_OSPATH definition to q_stdinc.h. define it as PATH_MAX,
or as MAXPATHLEN, _MAX_PATH, or MAX_PATH if either of them is
available, or as 1024 if none are available. this would make us
safer in deep installation directory paths.  darkplaces engine
seems to do the same.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@928 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-01 16:25:00 +00:00
stevenaaus
2d826c699c When crosshair is present, for simple messages (SCR_DrawCenterString), text doesnt always end with a newline (eg E1 entry in startmap), so move message up one line. Doesnt affect large messages used via SCR_DrawNotifyString(eg Socks Shadow demo).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@926 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-29 01:22:35 +00:00
sezero
407d5aa13a ditch fmin/fmax and use plain q_min/q_max
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@922 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-22 05:50:39 +00:00
sezero
1d7b642e4e revert r907 (fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@921 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 20:29:11 +00:00
sezero
ddbefa28fd add mikmod to xcode project file. enable several extra codecs for osx and windows builds.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@919 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 15:50:09 +00:00
stevenaaus
3cba74aa50 Make sv_aim persistant.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@911 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 08:28:52 +00:00
sezero
3ffdc11633 SCR_ScreenShot_f: dont bother GL_PACK_ALIGNMENT restoring
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@910 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 20:10:34 +00:00
sezero
1dc482677d fix screenshots when width isn't a multiple of 4. explained by Sander van Dijk.
also check that malloc() didn't fail.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@909 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 08:12:42 +00:00
sezero
5e6683608d gl_model.c (CalcSurfaceExtents): fix a lighting glitch due to floating point precision. patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@908 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 06:10:12 +00:00
sezero
908ecf84a0 fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@907 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:50:58 +00:00
sezero
ec5d6ba83d load custom quakespasm.pak from <com_basedir> instead of id1/
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@906 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:40:28 +00:00
sezero
d2f537967f comment out COM_DefaultExtension
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@905 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:33:05 +00:00
sezero
eafd77c770 revert r903 and the old conback hack commits. change the engine
to load id1/quakespasm.pak for content customizations.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@904 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:28:16 +00:00
stevenaaus
8891cc87a0 Overide some old fashioned default bindings (from Eric - https://sourceforge.net/p/quakespasm/patches/17/).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@903 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 10:28:13 +00:00
sezero
23479771e1 Avoid using COM_DefaultExtension() whenever possible: it may lead
to unpredictable results. Use a new procedure COM_AddExtension()
which appends the given extension to the path if the one it has,
if any, doesn't match. In Host_Game_f(), reject "." as the path.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@902 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 07:50:54 +00:00
sezero
77ff19c371 Unix (at least Linux) man pages for mkdir(2) document the EEXIST
error: "pathname already exists (not necessarily as a directory).
This includes the case where pathname is a symbolic link, dangling
or not." So, add a check to see if the existing pathname is really
a directory.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@901 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-24 08:10:15 +00:00
sezero
d75aafddbb progs.h: leafnums array in edict_t needs to be int, not short. patch from Eric Wasylishen.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@899 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-13 09:03:48 +00:00
sezero
a4a2cbb506 Re: r897: lowered NET_MAXMESSAGE and MAX_MSGLEN from 65536 to 64000. not happy with this limit bump at all, but let's see how it will turn out..
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@898 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 07:28:11 +00:00
stevenaaus
b223fa293d A couple of limit bumps. http://www.celephais.net/board/view_thread.php?id=60452&start=721
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@897 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 05:08:34 +00:00
sezero
7cb7440f3d snd_umx: minor update from umr. minor correction to fshandle offset.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@893 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-11 20:00:35 +00:00
stevenaaus
769f1ed414 MAX_VISEDICTS bump For BSP2, suggested by Ericw.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@892 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-30 10:07:03 +00:00
sezero
18afae1775 more correct export read for unreal beta, for correctness sake...
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@888 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 20:50:23 +00:00
sezero
e14b5aca86 fix umx export table read order. doesn't affect our umx playback, but correctness is good.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@887 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 18:27:33 +00:00
stevenaaus
a1dc252423 Sound looping bug fix from eric - https://sourceforge.net/p/quakespasm/patches/12/
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@886 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 02:55:04 +00:00
stevenaaus
10fd8b0f04 Enable wheel mouse in console (used to scroll up and down).
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@884 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-04 07:18:43 +00:00
sezero
380099484f snd_mikmod.c: compile-time sanity checks for libmikmod version.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@883 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-27 12:00:21 +00:00
sezero
201043b3ba BSP2 support. patch kindly provided by Eric Wasylishen (see the patch
tracker entry #11 at http://sourceforge.net/p/quakespasm/patches/11/)

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@881 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-25 09:10:28 +00:00
sezero
f507bd8e51 snd_umx.c (read_typname): made technically more correct (not that it matters for our case, but still..)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@879 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-24 07:03:49 +00:00
sezero
2be37b90e3 snd_umx.c: support umx files from unreal 1997/98 beta version.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@878 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-23 18:57:18 +00:00
svdijk
3128e5c42a In CL_ParseServerInfo(), call Host_Error() when a model can't be found.
This prevents the segmentation fault reported by Spirit at
http://celephais.net/board/view_thread.php?id=60452&start=516.


git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@877 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-18 10:43:54 +00:00
sezero
b563bae4a7 snd_mikmod.c: fix return type of the Seek function. snd_umx.c: update XM detection. other minor tidy-ups.
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@876 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-15 18:11:31 +00:00
svdijk
c5c7dc4e3d Base FOV adapting on screen resolution instead of viewport resolution.
By doing this we still adapt to widescreen resolutions automatically,
but we now keep the horizontal FOV a constant for any given resolution.
E.g. if the aspect of the viewport changes (for instance when the user
changes the statusbar from transparent to solid) we adapt the vertical
FOV instead of the horizontal FOV (like original GLQuake does). For any
4:3 screen resolution quakespasm now behaves the same with or without
fov_adapt set, regardless of viewport size/aspect. This fixes the issue
reported by mh at http://forums.inside3d.com/viewtopic.php?f=1&t=5166.



git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@872 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 16:20:38 +00:00