Commit graph

770 commits

Author SHA1 Message Date
Yamagi Burmeister
e9c90e16a9 Change atoi() to strtol() 2012-06-04 09:13:28 +02:00
Yamagi Burmeister
0aa75f8704 Explicit cast 2012-06-04 09:13:28 +02:00
Yamagi Burmeister
9ec98a79d2 Fix a potential buffer overflow 2012-06-04 09:12:59 +02:00
Yamagi Burmeister
6c0df994f1 Fix a typo 2012-06-03 01:15:27 +02:00
Yamagi Burmeister
32fe0ba21f Prevent a buffer overflow. 2012-06-01 18:13:30 +02:00
Yamagi Burmeister
f9837b9130 Initialize variables (they may be used uninitialzed further down below) 2012-06-01 17:59:00 +02:00
Yamagi Burmeister
0d8f990d14 Ensure that variables that point to data on the stack are cleared 2012-06-01 17:20:05 +02:00
Yamagi Burmeister
0e1520d29a Remove dead code and assignments 2012-06-01 17:05:40 +02:00
Yamagi Burmeister
40f8422f1b Update the CHANGELOG 2012-05-26 12:04:25 +02:00
Yamagi Burmeister
e9605e8a8b Use AL_BUFFERS_QUEUED at stream shutdown. 2012-05-26 12:03:01 +02:00
Yamagi Burmeister
492b7c1a2b Convert whitespace indentation to tabs 2012-05-26 12:00:48 +02:00
Yamagi Burmeister
28c4edfd69 Clear buffers before deleting the sources
This fixes a very long lasting shutdown procedure which made it look
like Quake II freezed. Especially on slow machines it was a problem.
2012-05-26 11:37:47 +02:00
Yamagi Burmeister
37132d8ac9 Bump version number to 4.21 2012-05-26 09:45:57 +02:00
Yamagi Burmeister
23c74c8a7d Update CHANGELOG for 4.21 2012-05-26 09:45:23 +02:00
Daniel Gibson
cf41d61d72 Add OpenAL to printed Client build options 2012-05-17 15:06:45 +02:00
Daniel Gibson
62d76b3d40 Fix segfault when s_openal=0 but USE_OPENAL=1
If the game was compiled with openal support (USE_OPENAL is defined),
but it's disabled via cvar (set s_openal 0) there could be segfaults
when calls to openal where done anyway, because the check
if(sound_started == SS_OAL) was forgotten.
This is fixed now.
2012-05-17 14:47:05 +02:00
Yamagi Burmeister
5bf1ee670d Fix s_show when OpenAL is used 2012-05-12 15:11:17 +02:00
Yamagi Burmeister
aff51633d0 Add a sanity check against buffer overflows to S_BuildSoundList 2012-05-12 14:46:13 +02:00
Yamagi Burmeister
4a414b588e Fix a buffer overflow in AL_AddLoopSounds
This fixes a crash in mine4.bsp and most likely some other problems.
The bug was reported by "mxmvasilyev0 [at] gmail [dot] com" and tracked
as Github issue #1.
2012-05-12 14:42:15 +02:00
Yamagi Burmeister
6ee203d70c Add a project for porting Quake II to several consoles 2012-05-12 09:50:20 +02:00
Yamagi Burmeister
97c4361125 Mention that Win64 is optional 2012-05-12 09:48:23 +02:00
Yamagi Burmeister
c5cd99079f First draft of CONTRIBUTE 2012-05-12 09:42:12 +02:00
Yamagi Burmeister
a7a553f34e Add joystick FAQ 2012-05-12 09:42:12 +02:00
Yamagi Burmeister
3a0ae1d6f8 I was told that there're other editors than vim 2012-05-01 15:25:28 +02:00
Yamagi Burmeister
fca28bdad7 Ignore .swp files 2012-04-30 15:31:40 +02:00
Christoph Mallon
e064f4b68b Ignore build directories. 2012-04-30 12:51:55 +02:00
Christoph Mallon
57bbdebb44 Redo "Simplify usage of $GSC_PID.", which was accidently undone. 2012-04-30 12:51:36 +02:00
Yamagi Burmeister
b6325d7858 Remove unused variables and dead code (patch submitted by Christoph
Mallon)
2012-04-30 10:02:58 +02:00
Yamagi Burmeister
cdaf1ef5c4 Resolve conflict in quake2-start.sh 2012-04-30 09:04:35 +02:00
Christoph Mallon
38da4b8eee Use set -eu. 2012-04-30 09:03:59 +02:00
Christoph Mallon
2d7f2ce464 Use "$@" instead of $*. 2012-04-30 09:00:42 +02:00
Christoph Mallon
7ee419c0fb Do not hardcode the track numbers. 2012-04-30 09:00:34 +02:00
Christoph Mallon
2b16d9eee8 Reactivate gnome-screensaver and unclutter in the reverse order they are deactivated.
Conflicts:

	stuff/quake2-start.sh
