Commit graph

1442 commits

Author SHA1 Message Date
Ozkan Sezer
2730798ac1 oslibs, codecs: rebuilt libopusfile from the latest 0.9 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1462 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-03 11:37:13 +00:00
Eric Wasylishen
a2fb8317cb gl_vidsdl.c: restore vid_refreshrate from fitz 0.85; SDL2 supports it
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1461 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-03 06:43:38 +00:00
Eric Wasylishen
3b5f3794cb gl_vidsdl.c: fix indentation
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1460 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-30 22:55:51 +00:00
Eric Wasylishen
9a37377cf4 gl_vidsdl.c: fix bug where vid_desktopfullscreen would get set to 1
when entering fullscreen. Fix VID_GetDesktopFullscreen() which
was incorrectly returning "true" in regular fullscreen mode.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1459 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-30 22:46:34 +00:00
Ozkan Sezer
6c885849d2 in_sdl.c: OW1.9 doesn't have powf() and sqrtf(). use pow/sqrt, instead.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1458 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 07:00:50 +00:00
Ozkan Sezer
cf26da65a3 used wrong def in r1456..
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1457 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 06:16:55 +00:00
Ozkan Sezer
005650abf4 sdl, win32, watcom: generate our own import lib instead of using vc6 lib
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1456 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 05:55:26 +00:00
Ozkan Sezer
01b01c0a13 SDL windows: move SDL_main sources into their own directory
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1455 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 05:36:30 +00:00
Ozkan Sezer
586447e449 net_wins.c: disable WSA*BlockingHook() stuff for winsock2 builds
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1454 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:35:03 +00:00
Ozkan Sezer
78ebe4ff0a add SDL2 stuff to watcom makefile
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1453 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:33:02 +00:00
Ozkan Sezer
a59f15713a windows SDL2: add watcom libs
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1452 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-29 00:32:22 +00:00
Eric Wasylishen
bb8debf18f sv_move.c: add explicit int cast to a float argument to abs().
Previously, the cast was implicit since abs() takes an int,
so there is no change in behaviour.
Suppresses a clang warning that we might want fabs().

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1451 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:25 +00:00
Eric Wasylishen
3d594fc4d4 PL_ErrorDialog: fix clang warning about format string not a literal
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1450 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:18 +00:00
Eric Wasylishen
0a5cd3c2ad Modlist_Init: fix unused variable warning
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1449 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:11 +00:00
Eric Wasylishen
7df6ca7bd1 snd_mix.c: Fix clang warnings about bit-shifting negative numbers
(which is implementation-defined)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1448 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:50:03 +00:00
Ozkan Sezer
b99a823965 noreturn functions: use the 'aborts' aux pragma with Watcom
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1447 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:11:03 +00:00
Ozkan Sezer
386cb1a720 add win32 makefile for watcom. it builds and runs.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1446 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:10:03 +00:00
Ozkan Sezer
7cea9548ce add win32 codec libs for watcom.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1445 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:05:30 +00:00
Ozkan Sezer
48e09d2d1e teach SDL_config_win32.h that Watcom has stdint.h
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1444 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:04:22 +00:00
Ozkan Sezer
be437dd258 r_alias.c: change *AttrIndex into macros instead of static const vars.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1443 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:01:19 +00:00
Ozkan Sezer
c671916fc7 sv_main.c (SV_Init): use a return instead of a dummy assignment after Sys_Error to silence compiler
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1442 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:00:56 +00:00
Ozkan Sezer
e2d1800b12 r_part.c (R_ReadPointFile_f): silence pesky compiler warnings
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1441 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 20:00:32 +00:00
Ozkan Sezer
3cf6946ebd revise the function attributes usage: do not use the gcc __attribute__
directly, but define proper macros for each attribute we do or may use.
also support MSC along the way for example with the noreturn attribute.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1440 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-28 12:50:10 +00:00
Eric Wasylishen
f13af4d0e5 in_sdl.c: raise joy_deadzone_trigger to 0.2.
Previous value of 0.001 was probably too low, may have caused
"stuck" triggers:
http://celephais.net/board/view_thread.php?id=60452&start=2935

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1439 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 22:55:08 +00:00
Ozkan Sezer
c6b7f686c8 changelog update / tidy-up.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1438 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 16:37:28 +00:00
Ozkan Sezer
72d5f11278 bump version to 0.93.0 (there has been enough changes), update changelog.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1437 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 15:56:58 +00:00
Ozkan Sezer
6793c30712 change QUAKESPASM_VER_SUFFIX to be a string literal and adjust
QUAKESPASM_VER_STRING for it.  revise the QS_STRINGIFY macros.
fixes "the not enough actual parameters for macro QS_STRINGIFY"
warnings from my VS2005.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1436 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 14:32:31 +00:00
Ozkan Sezer
d1f391b383 remove all libmodplug code
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1435 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-27 12:50:17 +00:00
Eric Wasylishen
e87a1b8d9d drop MAX_MAP_LEAFS limit and move 4 static buffers to use realloc().
4 buffers were: mod_novis, decompressed, checkpvs, and fatpvs.

