Commit Graph

1321 Commits

Author SHA1 Message Date
Ozkan Sezer 50402836c4 rebuilt SDL2 for windows and macosx after applying the following
changesets from the SDL mercurial repo:
http://hg.libsdl.org/SDL/rev/17e0ded12e6f
http://hg.libsdl.org/SDL/rev/26104a670291
http://hg.libsdl.org/SDL/rev/3134026517cb
http://hg.libsdl.org/SDL/rev/cb13d22b7f09
http://hg.libsdl.org/SDL/rev/a64e365c1e38
http://hg.libsdl.org/SDL/rev/42768c568a50
http://hg.libsdl.org/SDL/rev/61a87b05c0b5
http://hg.libsdl.org/SDL/rev/7b037d1387a0


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1341 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-09-05 19:15:13 +00:00
Ozkan Sezer c0b9eab645 meh..
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1339 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-23 11:47:12 +00:00
Ozkan Sezer 7bd55010d7 documentation updates
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1338 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-23 11:37:21 +00:00
Ozkan Sezer ad055bf6fd minor updates to some files from uhexen2 (for sake of symmetry between the two trees.)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1337 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-23 11:24:24 +00:00
Ozkan Sezer 633f009252 Fix out of bounds access to keybindings: K_PAUSE is 255. Noticed by Axel Gneiting (bug #14).
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1336 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-21 17:37:21 +00:00
Ozkan Sezer 334443713a oslibs, codecs: rebuilt libmikmod from upstream hg repo.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1335 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-12 20:21:11 +00:00
Ozkan Sezer 56c2e44b87 snd_mikmod.c: we don't truly need the high-quality mixer. (and it's slow too...)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1334 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-08-08 04:04:14 +00:00
Eric Wasylishen b683cd2fcd Fix for large menu scale factors, broken in r1293
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1333 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-20 04:15:02 +00:00
Ozkan Sezer 635eb04758 oslibs, codecs: rebuilt opusfile for osx and windows from the latest 0.8 release from xiph.org.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1332 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-16 09:50:04 +00:00
Ozkan Sezer 92422079f7 oslibs: rebuilt FLAC decoder for osx and windows.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1331 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-15 14:56:15 +00:00
Ozkan Sezer a3ffc0011b oslibs, codecs: rebuilt FLAC decoder for windows and osx.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1330 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-11 07:20:03 +00:00
Ozkan Sezer d0bca18060 changed version to 0.92.1 for future development
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1329 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-02 05:41:25 +00:00
Ozkan Sezer 99107903fc minor doco edits
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1327 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-01 07:00:02 +00:00
Steven 2cb8405691 .. and html and txt files.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1326 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-01 05:02:55 +00:00
Steven add2d21206 Doco tweak.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1325 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-07-01 04:34:51 +00:00
Ozkan Sezer d1becb553e minor whitespace adjustments in Quakespasm.txt
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1324 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-27 16:37:33 +00:00
Eric Wasylishen 25417621eb docs: add Controller Support section
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1323 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-27 03:45:49 +00:00
Eric Wasylishen 7897f0700e in_sdl.c: make new joy_* cvars CVAR_ARCHIVE
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1322 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-26 23:37:41 +00:00
Ozkan Sezer 60353350e5 minor CodeBlocks project file fixes
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1321 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-25 17:01:17 +00:00
Ozkan Sezer 2cdb92e63b just remove the if0'ed part..
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1320 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-25 05:24:11 +00:00
Ozkan Sezer 9c7eb2c6ff Host_Loadgame_f(): no need for entnum >= sv.max_edicts check
because EDICT_NUM() does it already. also move ent->free=false
statement to partial zero-fill case.
Host_ClearMemory(): remove check before free(sv.edicts)
SV_Init(): initialize sv.edicts to NULL (just paranoia)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1319 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-25 05:21:22 +00:00
Ozkan Sezer de4bea0e74 Loadgame_f() may go past sv.num_edicts, but it does not go through
ED_Alloc(), therefore such ents will have uninitialized members.
This used to lead to bad crashes with e.g. Rubicon Rumble Pack maps
since svn r1286 when we began allocating sv.edicts using malloc and
only zero-filling when necessary.  So, check against sv.num_edicts
and zero-fill the ent properly when necessary.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1318 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 16:04:25 +00:00
Ozkan Sezer 5734c934a7 initial documentation of 0.92.0 changes
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1317 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 11:00:39 +00:00
Ozkan Sezer e1c26de7fb silence pesky warnings from old compilers
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1316 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 07:40:08 +00:00
Ozkan Sezer 301630d8ac change version to 0.92.0
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1315 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 07:04:11 +00:00
Eric Wasylishen 3261dd1213 add -protocol [15/666/999] command line flag, patch from szo
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1314 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 06:15:47 +00:00
Eric Wasylishen 5b21d5935f RMQ protocol (999) support, adapted from RMQEngine
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1313 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 06:15:41 +00:00
Eric Wasylishen 316de63f98 limit increases to handle oms3 map pack.
MAX_MAP_LEAFS: 65535 -> 70000
MAX_LIGHTMAPS: 256 -> 512

