Commit graph

898 commits

Author SHA1 Message Date
Ozkan Sezer
f7f99d563e update README files
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@913 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 11:02:41 +00:00
Ozkan Sezer
eaa16c8c7f update README files
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@912 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 11:00:31 +00:00
Steven
1463ffca51 Make sv_aim persistant.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@911 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 08:28:52 +00:00
Ozkan Sezer
46b1533a41 SCR_ScreenShot_f: dont bother GL_PACK_ALIGNMENT restoring
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@910 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 20:10:34 +00:00
Ozkan Sezer
72be5368ee 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@909 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 08:12:42 +00:00
Ozkan Sezer
bfab14040b gl_model.c (CalcSurfaceExtents): fix a lighting glitch due to floating point precision. patch from Eric Wasylishen.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@908 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 06:10:12 +00:00
Ozkan Sezer
58b3577721 fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@907 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:50:58 +00:00
Ozkan Sezer
4d32042d71 load custom quakespasm.pak from <com_basedir> instead of id1/
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@906 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:40:28 +00:00
Ozkan Sezer
5ad7885e70 comment out COM_DefaultExtension
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@905 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:33:05 +00:00
Ozkan Sezer
d941ee83db revert r903 and the old conback hack commits. change the engine
to load id1/quakespasm.pak for content customizations.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@904 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:28:16 +00:00
Steven
66764cfd6f Overide some old fashioned default bindings (from Eric - https://sourceforge.net/p/quakespasm/patches/17/).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@903 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 10:28:13 +00:00
Ozkan Sezer
53e10c7098 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@902 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 07:50:54 +00:00
Ozkan Sezer
f784b8a769 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@901 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-24 08:10:15 +00:00
Ozkan Sezer
36f3f6b25a osx port: update SDLMain.m from SDL hg repository/SDL-1.2 branch.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@900 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-18 16:05:59 +00:00
Ozkan Sezer
300987aa0e progs.h: leafnums array in edict_t needs to be int, not short. patch from Eric Wasylishen.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@899 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-13 09:03:48 +00:00
Ozkan Sezer
c8f7a73165 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@898 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 07:28:11 +00:00
Steven
0681b0ad1e A couple of limit bumps. http://www.celephais.net/board/view_thread.php?id=60452&start=721
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@897 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 05:08:34 +00:00
Ozkan Sezer
1a89ac5d6f upgrade libmodplug dlls to latest 0.8.8.5 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@896 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-11 12:00:12 +00:00
Ozkan Sezer
8e37e6d77c oslibs, codecs (win, osx): upgrade libmpg123 to stable 1.18.1 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@895 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-17 18:00:25 +00:00
Ozkan Sezer
9131208183 oslibs (win, osx), codecs: recompiled libmpg123 using latest stable
1.18.0 release, with debug messages (mpg123lib_intern.h) disabled,
and -finline-functions and -funroll-all-loops compiler flags removed.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@894 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-11 20:05:57 +00:00
Ozkan Sezer
1f46579e55 snd_umx: minor update from umr. minor correction to fshandle offset.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@893 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-11 20:00:35 +00:00
Steven
017c3d747b MAX_VISEDICTS bump For BSP2, suggested by Ericw.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@892 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-30 10:07:03 +00:00
Ozkan Sezer
a4264ce1fe oslibs (win, osx), codecs: recompiled libflac with the encoder taken
out and a few patches applied from mainstream git repo. also tweaked
the FLAC_API macro for windows dll exports. dll and dylib sizes are
more than halved now.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@891 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-25 20:50:25 +00:00
Ozkan Sezer
b5d4b05943 oslibs, codecs: recompile using latest libvorbis-1.3.4 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@890 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-24 15:50:34 +00:00
Ozkan Sezer
d012fc1514 recompiled opusfile-0.3 for win with commits cfa5956, 06a191e, and
779ea4d applied from mainline.  recompiled libmikmod-3.3.5 for win
and osx with 16cddd and 3493b1 applied from mainline.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@889 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-15 18:21:53 +00:00
Ozkan Sezer
7e452509c2 more correct export read for unreal beta, for correctness sake...
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@888 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 20:50:23 +00:00
Ozkan Sezer
e17a2459b7 fix umx export table read order. doesn't affect our umx playback, but correctness is good.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@887 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 18:27:33 +00:00
Steven
ffe32528b9 Sound looping bug fix from eric - https://sourceforge.net/p/quakespasm/patches/12/
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@886 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 02:55:04 +00:00
Ozkan Sezer
e951f43788 upgrade libmikmod to v3.3.5
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@885 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-10 10:00:27 +00:00
Steven
d0cef2769f Enable wheel mouse in console (used to scroll up and down).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@884 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-04 07:18:43 +00:00
Ozkan Sezer
ca56486381 snd_mikmod.c: compile-time sanity checks for libmikmod version.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@883 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-27 12:00:21 +00:00
Steven
6606458d0c Move the sgml stuff to Linux/sgml, and update doco re gamma known-bugs.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@882 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-26 21:16:44 +00:00
Ozkan Sezer
1eb360205b 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@881 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-25 09:10:28 +00:00
Ozkan Sezer
7b9e1335d8 osx and windows codecs: upgrade libmikmod to v3.3.4 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@880 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-11 14:37:24 +00:00
Ozkan Sezer
8060407875 snd_umx.c (read_typname): made technically more correct (not that it matters for our case, but still..)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@879 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-24 07:03:49 +00:00
Ozkan Sezer
8d6e912c2a snd_umx.c: support umx files from unreal 1997/98 beta version.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@878 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-23 18:57:18 +00:00
Sander van Dijk
3b2e101cbe 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@877 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-18 10:43:54 +00:00
Ozkan Sezer
6bdc733591 snd_mikmod.c: fix return type of the Seek function. snd_umx.c: update XM detection. other minor tidy-ups.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@876 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-15 18:11:31 +00:00
Ozkan Sezer
468f84007a upgrade libmikmod-3.3.3
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@875 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-15 17:51:09 +00:00
Sander van Dijk
729cc937bf Minor formatting.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@874 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 17:38:03 +00:00
Sander van Dijk
a1d5ee9f55 Some doco updates.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@873 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 17:02:35 +00:00
Sander van Dijk
c8ebc6ce64 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: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@872 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 16:20:38 +00:00
Ozkan Sezer
db2ccc608e codecs: update libmikmod to latest 3.3.2 release
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@871 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-07 09:00:51 +00:00
Ozkan Sezer
a99f95af94 add mikmod/modplug codec libs for windows and macosx.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@870 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-28 07:28:17 +00:00
Ozkan Sezer
a95bb25134 add new stdio replacement FS_fgetc() and use it in snd_mikmod.c.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@869 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-27 19:51:26 +00:00
Ozkan Sezer
5e4849c61f replace all ctype.h functions/macros and strcasecmp/strncasecmp()
by locale-insensitive versions, new header q_ctype.h.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@868 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-25 17:01:40 +00:00
Ozkan Sezer
ffa3bf4413 Merge several FS_* and snd_codec* layer updates from uhexen2 tree:
tidy-ups in FS* stdio replacement functions. add new FS_filelength.
snd codec layer updates: changed codec_open() to operate only on a
stream pointer and moved all file open/close stuff to snd_codec.c.
codec_open now only returns true or false upon success or failure
instead of a stream pointer. added new snd_codec.c toplevel helper
S_CodecForwardStream(), which allows one codec to hand over its
stream from its codec_open() to another codec. Support for tracker
(mod) music, including support for Unreal umx containers. (might
be useful if we ever make a Nehahra version of the engine some day.
edit the makefiles to enable when compiling.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@867 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-25 11:01:12 +00:00
Ozkan Sezer
0a52f552fe oslibs: macosx, windows: recompile libopusfile using latest stable
v0.3 release. (only a windows code change and a few extra comments
in opusfile.h header since the previous build.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@866 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-08-08 12:21:40 +00:00
Ozkan Sezer
f68cafe5be snd_mp3.c (mp3_startread): set the missing stream->info.bits value
(for completeness only.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@865 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-27 05:05:44 +00:00
Ozkan Sezer
4a69497ed6 snd_flac.c (flac_write_func): don't byteswap the 16 bit values.
they seem to be in native-endian format. thanks to Levent Yavas
for testing on a big endian platform (ppc/OSX 10.4).


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@864 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-25 11:03:25 +00:00