Commit graph

699 commits

Author SHA1 Message Date
sezero
666482998d killed all references to Draw_BeginDisc
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@357 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 23:28:08 +00:00
sezero
4fe7392307 sync several sound-related files with uhexen2 a little: move
DEFAULT_SOUND_PACKET_VOLUME and DEFAULT_SOUND_PACKET_ATTENUATION
from sound.h to protocol.h. remove unused gamealive, soundalive
and splitbuffer members from the dma_t structure. make SNDDMA_Init()
to take a dma_t* parameter and make sn static to snd_dma.c. copy
over LordHavoc's S_StartSound skip calculation fixes from uhexen2.
make many functions/data static to their respective files. many
whitespace/formatting clean-ups.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@356 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 21:10:26 +00:00
sezero
dd816153ba backports from uhexen2 source, preparing for streaming music support:
* snd_mix.c: Increased PAINTBUFFER_SIZE from 512 to 2048.
* snd_mix.c: snd_vol is static now. it is calculated in S_PaintChannels and
  only used in SND_PaintChannelFrom16. all its other uses are removed from
  Snd_WriteLinearBlastStereo16, S_TransferStereo16, S_TransferPaintBuffer.
  The way it was, the sound volume was applied to the whole final contents
  of the paint buffer, but with this new quake2+ way we can add raw samples
  to the paint buffer with its own volume, such as bgmvolume. However, this
  makes the snd_scaletable to be recalculated everytime the sfxvolume is,
  changed, therefore it is adjusted that way to incorporate sfxvolume.
* snd_mix.c: In S_PaintChannels, check against s_rawend and copy from the
  streaming sound source if necessary.
* snd_dma.c: Added old_volume to detect sfxvolume changes. Made S_Update to
  compare it to sfxvolume.value and call SND_InitScaletable() if it changed.
* snd_dma.c: Add new globals s_rawsamples and s_rawend. Reset s_rawend to 0
  in S_ClearBuffer. Add new function S_RawSamples, adapted from quake2 with
  its 8 bit stereo playback fixed.
* snd_dma.c (S_FileExtension): Add new function which returns the given
  sound file's extension including the dot, or NULL.
* q_sound.h: Add new macro MAX_RAW_SAMPLES, defined as 8192. Add externs
  for new globals s_rawsamples and s_rawend. Add prototype for the new
  S_RawSamples and S_FileExtension functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@355 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 17:11:28 +00:00
sezero
1a98434926 added windows version detection back from original sources
with extra bits from uhexen2. we may use the information some
day.. (or not..)


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@354 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 17:00:19 +00:00
sezero
3338df6a52 backports from uHexen2 tree:
* common.c, common.h: Added new structure fshandle_t. Added new procedures
  FS_fread, FS_fseek, FS_ftell, FS_rewind, FS_feof, FS_ferror and FS_fclose.
  The new FS_*() stdio replacements are necessary if one is to perform non-
  sequential reads on files reopened on pak files because bookkeeping about
  file start/end positions is needed. Allocating and filling in the fshandle_t
  structure is the users' responsibility when the file is initially opened.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@353 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 16:50:15 +00:00
sezero
c01c80e271 added file_from_pak as a new flobal, made COM_FindFile() to set it properly.
from quakeworld sources.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@352 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 16:35:16 +00:00
sezero
9622872f74 Minor cd_sdl.c cleanups from uhexen2. Reorganized cdaudio volume
handling. If volume is 0, don't bother advancing and pause.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@351 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 14:55:25 +00:00
sezero
8cdb3fb5a6 snd_mem.c updates from uhexen2 :
* q_sound.h: add WAV_FORMAT_PCM as a new macro, defined as 1.
* snd_mem.c (S_LoadSound): use WAV_FORMAT_PCM. reject wav files which are
  neither 8 nor 16 bit. reject wav files which have zero samples. report
  the wav file name with the error messages so that they mean something.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@350 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 14:39:12 +00:00
