Commit graph

1132 commits

Author SHA1 Message Date
sezero
ce6e04fd6e add the com_base_searchpaths thing of qw and use it in Host_Game_f(), kill the no longer needed com_nummissionpacks, KillGameDir() and NumGames().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@998 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 18:20:47 +00:00
sezero
e9a6da6b0b tighten Host_Game_f() a bit more
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@997 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 16:02:58 +00:00
sezero
78fb4b0de5 Host_Game_f(): simplify
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@996 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 14:29:12 +00:00
sezero
bba00c335c fix the homedir patch (the 2nd pass sholud use host_parms->userdir, not host_parms->basedir)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@995 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 12:33:22 +00:00
sezero
b46affa562 add Sander's FS search order patch as an optional patch
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@994 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 09:30:51 +00:00
sezero
0730834b0c revert r988
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@993 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 09:10:27 +00:00
ewasylishen
a5dffbb059 gl_screen.c: make the console speed independent of the current resolution. Before, switching to a really high (e.g. 2880x1800) resolution would make the colsole take several seconds to open/close
Not totally sure about this but i think it's a decent idea. I'm using 800x600 as a reference screen size (arbitrary choice but it's the default QS resolution). So if your resolution is 600 pixels tall this will make no difference. On higher resolutions this will make the console a bit faster than before.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@992 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 06:25:59 +00:00
ewasylishen
9330762c8c R_CullSurfaces: small optimization. Avoid doing (s->visframe == r_visframecount) test on all world surfaces, instead, use the surfaces in the world texture chains, which already passed that test in R_MarkSurfaces.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@991 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-08 04:31:26 +00:00
svdijk
6ec776bad5 gl_rmain.c: make gl_zfix default to 0, no longer save it to config.cfg
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@990 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-07 19:35:52 +00:00
svdijk
70a0884752 quakespasm.pak: add several .ent files to prevent z-fighting
fixed so far:
e1m1: quad secret elevator (when down)
e1m2: exit doors (when open)
e2m3: rockets secret doors (when open)
e2m7: bars in front of the exit doors (when raised)



git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@989 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-07 19:33:38 +00:00
svdijk
049e34a3f6 common.c: make plain files overrule files inside a PAK file
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@988 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-07 12:32:27 +00:00
ewasylishen
5e8102e1e6 SDL2 support, if USE_SDL2 defined.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@987 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-05 19:34:43 +00:00
sezero
7a762fbb66 restore compilability with g++. some whitespace tidy-ups.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@986 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-02 05:40:41 +00:00
ewasylishen
a166d40de2 PF_VarString: raise buffer size to 1024. I checked all buffers that the resulting string could end up in, and they're all at least 1024 bytes (even with an unmodified quake client).
PF_VarString is only called on the server, in:
- PF_error, PF_objerror, PF_dprint to print error / debugging messages
- PF_bprint, which calls SV_BroadcastPrintf which copies the string into a 1024-byte buffer, then sends that to clients in a svc_print message
- PF_sprint, which sends the string in a svc_print message using MSG_WriteString (without copying into an intermediate buffer)
- PF_centerprint, which sends the return value of PF_VarString in a svc_centerprint message (without copying into an intermediate buffer)

On the client:
- svc_print reads the payload string with MSG_ReadString (2048-byte buffer), then Con_Printf is called (4096-byte buffer)
- svc_centerprint uses MSG_ReadString then calls SCR_CenterPrint (1024-byte buffer)

I also checked the original quake source and the client-side buffers for MSG_ReadString, Con_Printf, and SCR_CenterPrint are all the same sizes as in QS.

Admittedly I want to support sock's ITS mod, but as far as I can see, it's a totally safe to increase this to 1024.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@985 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-09-01 07:30:23 +00:00
sezero
b408ccf949 dropped support for GL_SGIS_multitexture
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@984 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-30 08:00:34 +00:00
ewasylishen
75723a3f7b Revert r981 "Simple use of vertex arrays in R_DrawTextureChains_Multitexture."
It caused a dramatic slowdown on my machine on windows (50% slower)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@983 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-30 06:30:49 +00:00
ewasylishen
516271e393 Silence warning about vid_fsaa requiring restart when parsing config.cfg at startup. Add missing newline to warning message.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@982 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-30 03:22:36 +00:00
ewasylishen
63b813cb06 Simple use of vertex arrays in R_DrawTextureChains_Multitexture.
The glBegin(GL_POLYGON), for() loop with GL_MTexCoord2fFunc()/glVertex3fv() calls, and glEnd () per polygon is replaced by a memcpy() and a glDrawArrays() call per poly.

My guess is this only saves function call overhead, but it gives a decent ~20% speedup (36 -> 42fps) on my machine on orl’s map.

Note: glDrawArrays() is in OpenGL 1.1, but the glClientActiveTextureARB function is part of the GL_ARB_multitexture extension but not GL_SGIS_multitexture. Instead of splitting into two code paths, I just dropped support for GL_SGIS_multitexture.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@981 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-30 03:22:26 +00:00
sezero
9e8e99e858 update README files to reflect further 0.85.10 changes so far.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@980 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-29 08:55:19 +00:00
ewasylishen
65db1b5a32 Remove R_DrawSequentialPoly and use texture chains for drawing brush models.
To make this work with the drawing order we use in gl_rmain (world excluding water, opaque ents, world water, transparent ents), I made each texture_t have two texture chains, one for world and one for bmodels. This way they can be cleared during entity drawing without having to regenerate the world ones.

Other than this the changes are mostly minor adjustments to the R_DrawTextureChains_* functions so they can work for things other than the world.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@979 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-29 08:27:22 +00:00
ewasylishen
97e9b4e473 Revert r968, optimization in R_DrawSequentialPoly. Going to try a deeper change that uses the world drawing code for bmodels.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@978 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-29 08:27:16 +00:00
sezero
63761bad8f update README files to reflect further 0.85.10 changes so far.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@977 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-27 09:15:58 +00:00
ewasylishen
9eda6a4c7d Apply Baker's fix for cross-map demo playback (http://forums.inside3d.com/viewtopic.php?f=3&t=2397).
With that alone, the console would come down and slide up when the map changes in a demo.
I added a SCR_BeginLoadingPlaque() call in CL_ParseServerInfo, only done during demo playback, which shows the loading plaque and prevents the console from appearing and sliding up.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@976 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-25 02:55:25 +00:00
ewasylishen
3f50c55d3a Revert Pa3PyX support for cross-map demos
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@975 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-25 02:55:16 +00:00
ewasylishen
b517b3d4fc cl_parse.c: hack so demos playback at the correct speed even if they contain a lot of svc_stufftext messages (e.g. one every frame).
for a test case, play a demo from: http://www.quaketastic.com/upload/files/demos/otp_honey100.zip
for the honey map pack: http://www.quaketastic.com/upload/files/single_player/maps/honey.zip
on a slow pc that gets signifigantly less than 72fps, or with host_maxfps lowered (e.g. set to 33).

with QS 0.85.9, the demo will play in slow-motion; with QS 0.85.6 (without the cross-map demo support) it plays normally.

admittedly this is a fringe scenario, but it's imo a legitimate bug in the Pa3PyX cross-map demo playback code.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@974 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-24 18:37:28 +00:00
stevenaaus
cb024b2ed5 Add links to Erics automatic win builds. (I'll also update the webpage).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@973 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-22 21:52:34 +00:00
ewasylishen
573c876d0f Fence textures: also support on world polys. From Fitzquake Mark V
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@972 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-22 01:10:58 +00:00
sezero
024abc5d82 set executable property on mkpak.sh
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@971 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-20 09:20:03 +00:00
ewasylishen
1afac37661 Fence texture support on brush models, e.g. for rmqdemo2 e1m6rq.bsp. Based on Baker's implementation in Fitz Mark V. Consistent with Fitz Mark V, RMQEngine, FTEQW rendering.
Not implemented for world polys (afaik it's useless for world polys) but could be added if needed.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@970 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-19 02:20:12 +00:00
ewasylishen
3cb4226ddc Change Cvar_Cycle_f to use Q_atof to be consistent with other cvar code. Q_atof("0.3"), a float, does not == atof("0.3"), a double.
Fixes "cycle r_wateralpha 0.3 0.6 1" not working reported by AAS.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@969 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-18 17:12:39 +00:00
ewasylishen
6e48bea4d9 r_brush.c: small optimization in R_DrawSequentialPoly; move the drawing of fullbrights to a separate function, and draw them in a separate pass through the polys of the brush mode. This reduces the amount of texture binding. The extreme case would be, e.g. 1000 polys with one texture (with fullbrights), before would require 2000 binds, after would require 2 binds. This gets part way to the performance of https://sourceforge.net/p/quakespasm/patches/14/ with much less code change
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@968 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-17 21:12:54 +00:00
ewasylishen
4f6b138921 Raise MAX_ENT_LEAFS from 16 to 32, fixes disappearing/flickering bmodels in some situations. In particular fixes an elevator in fort_driant-fullvis.bsp, and a grate (func_door) in jam1_ionous.bsp.
From what I understand, if an entity touches more than MAX_ENT_LEAFS, it will only be visible
if the player happens to be standing in one of the first 'MAX_ENT_LEAFS' (so essentially random).

See discussion of MAX_ENT_LEAFS here:
http://celephais.net/board/view_thread.php?id=60310

For more detail (mh has an alternate fix, used in DirectQ/RMQEngine, haven't looked in to what he did):
http://forums.inside3d.com/viewtopic.php?t=2376&postdays=0&postorder=asc&start=23

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@967 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-13 06:40:07 +00:00
ewasylishen
fff78c696a new fsaa support patch. commandline flag is -fsaa, cvar is vid_fsaa. cvar is only read in VID_Init, changing it prints a message that the new value will only be used upon restart
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@966 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-12 19:39:20 +00:00
ewasylishen
34bc355f9e revert r962 and r963 (first attempt at multisampling)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@965 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-12 19:25:14 +00:00
svdijk
e6c61b562b Add a Bourne Shell PAK file writer (remove qpakman dependency).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@964 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 19:59:52 +00:00
ewasylishen
faf85380af cleanup fsaa patch, from szo. removes sdl version checks because qs requires sdl >= 1.2.10
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@963 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 08:08:15 +00:00
ewasylishen
53c7b3a1e8 fsaa support, borrowing from uhexen2. cvar is vid_multisample, cmdline arg is -fsaa (inconsistent..)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@962 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-11 06:58:42 +00:00
sezero
0e53d9edfd fix broken libFLAC builds from previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@961 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 11:00:26 +00:00
sezero
4aed68b149 recompile libflac and libmodplug (again.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@960 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 07:47:33 +00:00
ewasylishen
c5690fbb78 bump MAX_EFRAGS to 4096 (from 2048) and MAX_CHANNELS to 1024 (from 512). For ijed's map - has over 500 ambient sounds, causing it to hit the channel limit, and a lot of static entities, which I guess cause it to exceed the old efrags limit. For future reference, according to mh, the efrags array can be removed entirely in glquake (http://forums.inside3d.com/viewtopic.php?t=1930) and each efrag allocated in the hunk memory.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@959 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-10 03:33:59 +00:00
ewasylishen
77b3403561 sv_aim: change default to 1 (autoaim off) and CVAR_NONE
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@958 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-07 18:47:37 +00:00
ewasylishen
55bb3124c4 Image_LoadImage: read pixel data in 1K chunks instead of calling getc in a loop
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@957 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 20:41:47 +00:00
ewasylishen
accee1263e AllocBlock: cache index of last used lightmap, start search there
Can speed up map loading by multiple seconds on levels with a lot of lightmaps, at a cost of using slightly more lightmaps (about 5% more).

https://sourceforge.net/p/quakespasm/patches/20/


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@956 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 18:22:58 +00:00
sezero
7a02718fb9 cd_sdl: add back the informative message (was accidentally reverted in r953.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@955 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 18:20:29 +00:00
sezero
d868716c4e ... apply a CD device stops workaround only for linux for now.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@954 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 17:45:22 +00:00
sezero
c89e61cc0d revert the all-platforms form of CD device stops workaround from r948/r949 ...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@953 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 17:43:45 +00:00
ewasylishen
0fe09138e0 sfx lowpass filter patch
cvar changes:

The "sndspeed" cvar / "-sndspeed" command-line option now control whether the low-pass filter is applied. If it's set to 11025 you get the low-pass filter, otherwise it's not used.

New "snd_mixspeed" cvar (and the "-mixspeed" command-line option); these default to 44100 and just control the sample rate we request from SDL. Not archived.

New “snd_filterquality” cvar, value can be 1-5. Not archived. The “5” setting closely matches the Windows resampler, and the “1” setting closely matches the OS X resampler. The default depends on the OS, “5” is used on windows builds, otherwise “1”, because I wanted the sfx to sound the same as they do with 0.85.9 on each platform. TODO is checking if a setting other than 1 sounds closer to the system resampler on linux (though it probably depends on the distro).

The lowpass filter is only used for sndspeed=11025 and snd_mixspeed=44100, though these are the defaults.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@952 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-05 05:40:34 +00:00
sezero
71c17d7e89 cd_sdl: prev and next commands must handle data tracks properly.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@951 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-04 21:20:09 +00:00
stevenaaus
cebc9431a6 'cd next', 'cd prev' commands. 'cd play' plays track 1.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@950 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-04 00:08:22 +00:00
sezero
797b3bd0f8 minor cd_sdl cleanup after r948
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@949 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-02 11:00:09 +00:00
stevenaaus
542d5fa7af Work around some CD device stops. Oz - 'CDROMSTOP ioctl causes any ioctls following immediately to fail for a considerable time'.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@948 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-02 07:51:24 +00:00
sezero
96b54ac281 remove dirent stuff from msvc project after r946.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@947 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-01 11:25:11 +00:00
sezero
7607413752 - ExtraMaps_Init: instead strstr(), directly compare the file extension bsp.
- Modlist_Init: cleanup: instead strstr(), compare the file extension pak.
 no need extra checking for "." and ".." in the inner while loop. break out
 of the inner while loop as soon as a pak file or progs.dat is found.

- ExtraMaps_Init, Modlist_Init, windows: instead of using dirent emulation,
 use windows' native FindFirstFile/FindNextFile/FindClose directly. adapted
 from fitzquake-0.85.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@946 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-08-01 11:21:54 +00:00
sezero
55a53448bd git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@945 af15c1b1-3010-417e-b628-4374ebc0bcbd 2014-08-01 11:15:58 +00:00
sezero
87ea0aa428 update README files to reflect further 0.85.10 changes so far.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@944 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 11:15:17 +00:00
sezero
0e61048c3a remove unused var
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@943 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:45:07 +00:00
sezero
03d4fbd008 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: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@942 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:33:03 +00:00
sezero
d0c12c25e0 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: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@941 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-30 09:02:25 +00:00
sezero
5e4d70f293 remove zombie USE_QS_CONBACK ifdefs
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@940 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-29 16:22:29 +00:00
sezero
c78e4879b9 fix seg...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@939 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-28 07:10:34 +00:00
sezero
f825870bae net_sys.h: update from uhexen2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@938 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 14:37:16 +00:00
sezero
512a424aac oslibs, codecs (macosx, windows): update mikmod.h from mainstream.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@937 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 08:21:01 +00:00
sezero
0e8801bb78 oslibs, codecs (macosx, windows): recompile libmodplug with several
fixes included, and midi formats, gus patches, and wav formats loading
disabled.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@936 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-20 07:56:00 +00:00
sezero
cca7a948b9 request 24-bit depth buffer / z-buffer. patch from Eric Wasylishen.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@935 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-15 07:03:56 +00:00
sezero
3f3ff65891 restore compilation with g++, some whitespace tidy-up.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@934 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:50:57 +00:00
sezero
0cf1b4cadd dynamic light speedup, patch from Eric Wasylishen, based on an earlier work by MH.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@933 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-12 07:01:58 +00:00
sezero
a46a955178 arch_def.h: update from uhexen2.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@932 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 07:06:15 +00:00
sezero
048d040ee0 support for GL_ARB_texture_non_power_of_two, patch from Eric Wasylishen.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@931 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-11 06:56:09 +00:00
sezero
18c6fc37e1 more xcode..
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@930 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-04 11:20:46 +00:00
sezero
f99fc06f36 xcode project file update
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@929 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-02 11:20:44 +00:00
sezero
95de5ce44d 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: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@928 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-01 16:25:00 +00:00
sezero
42b0b1abb3 fix typo in xcode project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@927 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-07-01 14:11:02 +00:00
stevenaaus
f9eb7662e2 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: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@926 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-29 01:22:35 +00:00
sezero
80141c555a oslibs (macosx, windows): recompile libFLAC with a bug fix patch applied
from mainstream git. (commits 6ccef14 and 2c15052.)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@925 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-28 12:50:59 +00:00
sezero
4b08a6f5fc oslibs: recompile ogg and vorbis codecs from latest and greatest
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@924 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-25 17:00:34 +00:00
sezero
b770a72872 add our old icon as QuakeSpasm-old.ico so that I can still compile with vs2005
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@923 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-22 05:56:37 +00:00
sezero
2839c6c65f ditch fmin/fmax and use plain q_min/q_max
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@922 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-22 05:50:39 +00:00
sezero
40c893ee52 revert r907 (fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@921 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 20:29:11 +00:00
sezero
5090b8b03d more project file updates.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@920 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 17:55:41 +00:00
sezero
ad8d791aca add mikmod to xcode project file. enable several extra codecs for osx and windows builds.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@919 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 15:50:09 +00:00
sezero
85cd1a5c9e oslibs, codecs (macosx, windows): recompile opus-1.0.3 with two
fixes applied from mainstream. upgrade mpg123 to latest 1.20.1.
update mikmod.h from mainstream.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@918 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-21 09:50:33 +00:00
sezero
0fde06d2b3 oslibs, codecs (macosx, windows): recompile libmodplug from latest
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@917 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-15 09:50:30 +00:00
sezero
4cc9d930f3 oslibs, codecs (macosx, windows): recompile libmodplug and regenerate some import libs.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@916 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-06-10 14:02:09 +00:00
sezero
c9469ac56f recompile libmikmod using latest stable 3.3.6 release
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@915 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-05-17 09:40:16 +00:00
sezero
9d7f78045e recompile opusfile-0.3 with commits 4668395, 49233eb, d669790, d3186ed,
fc3e5de, 773cd69, ee91177 and 6f482ef applied from mainline.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@914 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-05-17 09:03:07 +00:00
sezero
bb50e6f333 update README files
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@913 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 11:02:41 +00:00
sezero
be0b36a977 update README files
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@912 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 11:00:31 +00:00
stevenaaus
f0800fa49f Make sv_aim persistant.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@911 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-29 08:28:52 +00:00
sezero
217683f3c9 SCR_ScreenShot_f: dont bother GL_PACK_ALIGNMENT restoring
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@910 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 20:10:34 +00:00
sezero
a949e0e207 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@909 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 08:12:42 +00:00
sezero
f924896f4a gl_model.c (CalcSurfaceExtents): fix a lighting glitch due to floating point precision. patch from Eric Wasylishen.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@908 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 06:10:12 +00:00
sezero
2373b95d36 fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@907 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:50:58 +00:00
sezero
2dbd1fb411 load custom quakespasm.pak from <com_basedir> instead of id1/
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@906 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-28 05:40:28 +00:00
sezero
8ecf7ffdf0 comment out COM_DefaultExtension
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@905 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:33:05 +00:00
sezero
a40adf1e46 revert r903 and the old conback hack commits. change the engine
to load id1/quakespasm.pak for content customizations.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@904 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-27 08:28:16 +00:00
stevenaaus
c29bc2e814 Overide some old fashioned default bindings (from Eric - https://sourceforge.net/p/quakespasm/patches/17/).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@903 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 10:28:13 +00:00
sezero
bdbd0d00cc 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@902 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-26 07:50:54 +00:00
sezero
109050b311 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@901 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-24 08:10:15 +00:00
sezero
e1a715de69 osx port: update SDLMain.m from SDL hg repository/SDL-1.2 branch.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@900 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-18 16:05:59 +00:00
sezero
62d5a02ab4 progs.h: leafnums array in edict_t needs to be int, not short. patch from Eric Wasylishen.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@899 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-04-13 09:03:48 +00:00
sezero
8f245ace5e 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@898 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 07:28:11 +00:00
stevenaaus
76335a5710 A couple of limit bumps. http://www.celephais.net/board/view_thread.php?id=60452&start=721
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@897 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-25 05:08:34 +00:00
sezero
98caa07fc1 upgrade libmodplug dlls to latest 0.8.8.5 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@896 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-03-11 12:00:12 +00:00
sezero
339cd00fb7 oslibs, codecs (win, osx): upgrade libmpg123 to stable 1.18.1 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@895 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-17 18:00:25 +00:00
sezero
b3be338750 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@894 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-11 20:05:57 +00:00
sezero
23d0041af2 snd_umx: minor update from umr. minor correction to fshandle offset.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@893 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-02-11 20:00:35 +00:00
stevenaaus
6974cb91be MAX_VISEDICTS bump For BSP2, suggested by Ericw.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@892 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-30 10:07:03 +00:00
sezero
772e7e347b 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@891 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-25 20:50:25 +00:00
sezero
bf1dee9760 oslibs, codecs: recompile using latest libvorbis-1.3.4 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@890 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-24 15:50:34 +00:00
sezero
afdc8fe223 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@889 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-15 18:21:53 +00:00
sezero
5b4cdc8053 more correct export read for unreal beta, for correctness sake...
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@888 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 20:50:23 +00:00
sezero
4fe208a3cc fix umx export table read order. doesn't affect our umx playback, but correctness is good.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@887 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 18:27:33 +00:00
stevenaaus
656048c4de Sound looping bug fix from eric - https://sourceforge.net/p/quakespasm/patches/12/
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@886 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-12 02:55:04 +00:00
sezero
fabd2157d8 upgrade libmikmod to v3.3.5
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@885 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-10 10:00:27 +00:00
stevenaaus
039de0aa6a Enable wheel mouse in console (used to scroll up and down).
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@884 af15c1b1-3010-417e-b628-4374ebc0bcbd
2014-01-04 07:18:43 +00:00
sezero
a8d8bdc5c4 snd_mikmod.c: compile-time sanity checks for libmikmod version.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@883 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-27 12:00:21 +00:00
stevenaaus
e4b5964ac0 Move the sgml stuff to Linux/sgml, and update doco re gamma known-bugs.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@882 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-26 21:16:44 +00:00
sezero
6ef69df90a 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@881 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-25 09:10:28 +00:00
sezero
6cf50dfb79 osx and windows codecs: upgrade libmikmod to v3.3.4 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@880 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-12-11 14:37:24 +00:00
sezero
98c8d0426a snd_umx.c (read_typname): made technically more correct (not that it matters for our case, but still..)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@879 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-24 07:03:49 +00:00
sezero
98d172fbaf snd_umx.c: support umx files from unreal 1997/98 beta version.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@878 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-23 18:57:18 +00:00
svdijk
63e5a4c82b 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@877 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-18 10:43:54 +00:00
sezero
cf71ddf358 snd_mikmod.c: fix return type of the Seek function. snd_umx.c: update XM detection. other minor tidy-ups.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@876 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-15 18:11:31 +00:00
sezero
8b3403d9c4 upgrade libmikmod-3.3.3
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@875 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-15 17:51:09 +00:00
svdijk
591b0d2077 Minor formatting.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@874 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 17:38:03 +00:00
svdijk
ec0c150852 Some doco updates.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@873 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 17:02:35 +00:00
svdijk
530c1828f7 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@872 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-12 16:20:38 +00:00
sezero
f8c1a3dff3 codecs: update libmikmod to latest 3.3.2 release
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@871 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-10-07 09:00:51 +00:00
sezero
3596105884 add mikmod/modplug codec libs for windows and macosx.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@870 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-28 07:28:17 +00:00
sezero
dc6e3ffa9d add new stdio replacement FS_fgetc() and use it in snd_mikmod.c.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@869 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-27 19:51:26 +00:00
sezero
56c4fb2e72 replace all ctype.h functions/macros and strcasecmp/strncasecmp()
by locale-insensitive versions, new header q_ctype.h.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@868 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-25 17:01:40 +00:00
sezero
32d841af26 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@867 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-09-25 11:01:12 +00:00
sezero
b5b1bc07e1 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@866 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-08-08 12:21:40 +00:00
sezero
ab20774ddf snd_mp3.c (mp3_startread): set the missing stream->info.bits value
(for completeness only.)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@865 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-27 05:05:44 +00:00
sezero
7614b4232d 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+ssh://svn.code.sf.net/p/quakespasm/code/trunk@864 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-25 11:03:25 +00:00
sezero
dff4260c04 gl_vidsdl.c: small gamma update.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@863 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-25 09:41:28 +00:00
sezero
4812c9f03b snd_sdl.c (SNDDMA_Init): set number of samples to 4096 for sampling rates higher than 56, i.e. 96 kHz.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@862 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-24 09:28:01 +00:00
sezero
c7de779229 gl_vidsdl.c: use SDL_SetGamma() instead of SDL's GammaRamps api.
see: http://hg.libsdl.org/SDL/rev/3665bc284271
http://bugzilla.libsdl.org/show_bug.cgi?id=1979


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@861 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-24 07:00:44 +00:00
sezero
00bb0e814c snd_mp3.c (mp3_startread): don't error upon a short read
as it may be a short but still a valid file.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@860 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-23 17:01:20 +00:00
sezero
52dfafbc41 * snd_codec: store the samplebits value in the snd_info_t struct,
and add a new blocksize field to it which the flac decoder can
use. updated decoder sources for the snd_info_t changes, where
I made minor tidy-ups too, tightening several format checks and
fixing a few gotchas in snd_wave.c and snd_mem.c.
* snd_flac.c: adjusted for snd_info_t changes. no longed storing
metadata->data.stream_info in our private data, but just storing
a pointer to the stream->info structure. No longer checking the
metadata total_samples field (the FLAC__StreamMetadata_StreamInfo
doesn't seem to have any alignment or pack attributes and I don't
safe with its offset across different compilers), but added check
to make sure that we hit and parsed a STREAMINFO metadata instead,
and our new state seems just fine for validating the file.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@859 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-22 11:41:14 +00:00
sezero
c6b572d013 updated Xcode project file for fLaC music support, thanks to Kristian Duske.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@858 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-21 17:02:42 +00:00
sezero
82a6dadd70 added flac music support.
it is not enabled by default, edit the Makefile for USE_CODEC_FLAC,
or add USE_CODEC_FLAC=1 to your make command line arguments. Xcode
project file still needs updating for this.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@857 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-21 14:02:06 +00:00
sezero
9d87817232 merged the opus codec support patch
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@856 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-18 07:03:11 +00:00
sezero
82434dfbe6 oslibs: macosx, windows: recompile libopusfile, using the latest
from xiph.org git repo.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@855 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-17 12:51:34 +00:00
sezero
683c9ec2f8 oslibs:macosx,windows: recompile libopus using the latest stable v1.0.3 release
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@854 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-12 20:29:36 +00:00
sezero
9c8963999d bump default heap size to 72mb and zone size to 512kb in 64 bit builds.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@853 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-07-09 05:50:04 +00:00
sezero
a8a79c4f97 oslibs: updated msinttypes to r29 from mainstream googlecode.com
repository.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@852 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-06-24 08:10:12 +00:00
sezero
dc11a5c591 * oslibs: macosx, windows: recompile libopus using the latest stable
1.0.x branch from xiph.org git repository.
* oslibs, windows: recompile libmpg123 from latest 1.15.4 version.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@851 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-05-25 11:32:21 +00:00
sezero
f62fc10fff oslibs: macosx, windows: recompile libogg, libopus and libopusfile
using latest stable branches from xiph.org git repository.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@850 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-05-16 11:40:35 +00:00
sezero
3726fe7c54 bumped version to 0.85.10 in the development tree.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@849 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 20:25:45 +00:00
sezero
e2047a24ad support for demo recording after connection to server. (thanks to
Baker for a patch)

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@847 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 09:01:18 +00:00
sezero
59e76673ee update docs for 0.85.9 changes
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@846 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-12 07:04:18 +00:00
sezero
c2538e2ab8 recompiled libogg-1.3.0 with patch from xiph.org svn rev.18758 applied.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@845 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-10 00:22:18 +00:00
sezero
e885ba9cd3 updated svn links in the README file after the sf.net's allura upgrade
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@844 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-07 09:56:44 +00:00
sezero
46e5feb71f keys.c (Key_Message): move backspace handling before non-printable
check. (the functionality doesn't change. from tyrquake git repo.)
minor tidy-up.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@843 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-04-02 21:40:48 +00:00
sezero
472bcb8c28 r_part.c (R_EntityParticles): fix undefined behavior in the loop
init'ing avelocities, thanks to a -Waggressive-loop-optimizations
warning from gcc-4.8.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@842 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-15 12:47:08 +00:00
sezero
a48023899f gl_model.c: change the 'ignored' messages from external lit and ent
files back to developer mode.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@841 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-10 11:29:02 +00:00
svdijk
cf7c97b004 gl_vidsdl.c: minor cleanup (lets not hijack the SDL_ prefix)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@840 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-03 15:01:14 +00:00
svdijk
691edc8747 gl_vidsdl.c: some video menu code readability tweaking
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@839 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-03 13:43:11 +00:00
svdijk
a022966c63 gl_screen.c: some fov_adapt style syncing with uhexen2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@838 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:52:22 +00:00
svdijk
da36a62ee8 keys.c: comment correction
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@837 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:21:28 +00:00
svdijk
d8938a0a7f gl_vidsdl.c: be bit more lenient (and safer) regarding bpp
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@836 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 18:10:19 +00:00
svdijk
587a35a1d0 gl_vidsdl.c: fix a minor inconsistency in VID_Toggle
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@835 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 16:35:48 +00:00
svdijk
0a99f0fe44 gl_vidsdl.c: make the intel hack feedback a bit more informative
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@834 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 15:32:27 +00:00
svdijk
51dd4ecef7 gl_vidsdl.c: remove the PowerVR stuff, as it seems to be outdated
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@833 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:46:59 +00:00
svdijk
23955d2833 oops
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@832 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:13:47 +00:00
svdijk
36acbaafdd Simplify the Intel video hack, make the PowerVR hack do the same
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@831 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 13:10:02 +00:00
svdijk
61ebe5df00 remove isIntelVideo special handling, simply set gl_clear instead
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@830 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 12:31:09 +00:00
sezero
3f07757099 minor tidy-ups
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@829 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 12:03:52 +00:00
svdijk
ee3e521984 host_cmd.c: fix typo in r827
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@828 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 10:36:28 +00:00
sezero
68cc982a10 host_cmd.c (Host_Changelevel_f, Host_Restart_f): if the serverspawn
fails even with an existing map, issue a Host_Error().

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@827 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 10:29:26 +00:00
svdijk
e5ddd9a89a revert r612, fix VID_Test blackscreen properly
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@826 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-02 09:34:18 +00:00
sezero
3de9422114 fixed fitzquake's map existence check in Host_Changelevel_f () leaking
file handles which would end up in a Sys_Error () due to consuming all
free handles if many maps reside not in pak files.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@825 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-03-01 23:55:12 +00:00
sezero
7f9f48abc4 Opus decoding support (as an optional patch only.)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@824 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-28 12:55:16 +00:00
sezero
ff3ba87e02 some codec stuff syncing with uhexen2
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@823 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-27 16:50:25 +00:00
sezero
cdfcaefb32 putenv () may conform to different standards, therefore keep the vid_center[]
static char array in VID_Init ().

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@822 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 17:15:04 +00:00
svdijk
9f60c1d0f8 gl_vidsdl.c: make bpp default to current bpp
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@821 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 16:28:28 +00:00
svdijk
ea1cffb085 gl_vidsdl.c: fix an initialization oops
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@820 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:46:19 +00:00
svdijk
d8196b6a00 gl_vidsdl.c, vid.h: cleanup some modestate related stuff (requires a clean build)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@819 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:42:23 +00:00
svdijk
eb7bc0e1b7 gl_vidsdl.c: remove modelist[0] special treatment, some cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@818 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:33:30 +00:00
svdijk
593b72da23 gl_vidsdl.c: make VID_Init independent from modelist
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@817 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-24 13:23:26 +00:00
svdijk
fed26aabf1 gl_vidsdl.c: some cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@816 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-21 19:35:21 +00:00
svdijk
224d3c720c gl_vidsdl.c: fix ValidMode(), bpp < 16 is problematic on windows
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@815 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-21 19:17:18 +00:00
sezero
fde0ddf143 comment cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@814 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-20 06:22:42 +00:00
sezero
11a827d017 convert our GL_RGB lightmaps to GL_RGBA which gives considerable
performance boost on some systems. add GL_BGRA as an option, thanks
to Kristian Duske. the format is hardcoded as GL_RGBA for now,
need a way to make it configurable later.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@813 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-20 06:01:10 +00:00
svdijk
e237fdf784 gl_vidsdl.c: make VID_Restart independent from modelist
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@812 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 19:20:17 +00:00
svdijk
712f5f2631 gl_vidsdl.c: make VID_Test independent from modelist
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@811 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 19:00:19 +00:00
svdijk
e48420f0e0 gl_vidsdl.c: some cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@810 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-19 18:18:38 +00:00
svdijk
f83aa5e3cd gl_vidsdl.c: make VID_SetMode independent from "modelist"
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@809 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-18 19:19:32 +00:00
svdijk
b2b94499da gl_vidsdl.c: don't depend on "modelist" for current mode info
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@808 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-17 18:12:00 +00:00
svdijk
d6b9b5dae8 gl_vidsdl.c: get rid of "modenum"
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@807 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-17 17:58:05 +00:00
svdijk
390b8a3d86 gl_vidsdl.c: fix windowed mode
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@806 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-14 20:46:42 +00:00
svdijk
97c0873a6b rename the modestate_t enum items
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@805 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-13 19:07:19 +00:00
svdijk
f048430e5e remove "type" from "viddef_t", use "modestate" instead
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@804 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-13 19:01:26 +00:00
svdijk
d2e1e9a11d gl_vidsdl.c: remove "modenum" from vmode_t
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@803 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-11 18:13:09 +00:00
svdijk
ca11b048b4 gl_vidsdl.c: remove "modedesc" from vmode_t
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@802 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-11 18:03:14 +00:00
svdijk
073195df45 gl_vidsdl.c: get rid of obsolete "badmode"
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@801 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-10 17:30:40 +00:00
svdijk
ed95b528e9 gl_vidsdl.c: Simplification of some functions
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@800 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-09 16:10:23 +00:00
svdijk
a300b5a4ec Some "slowkey" tuning.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@799 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-03 17:22:59 +00:00
svdijk
018e09438c gl_vidsdl.c: Remove "halfscreen" stuff.
AFAICS this is not needed for SDL, and it in fact
breaks weird widescreen resolutions such as 1280x600.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@798 af15c1b1-3010-417e-b628-4374ebc0bcbd
2013-02-01 20:44:25 +00:00