2012-04-30 08:59:25 +02:00
Christoph Mallon
d31e4a531d Use set -eu. 2012-04-30 08:43:48 +02:00
Christoph Mallon
3247c952a4 Simplify "[ $($FOO | grep $BAR | wc -l) -gt 0 ]" to "$FOO | grep -q $BAR". 2012-04-30 08:43:48 +02:00
Christoph Mallon
7c4daf24b1 Simplify usage of $GSC_PID. 2012-04-30 08:43:48 +02:00
Christoph Mallon
d3fa38bca9 Use plain echo, not echo -e 2012-04-30 08:43:08 +02:00
Christoph Mallon
3c7539b417 Simplify the test whether the architecture is supported. 2012-04-30 08:35:40 +02:00
Christoph Mallon
2867c00d61 Do not overwrite CC. 2012-04-30 08:35:10 +02:00
Christoph Mallon
ab034114b4 Whitespace fixes. 2012-04-30 08:25:59 +02:00
Daniel Gibson
2c851b052d Enable core dumps in quake2-start.sh script 2012-04-29 17:04:57 +02:00
Yamagi Burmeister
dc3e2bd3b4 Mention openal-soft in the Makefile 2012-04-29 16:16:44 +02:00
Daniel Gibson
164defb856 Small corrections in CHANGELOG and LICENSE
* Write "LADSPA" correctly
* Mention Q2Pro and zeq2 because we use their OpenAL code
* Mention libjpeg (for retexturing) and libopenal in used but not included libs
2012-04-29 16:11:45 +02:00
Daniel Gibson
8612950e0a Make SYSTEMWIDE options in Makefile configurable from Console
With the WITH_SYSTEMWIDE (yes/no) and WITH_SYSTEMDIR (actual path) options
2012-04-29 15:54:15 +02:00
Daniel Gibson
ebccfc63df Remove need to link against libopenal
libopenal is loaded with dlopen() and for all used alBla and alcBla functions
there are function pointers (just like thee qgl stuff for OpenGL).
Thus there's no need to link against libopenal on compile-time.

There were a few occurences of "normal" openal functions (al* instead of qal*)
- they are fixed now.

This allows to use a yquake2 version compield with WITH_OPENAL=yes to be used
on systems that have no libopenal installed (the standard SDL sound backend
will be used then).
2012-04-29 15:24:14 +02:00
Yamagi Burmeister
4520d53b26 Alter the README for github
This is the Yamagi Quake II subversion repo converted to git. The
history was preserved, bit the older parts are in german and crap.
Sorry for that. Each releases is referenced ba a "git tag".
2012-04-29 14:59:49 +02:00
Yamagi Burmeister
4203bed129 Bump version number to 4.20 2012-04-29 08:08:21 +00:00
Yamagi Burmeister
b0a6ec177b Update the CHANGELOG 2012-04-29 08:07:02 +00:00
Daniel Gibson
965fedf9ae It's X11GAMMA with 2 "m". 2012-04-28 20:04:24 +00:00
Daniel Gibson
2b7ef996ed Fall back to "libGL.so.1" if gl_driver set in (default) config fails 2012-04-28 20:02:15 +00:00