sezero
9d80c23b5d renamed sound.h to q_sound.h
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@349 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 14:30:52 +00:00
sezero
323ad114e2 gl_vidnt.c, gl_vidsdl.c: Reformatted GL_CheckExtensions for better readability,
removed the old unused CheckArrayExtensions.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@348 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-26 22:10:44 +00:00
sezero
3ac8995ecd * sv_main.c (SV_WriteEntitiesToClient): the protocol check must be against
sv.protocol, not sv_protocol.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@347 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-11-23 06:48:02 +00:00
sezero
eb2e4b809b SDL_putenv() is problematic in versions <= 1.2.9 so replaced it with plain putenv().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@346 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-11-12 15:51:04 +00:00
sezero
6ba9db8882 menu.c: restore the screen size menu item that was removed in rev. 125.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@345 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-29 13:03:04 +00:00
sezero
4d5c581a3b cmd.c: Fix the unalias command.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@344 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-24 14:15:27 +00:00
stevenaaus
bd1033d5db more max_edicts stuff (from Sander)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@343 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-24 07:57:46 +00:00
stevenaaus
23b162c6dc Bump max_edicts for compatibility with WarpSpasm
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@342 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-23 21:50:16 +00:00
sezero
75bd7f7637 * snd_mem.c: Remove prototype for non-existant function S_Alloc().
Remove unused global cache_full_cycle. Comment out unused function
DumpChunks().


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@341 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-18 20:39:10 +00:00
sezero
b8be0f11ff increased default zone memory size to 384kb
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@340 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-11 18:06:11 +00:00
sezero
705ef5855b cmd.c (Cmd_Alias_f): replace another occasion of Z_Malloc() + strcpy() by Z_Strdup().
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@339 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-10-04 07:40:12 +00:00
stevenaaus
9721e1aa39 Add quake retexturing project patch
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@338 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-22 09:03:22 +00:00
sezero
7e3d5adcae * console.c, sbar.c: fixed a few format string issues.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@337 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-20 08:27:20 +00:00
kristianduske
ccb5cb9d18 Added version information to launcher window.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@336 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-20 08:11:33 +00:00
kristianduske
d59408ee89 Changed signing scripts to use stock openssl over the macports version. Signing and automatic updates now work on OS X.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@335 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-20 06:24:15 +00:00
kristianduske
1e6627e69c Updated bundle version and strings to 0.85.4.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@334 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 16:01:31 +00:00
kristianduske
3d21076d43 Cleaned up two symlinks.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@333 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 15:40:49 +00:00
kristianduske
b741377574 Added Sparkle framework to SVN again. Hope the stupid symlinks don't cause trouble again.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@332 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 11:46:03 +00:00
kristianduske
8e823b4695 Better Sparkle Update GUI (less intrusive).
Removed Sparkle Framework to sort out SVN problems, will re-add with next commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@331 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 11:36:13 +00:00
sezero
4016b37f23 bumped version to 0.85.4 in the development tree.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@330 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 09:11:38 +00:00
stevenaaus
e471c4422b Fix download links in doco
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@328 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 01:37:19 +00:00
stevenaaus
767f5f5375 Minor doco update for 0.85.3 release
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@327 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-19 01:24:11 +00:00
kristianduske
d8df9d2b4a Change build architecture to universal PPC/x86/x86_64.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@326 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-18 09:15:22 +00:00
kristianduske
5f57799bc4 Disabled automatic updates through Sparkle for now due to signing problems.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@325 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-18 09:01:16 +00:00
kristianduske
fd4f59cb0a Preparations for 0.85.3 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@324 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-17 13:00:00 +00:00
kristianduske
daf357befd Removed Sparkle keys from repository.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@323 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-17 10:42:00 +00:00
sezero
714e73add2 fix dangling symlinks
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@322 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-01 10:15:49 +00:00
sezero
5d4bb6c0a4 makefile comment tweaks
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@321 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-09-01 06:10:21 +00:00
sezero
b54c1040a1 replaced all usess of vsprintf by q_vsnprintf
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@320 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-31 16:57:12 +00:00
sezero
b5d7f1ef97 added q_snprintf and q_vsnprintf from uhexen2. always use our wrapper
versions to ensure consistent behavior accross platforms.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@319 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-31 14:09:00 +00:00
sezero
23637a82b3 host_cmd.c: minor tidy up, nothing serious.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@318 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-31 12:15:38 +00:00
sezero
2d952fe015 host_cmd.c (Host_Say_f, Host_Tell_f): adjustments, mostly inspired from
the darkplaces engine.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@317 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-31 11:55:55 +00:00
sezero
b7b6625e9c updated dirent.[ch] from mingw-w64.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@316 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-30 13:50:28 +00:00
sezero
0990db97a8 fixed lazy declaration and cleaned up the .bsp extension removal logic.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@315 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-30 02:51:21 +00:00
sezero
92d29b5a15 remove the defunct cls.mapstring
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@314 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-30 02:15:22 +00:00
stevenaaus
f37e8be035 Remove any trailing ".bsp" from mapname
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@313 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 23:03:50 +00:00
stevenaaus
95c62ee9c6 End of the world commit
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@312 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 21:37:07 +00:00
sezero
73b95ba2f1 moved CodeBlocks and Visual Studio project files under their own directories.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@311 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 17:51:38 +00:00
sezero
b454aba60c pr_edict.c (PR_LoadProgs): silenced a minor compiler warning after the const changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@310 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 17:50:20 +00:00
sezero
42a62b702c manual update of CodeBlocks project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@309 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 16:56:00 +00:00
sezero
ec13eb2079 CDAudio_Next() and CDAudio_Prev() aren't public to the engine and do not
belong in a placeholder like cd_null.c.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@308 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 16:02:55 +00:00
sezero
8e3a7b318b more fixes for deprecated conversion from string constant to char*:
handle the -safe command line switch using a new global safemode,
check for safemode in the related driver init functions and remove
the safeargvs & co from common.c and COM_InitArgv().


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@307 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-08-29 12:55:41 +00:00