Also fix fatbytes calculation in SV_FatPVS to match the other PVS
buffers, was (numleafs+31)>>3, changed to (numleafs+7)>>3.
I am assuming the previous was a bug/typo.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1434 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-26 04:27:16 +00:00
Ozkan Sezer
7e19dc2693 oslibs, codecs, xmp.h: rename EXPORT to LIBXMP_EXPORT:
EXPORT is a dangerously common name.

(patch has been sent to mainstream.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1433 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-25 14:10:12 +00:00
Ozkan Sezer
9ab6ef4d37 oslibs, codecs: rebuilt libvorbis for macosx after applying commit 68ebc89 from mainstream.
(the changeset only affects LP64 systems, so only x86_64-apple-darwin needed a rebuild.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1432 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 18:02:44 +00:00
Eric Wasylishen
f5fdc1867d raise CON_TEXTSIZE from 64KB to 1MB
useful for capturing debug info e.g. "entities" command which prints
a lot.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1431 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-22 01:56:38 +00:00
Ozkan Sezer
0978906de4 oslibs, codecs: rebuilt mpg123 for macosx and windows:
- applied fixes/updates from mainstream svn up to rev. 4304.
- fixed configury bug for i?86-apple-darwin* which prevented
  asm optimizations from being built in.
- disabled ICY parsing which we don't need at all.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1430 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-20 00:03:29 +00:00
Eric Wasylishen
1192980af2 Update changelog (not yet generated html/txt).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1429 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:41:06 +00:00
Eric Wasylishen
e24916cfc0 Add "find" as an alias for "apropos" (for consistency with MarkV)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1428 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:54 +00:00
Eric Wasylishen
737b6e9eb4 Host_Randmap_f: print the map being started
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1427 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-19 05:40:37 +00:00
Ozkan Sezer
f493939483 oslibs: rebuilt all win64 libraries with an updated toolchain.
toolchain updates include :
- applies the pseudo-reloc patch from mingw-w64 git/master (commit 1259532)
- fixes a badly merged bfd patch.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1426 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-14 00:05:35 +00:00
Ozkan Sezer
0dd7bcf524 oslibs, codecs: rebuilt mpg123 after applying two fixes from mainstream
including a fix for CVE-2017-11126.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1425 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-11 14:02:45 +00:00
Ozkan Sezer
0398877afe oslibs: update FLAC/stream_decoder.h from xiph git. rebuilt mpg123 with another fix from mainstream.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1424 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-07-03 09:47:19 +00:00
Ozkan Sezer
7a9148f551 oslibs: rebuilt libmad for windows and macosx:
- previous windows builds seem to have missed the '--disable-debugging'
  configury switch.
- used dllexport/dllimport or visibility attributes to export only the
  relevant symbols.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1423 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 22:20:15 +00:00
Ozkan Sezer
689243f132 oslibs, codecs: rebuilt libmpg123 after applying fixes from mpg123 svn
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1422 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-30 14:10:17 +00:00
Ozkan Sezer
c368e7e1dc oslibs: rebuilt ogg/vorbis for windows and macosx
- used dllexport/dllimport or visibility attributes when building vorbis
- applied commit 14920bae03 from xiph.org ogg git repo
- applied commit e5b1378996 from xiph.org vorbis git repo

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1421 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-28 11:05:57 +00:00
Eric Wasylishen
af62037fde raise MAX_MAP_LEAFS to 80000 to handle ad_sepulcher.bsp
TODO: maybe switch to malloc'ed pvs arrays now?

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1420 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-24 07:23:46 +00:00
Eric Wasylishen
ffb9692e13 Xcode project: set tab width to 8
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1419 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:09 +00:00
Eric Wasylishen
8d2d2cc8b3 host_cmd.c: Add "randmap" command, requested by Barnak
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1418 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 23:22:00 +00:00
Eric Wasylishen
50c52ae0eb Com_game_f: try execing quake.rc automatically..
Not convinced there are any issues with this, and it solves these
problems:
- change to new gamedir without execing quake.rc and exit: the
  config.cfg in the new gamedir will be clobbered with the settings
  from the previous gamedir.
- discrepancy between -game command line arg and "game" command.

Video mode is locked during the "exec quake.rc" to prevent the mode
from changing.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1417 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 22:02:49 +00:00
Eric Wasylishen
d8719d6e4f Modlist_Init: relax tests for mod directories
Consider any subdirectories of the com_basedir as mods, except for
.app bundles on posix systems. Previous code was too strict
as it required progs.dat or pak files, so it excluded map packs, etc.
(useful mods could contain almost anything, e.g. just a music directory,
just a config...)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1416 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 22:02:40 +00:00
Ozkan Sezer
3405b87ee0 pr_exec.c, MAX_STACK_DEPTH: increase from 32 to 64
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1415 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-23 15:47:01 +00:00
Eric Wasylishen
d61095a0e0 PF_lightstyle: make invalid style a warning instead of a Host_Error
Allows loading start.bsp in xmen TC again.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1414 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-22 03:32:14 +00:00
Ozkan Sezer
3bba2e7862 oslibs, codecs: rebuilt libmikmod from latest 3.3.11.1 release.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1413 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-06-21 11:15:22 +00:00