Denis Pauk
a57b1f9be0
use only allocated edges
2018-07-22 16:50:44 +03:00
Yamagi
d429c91270
Merge pull request #309 from rg3/ogg_enable_fix
...
Fix segfault in OGG_PlayTrack when ogg_enable is set to zero
2018-07-16 16:03:35 +02:00
Ricardo Garcia
d425f40eb6
Fix segfault in OGG_PlayTrack when ogg_enable is set to zero
2018-07-15 09:33:58 +02:00
Yamagi Burmeister
53c6c8fbad
Bump version number to 7.30pre.
2018-07-14 09:39:31 +02:00
Yamagi Burmeister
75300795bd
Bump the version number to 7.21.
2018-07-14 09:38:10 +02:00
Yamagi Burmeister
3b49a66556
Update the CHANGELOG for 7.21.
2018-07-14 09:35:47 +02:00
Yamagi Burmeister
176f95cc7c
Enable backtrace printing on FreeBSD.
...
FreeBSD has supported printing backtraces for years. The API is the same
as on Linux, the only difference is that libexecinfo must be linked as a
seperate library. Since the last FreeBSD version with backtrace support
(FreeBSD 9.3) went out of support some time ago unconditionally enable
the printing.
2018-07-13 14:32:31 +02:00
Yamagi Burmeister
412dfe50b3
Clarify that -portable forces the binary dir as configuration dir.
2018-07-12 19:26:13 +02:00
Yamagi Burmeister
6d014cb21b
Bring the README.md up to date:
...
* Clarify some things.
* Mention GOG.com music compatiblity.
- Always use full links and print them.
2018-07-12 19:19:07 +02:00
Daniel Gibson
a651c23021
commandline argument --help that documents most important arguments
...
quake2 --help, -h, -help, -? and /? now show the most important
commandline arguments
2018-07-10 21:46:57 +02:00
Daniel Gibson
eb259d0c02
Exit game if loading fallback renderer failed
...
If loading gl3 fails, the game tries gl1 instead.
If that fails as well, the game should quit. Now it does.
2018-07-10 21:46:53 +02:00
Yamagi Burmeister
d96a46dc1f
Fix stupid bug when scaling the chat input.
...
The vertical offset must be multiplied with the scale. And not the
scale added onto it... This fixes issue #306 .
2018-06-25 09:41:57 +02:00
Yamagi Burmeister
091e1834eb
Use _wfopen() instead of _wfopen_s to stay compatible with Win XP.
...
I've used _wfopen_s() because it's newer and the older variants are said
to throw warning when build with MSVC. But apparently Windows XP hasn't
got that symbol... So just use the normal _wfopen(), MSVC is unsupported
anyways. The may or may not enough to restore Win XP compatibility.
2018-06-25 08:16:09 +02:00
Yamagi Burmeister
1f4e90e0d3
Don't restart music if track 0 is requested and ogg_ignoretrack0 set.
2018-06-12 19:28:13 +02:00
Yamagi Burmeister
9cf029182a
Fix playback when cd_shuffle is 1
...
Until now, likely since we first introduced OGG/Vorbis playback 9 years
ago, in about 50% of all cases OGG_PlayTrack() was never called if
cd_shuffle was set 1, resulting in missing background music. Add the
missing call. :)
2018-06-12 18:52:36 +02:00
Yamagi Burmeister
653d2bad80
Fix build.
...
I wonder why I didn't catch this in sunday. For some reason a "make
clean ; make" cycle was necessary. Maybe a corner case that the header
dependencies didn't catch?
2018-06-12 18:42:21 +02:00
Yamagi Burmeister
a4e8932deb
Fix build when -DOGG is not given.
2018-06-12 18:22:35 +02:00
Yamagi Burmeister
4a602227d1
Fix shuffle playback and it's menu integration.
2018-06-12 18:22:35 +02:00
Yamagi Burmeister
2406597356
Mark everythings that's local to ogg.c as static.
2018-06-12 18:22:35 +02:00
Yamagi Burmeister
b586f84a3a
Combine the various ogg_* commands into a single "ogg" cmd.
...
While here remove unecessary ogg_init and ogg_shutdown commands. And
some more cleanup.
2018-06-12 18:22:35 +02:00
Yamagi Burmeister
750b37f288
Some general cleanup to the vorbis backend.
...
* Remove unneccessary global variables.
* Simplify initialization.
* Reorder functions.
2018-06-12 18:22:35 +02:00
Yamagi Burmeister
c2525a1e53
Remove lying comment. We don't rely on on DOS filenames anymore.
2018-06-12 18:22:35 +02:00
Daniel Gibson
8643c843ef
Sys_IsDir() and Sys_IsFile() for Windows
...
I guess now the refactored Ogg/Vorbis code should work on Windows too.
Someone should test that though..
2018-06-12 18:22:35 +02:00
Daniel Gibson
c3af040f0c
More ogg/vorbis refactoring, supports GOG-style tracks now
...
also removed lots of code.
Windows support still missing, needs Sys_IsDir() and Sys_IsFile().
2018-06-12 18:22:35 +02:00
Daniel Gibson
c37a28428e
FS_GetNextRawPath() to iterate fs_rawPath
...
this allows iterating all paths we look in for game data, but *without*
the game dir ("baseq2/", "xatrix/" ...) itself
2018-06-12 18:22:35 +02:00
Daniel Gibson
781e7c7e12
1. step in OGG refactoring: add OGG_PlayTrack(int track), remove others
2018-06-12 18:22:35 +02:00
Yamagi
ed6c9865f0
Merge pull request #304 from smcv/speling
...
sdl/input: Fix spelling and grammar in a log message
2018-06-12 13:46:44 +02:00
Yamagi
3f935bba79
Merge pull request #303 from smcv/overridable-pkg-config
...
Make uses of pkg-config cross-compilation-friendly
2018-06-12 13:45:29 +02:00
Simon McVittie
c61e2983fc
sdl/input: Fix spelling and grammar in a log message
...
The misspelling of "controller" was detected by Debian's Lintian tool.
Signed-off-by: Simon McVittie <smcv@debian.org>
2018-06-12 12:17:35 +01:00
Simon McVittie
a0e86c3c36
Make uses of pkg-config cross-compilation-friendly
...
Signed-off-by: Simon McVittie <smcv@debian.org>
2018-06-12 12:10:32 +01:00
Yamagi Burmeister
6d60ca0919
Explain the difference between the 2 executables.
...
This fixes issue #297 .
2018-06-07 15:40:29 +02:00
Yamagi Burmeister
8e1f8fc7c6
Deprecate SDL 1.2.
...
We're going to remove support for SDL 1.2 shortly after the next
release. Give the last remaining users a very clear warning about
it, error out at force them to edit the code.
2018-06-07 07:39:20 +02:00
Yamagi Burmeister
bb146a8384
Remove unused LIBGL define.
2018-06-07 07:19:02 +02:00
Yamagi
c8fefdc18c
Merge pull request #293 from 0lvin/warp_review
...
#292 Warp fixes
2018-06-01 09:43:07 +02:00
Denis Pauk
e5ef665e09
Use more short code in *EdgeSearch
2018-05-20 13:55:04 +03:00
Denis Pauk
466364589d
Use constants for x/y/z shifts
2018-05-20 13:55:04 +03:00
Denis Pauk
2412363001
Add some comments from Fabien Sanglard article
2018-05-20 13:55:04 +03:00
Denis Pauk
1ea3fdc1a2
We have enough memory, skip Com_PageInMemory
2018-05-20 13:55:04 +03:00
Denis Pauk
b0b0265e4b
Move Surf Search to separate functions
2018-05-20 13:55:04 +03:00
Denis Pauk
4fd37b73ca
Define NUM_MIPS=4 instead hardcoded value
2018-05-20 13:55:04 +03:00
fabiensanglard
184ff91453
Added Unreal kernel filtering.
2018-05-20 13:55:04 +03:00
Denis Pauk
96a81f64f9
little speed up
2018-05-20 13:55:04 +03:00
Denis Pauk
56ea94978d
[-pedantic] fix compilation waring about static array initialization
...
warning: string length ‘16384’ is greater than the length ‘4095’
ISO C99 compilers are required to support [-Woverlength-strings]
2018-05-20 13:55:04 +03:00
Denis Pauk
f48e3e5b4d
Use real height/width instead warp dimensions
2018-05-20 13:55:04 +03:00
Yamagi
3adb4a62d7
Merge pull request #294 from devnexen/addrinfo_leak_fix
...
- Fix addrinfo leaks.
2018-05-01 15:29:06 +02:00
David Carlier
2f0c2f8981
- Fix addrinfo leaks.
2018-05-01 10:17:20 +00:00
Daniel Gibson
1e3135d4fc
r_gunfov shouldn't be CVAR_USERINFO, only CVAR_ARCHIVE
...
this happens when you just copypaste and adapt r_lefthand
also did some minor changes to R_AliasDrawModel in the soft renderer
to make sure alias[xy]scale is reset properly in the early out cases
2018-04-27 23:42:27 +02:00
Daniel Gibson
12a8da7180
r_gunfov for the software renderer
2018-04-21 21:35:13 +02:00
Daniel Gibson
c59c1bfda1
Fix Rogue heatbeam rendering at high FOVs
2018-04-21 20:19:42 +02:00
Daniel Gibson
a5e97682a3
Weapon field of view independent of 'fov': r_gunfov cvar
...
At high 'fov' values the weapon looked quite distorted.
Now it's rendered with an independent FOV, which looks better.
Note that the 'fov' cvar sets fov_x, while this is based on fov_y
(which is calculated from fov_x), so it's indeed different values:
r_gunfov seems to correspond to fov 90.
We use r_gunfov 80 as default, because it looks better.
2018-04-21 18:23:32 +02:00