Commit Graph

1482 Commits

Author SHA1 Message Date
Ozkan Sezer fde04acd32 oslibs, codecs:
- rebuilt opusfile after applying a fix (commit dee76c9) from xiph.org git repo.
- rebuilt libmpg123 after applying a fix (svn rev. 4335) from mpg123 svn repo.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1502 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-15 14:02:48 +00:00
Eric Wasylishen e71737d35c host_maxfps: tweak warning message; > character looks weird in quake
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1501 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-13 00:04:31 +00:00
Eric Wasylishen 45f1df6112 host_maxfps: warn the player if > 72 that physics will be broken
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1500 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-12 23:27:26 +00:00
Eric Wasylishen 71d7d02eaf SZ_GetSpace: change overflow Sys_Error to Host_Error
this happens for maps that exceed the signon buffer and makes it a bit less annoying

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1499 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-12 23:12:33 +00:00
Ozkan Sezer 14e157d051 SDL2 for Windows and OSX: rebuilt from SDL hg-11493:93013728e8a3
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1498 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-11 14:40:26 +00:00
Ozkan Sezer 61deae5b67 oslibs: rebuilt SDL1.2
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1497 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-11 11:22:13 +00:00
Ozkan Sezer 63ee3643ae SDL2 for Windows and OSX: rebuilt from SDL hg-11445:8d0fb04ecb13 :
Changes since rev. 11442: the SDL_WINDOW_VULKAN constant changed.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1496 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-03 20:15:08 +00:00
Ozkan Sezer caf3f3eed7 minor warning fix.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1495 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-03 14:56:03 +00:00
Ozkan Sezer 1edb1323ff re-diffed two patches so that they apply cleanly
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1494 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-03 14:55:18 +00:00
Ozkan Sezer 050283be01 SDL2 for Windows and OSX: rebuilt from SDL hg-11442:11413fa29401 :
- Mainly includes a few Mac OS X fixes since rev. 11427, and some
  game controller updates (SDL bugs 3483, 3691, 3789, 3791, 3792.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1493 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-09-02 12:10:42 +00:00
Ozkan Sezer 5a999570e2 SDL2 for Windows and OSX: rebuilt from SDL hg-11427:381449ca1cd2 :
- Mainly includes a few Mac OS X fixes since rev. 11413.

- The Windows builds exclude the new wasapi audio feature, because it
  keeps sending AUDIO_F32LSB in the obtained.format for me.

- The x64 part of the OSX builds does include the new Vulkan support
 (I build against 10.8 SDK to target 10.6+, but I hacked && butchered
  Metal.framework headers from 10.11 SDK to play nice with 10.8 SDK.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1492 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-30 20:28:28 +00:00
Ozkan Sezer 27a34d8173 add vulkan-1.dll import libs for mingw (in case we need in future....)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1491 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-29 12:20:10 +00:00
Ozkan Sezer 998d480d62 SDL2 for Windows and OSX: rebuilt from SDL hg-11413:16fe5acdcaa7 :
- The OSX builds exclude the new Vulkan support, because it requires
  building against 10.11 or newer SDK, and I build against 10.8 SDK.

- The Windows builds exclude the new wasapi audio feature, because it
  keeps sending AUDIO_F32LSB in the obtained.format for me.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1490 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-29 12:11:17 +00:00
Ozkan Sezer 5dd794f0e9 rebuilt SDL1.2 from latest src
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1489 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 14:00:18 +00:00
Ozkan Sezer 11cdaae239 small update to SDL1.2 headers
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1488 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 11:55:45 +00:00
Ozkan Sezer 33f2c8d5c7 small update to SDL1.2 headers
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1487 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 11:34:08 +00:00
Eric Wasylishen 29a00128e1 update docs for SV_TouchLinks change
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1486 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 08:28:24 +00:00
Eric Wasylishen 7284d3d6f3 SV_TouchLinks: new workaround for touch functions that modify the
trigger linked list.

Copies the touched edicts to a hunk-allocated array first, before
running the touch functions. From QS-Spike, with some adjustments.

See: http://celephais.net/board/view_thread.php?id=60452&start=2950
and fixes: http://www.quaketastic.com/files/misc/touchlinks-test.zip

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1485 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 02:15:04 +00:00
Eric Wasylishen 94a4d55466 Revert SV_TouchLinks changes from fitzquake
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1484 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 02:15:03 +00:00
Eric Wasylishen 73123e19cb Revert "applied a better fix for the infamous "SV_TouchLinks: next != l->next" problem."
This reverts r359

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1483 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-28 02:15:02 +00:00
Ozkan Sezer df1c7ee3ff SDL2 for Windows and OSX: rebuilt from SDL hg-11347:7f254d0b7842
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1482 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-25 12:02:25 +00:00
Eric Wasylishen 6b99b37f3e SV_HullForEntity: fix misleading error message "MOVETYPE_PUSH with a non bsp model"
- change this and "SOLID_BSP without MOVETYPE_PUSH" to Host_Error (less annoying)
- print classname and origin of entity that caused the error

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1481 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-24 03:06:56 +00:00
Eric Wasylishen 79aac789be Revert "always run" changes from r797; move the QuakeSpasm customizations to a new "cl_alwaysrun" cvar.
Set to 1 to scale forward/side/up speed by "cl_movespeedkey" (usually 2), and make "speedkey" act as "slowkey".

Change "always run" menu option to offer
"off" (cl_alwaysrun 0, cl_forwardspeed 200, cl_backspeed 200),
"vanilla" (cl_alwaysrun 0, cl_forwardspeed 400, cl_backspeed 400) and
"quakespasm" (cl_alwaysrun 1, cl_forwardspeed 200, cl_backspeed 200).

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1480 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-23 06:00:20 +00:00
Ozkan Sezer 9c26054be9 avoid segfault from the 'viewpos' and 'viewtrace' commands when not
connected (e.g. right after the engine boots.)  make the 'entities'
command to only print when connected.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1479 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-20 23:15:43 +00:00
Eric Wasylishen e65466405a docs: Remove obsolete section about "game" command not execing quake.rc
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1478 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-19 01:57:54 +00:00
Eric Wasylishen 285e8d470f view.c: restore WinQuake gun position with a r_viewmodel_quake cvar (default to off).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1477 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-19 01:35:54 +00:00
Eric Wasylishen 90e51f683a W_LoadWadFile, COM_CheckRegistered: more helpful error messages
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1476 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-14 04:10:32 +00:00
Eric Wasylishen fd7a90eacb macOS launcher: fix parsing of quotes in the args text box
e.g. entering
  -basedir "/Users/ericwa/my games/quake" -game xyz
didn't work

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1475 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-14 00:42:14 +00:00
Ozkan Sezer ad0314d4ef update docs for recent changes
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1474 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-11 12:28:02 +00:00
Ozkan Sezer 2b70f3251b SDL2 for Windows and OSX: rebuilt from SDL hg-11216:908e4fe53f5a
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1473 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-11 12:05:21 +00:00
Ozkan Sezer ef3c9f708d automate SDL[2].lib generation from def file for watcom
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1472 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-10 14:02:46 +00:00
Ozkan Sezer b08e7b1168 Some more image.c / lodepng / stb_image_write clean-ups:
image.c: define LODEPNG_NO_COMPILE_CPP for lodepng.c.
image.c: define STB_IMAGE_WRITE_STATIC for stb_image_write.h
image.c: minor whitespace tidy-up.
stb_image_write.h: remove extern declaration for now non-existing
 stbi_write_tga_with_rle (missed in commit r1468).
stb_image_write.h: comment out stbi_write_jpg_to_func() which quakespasm
 doesn't use.
lodepng.c (lodepng_save_file): remove unneeded (char*) cast from buffer.
lodepng.c (lodepng_read32bitInt): make it static.
lodepng.c (lodepng_get_raw_size_lct): make it static, and move below to
 the place it is actually used.
lodepng.c (lodepng_info_swap): remove (unused function).
lodepng.c (readChunk_zTXt,readChunk_iTXt,addChunk_zTXt, addChunk_iTXt):
 add missing const to casts on const pointers in zlib_compress() calls.
 (see: https://github.com/lvandeve/lodepng/pull/34).
lodepng.c (inflateHuffmanBlock): wrong error code if huffmanDecodeSymbol
 fail. (see: https://github.com/lvandeve/lodepng/pull/52).

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1471 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-09 20:00:08 +00:00
Ozkan Sezer aaa629d2fc rebuilt mpg123 for windows and macosx with updates from mainstream:
- id3 fix for bug 254,
- x86asm no-textrels changes.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1470 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-09 14:57:00 +00:00
Ozkan Sezer 9bf21b932f Makefiles: replace '$^' with '$<' in build rules. add dependency list for image.o.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1469 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-09 12:10:13 +00:00
Ozkan Sezer 1e728fa2ad - stb_image_write.h: keep only the jpg writer, the only thing we use
in quakespasm, and remove all others.
- image.c: disable decoder, ancillary chunks and error text support
  by defining the relevant LODEPNG_NO_??? macros.
  (Image_WritePNG): make use of upsidedown parameter for symmetry
  with Image_WriteJPG(). print an error message in case of encoding
  failure if error text support is enabled.
  (Image_WriteSTB): rename to Image_WriteJPG, adjust for jpg writing
  only. remove the old Image_WriteJPG wrapper.
  (enum imageformat_t): remove.
  (CopyFlipped): constify the data parameter.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1468 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-09 11:33:44 +00:00
Eric Wasylishen f364c9864c Image_WritePNG: switch to lodepng, configure for fast compression
~3x faster than stb_image_write and similar file size

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1467 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-09 06:23:42 +00:00
Ozkan Sezer 1eb57d8cbe stb_image_write.h: fix build with watcom
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1466 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-08 09:37:06 +00:00
Eric Wasylishen 4a02827fe6 SCR_ScreenShot_f: change default format to png, using stb_image_write
Add optional format and quality args to "screenshot" command,
can specify tga, png, jpg

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1465 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-08 05:07:56 +00:00
Ozkan Sezer 10ed2c85dc kill annoying warnings. remove commented pakfile/progs.dat testing code from Modlist_Init().
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1464 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-04 20:36:59 +00:00
Eric Wasylishen 6b2affaebc r_alias: add MF_HOLEY (0x4000) model flag, from QSS.
(MarkV compatible).
For more info see: http://celephais.net/board/view_thread.php?id=61351&start=1&end=1

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1463 af15c1b1-3010-417e-b628-4374ebc0bcbd
2017-08-04 19:45:11 +00:00
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