TODO: maybe drop static arrays based on MAX_MAP_LEAFS like, see R_InitVisCache in RMQEngine.
TODO: dynamically allocate the static `lightmaps` array as well; with this last limit increase it's 32MB.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1312 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-24 06:15:33 +00:00
Ozkan Sezer 623f8c6698 bgmusic.c (BGM_UpdateStream): avoid a possible endless loop.
(just a paranoid safeguard, shouldn't happen in real life.)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1311 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-23 08:03:43 +00:00
Ozkan Sezer 0ff9c26db7 oslibs: rebuilt libFLAC decoder for windows and macosx.
(the x86-macosx build is now made with x86 asm enabled,
using nasm-2.12.02rc7 and the patch from
http://lists.xiph.org/pipermail/flac-dev/2016-June/005933.html
by lvqcl. seems to work for me on my 10.6.8)

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1310 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-12 20:10:11 +00:00
Ozkan Sezer 917543bc50 sv_user.c: partially revert svn commit r182, move wishdir and wishspeed
from global to local context, and pass them as params to SV_Accelerate()
and SV_AirAccelerate().

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1309 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-11 05:36:05 +00:00
Eric Wasylishen 5660094d1d host_cmd.c: add new "setpos" command.
developer cheat to teleport to a given origin, optionally looking in a given direction.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1308 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-06-07 07:08:23 +00:00
Ozkan Sezer 33fe493c89 sync net_sys.h with the uhexen2 tree.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1307 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-05-31 20:01:09 +00:00
Ozkan Sezer 3104464c0d rebuilt SDL2.0.4 for windows and osx after applying fixes/updates from mainstream:
- Windows: Fix other window positions/sizes being changed when exiting exclusive
  fullscreen (bug #3315.)
- Fixed a 'dead keys' issue on international keyboards (bug #3332, patch not yet
  applied to SDL hg repo.)
- Fixed infinite timeout in SDL_WaitEventTimeout()  (SDL hg rev. 10106)
- Mac: avoid calling CGSetLocalEventsSuppressionInterval, it was deprecated in
  OS X 10.6. (SDL h2 revs. 10122 and 10158)
- Cocoa mouse code: Replaced NSPointInRect with NSMouseInRect (bug #3312.)
- Windows: make sure SDL_TicksInit has been called before calling Sleep(ms) in
  SDL_Delay. This ensures the Windows system timer resolution is properly set
  before Sleep is called.  (SDL hg rev. 10067)
- Fixed console_wmain in SDL_windows_main.c does not null terminate the argument
  list it is creating. (bug #3338, patch not yet applied to SDL hg repo.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1306 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-05-25 20:11:37 +00:00
Ozkan Sezer cbba651746 rebuilt SDL1.2 for windows after applying fixes/updates from mainstream:
- Fix other window positions/sizes when exiting fullscreen (bug #3315.)
- Fix a 'dead keys' issue on international keyboards (bug #3332, patch
not yet applied to SDL hg repo.)


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1305 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-05-25 20:10:42 +00:00
Eric Wasylishen 759aa803d1 CL_Tracepos_f: fix wrong trace endpoint (developer function added in Fitzquake)
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1304 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-05-21 19:50:03 +00:00
Ozkan Sezer 3b158e0e5f oslibs, windows: rebuilt libFLAC dll for x86 windows with __USE_MINGW_ANSI_STDIO=0
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1303 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-05-13 22:25:50 +00:00
Ozkan Sezer f07ac29c0b fix C++11 -Wliteral-suffix warnings. fix -Wnarrowing errors/warnings.
fix the detestable in_sdl.c/SDL2 int-to-enum conversion failure errors
from g++.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1302 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-29 20:00:50 +00:00
Ozkan Sezer f3af6bf791 Fixed -Wmisleading-indentation warnings from new gcc6.
The warning from gl_model.c:Mod_LoadTextures() seemed
like a real bug: Eric please check and confirm.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1301 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-28 21:47:12 +00:00
Ozkan Sezer 55e4763cb5 rebuilt 32 bit win32 version of libFLAC dll more compatibly
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1300 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-24 17:56:39 +00:00
Ozkan Sezer 5af28b2121 windows: use target-specfic flags for gcc too (-m32/-m64). hmph..
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1299 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-18 14:01:55 +00:00
Ozkan Sezer f22eed7f57 use specific target flags with windres (pe-i386/pe-x86-64 for w32/w64),
just in case the compiler toolchain is a multilib one.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1298 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-04-17 19:10:01 +00:00
Eric Wasylishen 39a6b46713 in_sdl.c: lower default controller deadzone to 0.175. refactor a bit, fix clamping of look axis vector length.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1297 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-03-09 04:42:44 +00:00
Eric Wasylishen f8ccd07420 in_sdl.c: IN_StartupJoystick: do SDL_INIT_GAMECONTROLLER before SDL_GameControllerAddMappingsFromFile, to match the sdl testgamecontroller tool
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1296 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-03-03 23:01:44 +00:00
Eric Wasylishen dfcaa52260 in_sdl.c: improve error messages when opening joysticks
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1295 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-03-03 21:38:58 +00:00
Eric Wasylishen e007e35e6d in_sdl.c: fix spurious "-1 mappings loaded from gamecontrollerdb.txt" message
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1294 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-03-02 00:04:25 +00:00
Eric Wasylishen dc2218b9c8 SDL2 Game Controller support
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1293 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-03-01 21:58:08 +00:00
Eric Wasylishen 9c9facfe7b gl_vidsdl.c: add vid_borderless cvar for getting a borderless window
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1292 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-02-26 20:18:27 +00:00
Eric Wasylishen 185f2f2883 R_UpdateWarpTextures: workaround osx 10.6 driver bug when using FSAA, reported by Barnak.
R_Clear only clears the warpimage part of the screen, leading to an unplayable
HOM effect on the rest of the screen.

The workaround is calling GL_SetCanvas(CANVAS_DEFAULT); at the end of
R_UpdateWarpTextures, it should be harmless enough on other systems, so not sure
if it's worth making this workaround conditional.

My guess is glClear in this implementation is wrongly using glViewport as the
area to clear.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1291 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-02-26 07:37:00 +00:00
Eric Wasylishen 150be12da1 Contrast support with a "contrast" cvar, behaving the same as MarkV's.
It may be a useful alternative to the existing gamma control for laptops in a bright environment, etc.
(raising contrast gives less of a gray/washed out look than raising gamma, but as a disadvantage, colours near white get clipped to white.)

It's also implemented for both GLSL and SDL gamma ramps, but only if USE_GAMMA_RAMPS is set to 1.
Since USE_GAMMA_RAMPS  is 0, currently it only works with GLSL.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1290 af15c1b1-3010-417e-b628-4374ebc0bcbd
2016-02-12 23:26:36 +00:00