Yamagi Burmeister
074891a8a2
Implement gl_hudscale for the console
...
After this change the HUD scaling is applied to the console and notify
messages. This was requested by many users.
2014-06-21 18:17:12 +02:00
bibendovsky
c1a3526a67
Add underwater sfx for SDL backend
2014-06-16 08:45:39 +03:00
bibendovsky
1dc71dbd97
Remove static keyword on some variables (these actually not static)
...
Caused by 1e52d35e84
2014-06-13 15:43:34 +03:00
bibendovsky
e4bb8b25a3
Fix compiling under Visual C++ when OggVorbis playback enabled
2014-06-13 14:07:56 +03:00
bibendovsky
8a28470a7a
Enable TGA sky textures when retexturing is disabled
2014-06-10 10:45:49 +03:00
bibendovsky
1e52d35e84
Do not update mouse cursor position when paused, in menu, etc
2014-06-10 10:43:53 +03:00
bibendovsky
5d4c165b19
Stop Visual C++ to complain about uninitialized variable
2014-06-10 10:42:44 +03:00
bibendovsky
1ee09e3c20
Fix compiling under Visual C++
2014-06-10 10:35:28 +03:00
bibendovsky
a53f321bed
Use proper API to get pointers to OpenAL EFX extensions
2014-06-10 10:23:43 +03:00
Yamagi Burmeister
6c3fb38721
Merge remote-tracking branch 'opengles/master'
...
This integrates the backends for the pandora, gcw and gph written by
Scott "Pickle" Smith. Only the code itself is supplied, but no build
system integration.
2014-06-09 14:37:09 +02:00
Yamagi Burmeister
a0e7c67597
Bump version to 5.23
2014-05-08 17:24:09 +02:00
svdijk
013ad4aa45
screen: simplify SCR_GetHUDScale.
2014-05-08 04:12:39 +02:00
svdijk
9ae8192f04
video: revert commit 97e149ba9e
, implement a better fix for this.
2014-05-07 18:21:12 +02:00
svdijk
6ced6809c6
savegame: update gamefunc_{decs,list}.h, for completeness sake.
2014-05-06 22:03:08 +02:00
svdijk
2b66ce0372
screen: move the SCR_DrawCrosshair declaration to the header.
2014-05-06 19:55:43 +02:00
svdijk
1d81f2e2b6
screen: auto-scale the HUD when gl_hudscale < 0.
2014-05-06 19:45:11 +02:00
svdijk
9be6a7ec46
videomenu: minor tweak regarding the aniso filtering option.
2014-05-05 18:31:08 +02:00
svdijk
092e7e1888
SCR_ExecuteLayoutString: also apply scale to xl and yt to avoid overlap.
2014-05-04 21:07:23 +02:00
svdijk
d823940370
Also apply gl_hudscale cvar to the inventory.
2014-05-04 21:05:56 +02:00
svdijk
ba16e501d2
videomenu: minor cvar ordering change.
2014-05-04 20:47:52 +02:00
svdijk
4e8a5565a9
videomenu: remove obsolete options, some cleanup.
2014-05-04 20:44:29 +02:00
svdijk
af852ea5bd
videomenu: add an "aniso filtering" option.
2014-05-04 20:26:12 +02:00
svdijk
97e149ba9e
video: avoid artefacts when resizing the viewsize when paused.
2014-05-04 16:05:32 +02:00
svdijk
6b79e31d8d
videomenu: correct the "screensize" slider range.
2014-05-04 13:39:05 +02:00
svdijk
a7edd7c466
video: apply changes to gl_anisotropic immediately.
2014-05-01 21:20:00 +02:00
svdijk
3bb9f49f19
videomenu: readd 16x MSAA option, check what we got after setting mode.
2014-05-01 20:52:25 +02:00
Daniel Gibson
7ace8c9116
Implementing gl_hudscale cvar to scale the HUD
...
because it's so small in high resolutions and I'm an old man with bad
eyes.
2014-04-25 21:24:26 +02:00
svdijk
a2b6f1b7af
videomenu.c: remove unsupported "16x" option from MSAA list.
2014-04-20 03:12:13 +02:00
svdijk
a0ca33901e
videomenu.c: minor fix regarding the multisampling option.
2014-04-19 13:00:12 +02:00
svdijk
0973c1de10
videomenu.c: consistent capitalization.
2014-04-17 20:25:39 +02:00
svdijk
5b6f351e67
refresh.c: some minor tuning/cleaning.
2014-04-17 20:14:42 +02:00
svdijk
04c5b881a2
Video menu: add msaa option.
2014-04-16 22:47:23 +02:00
svdijk
d089159ab9
VID: Implement a fallback when MSAA is not supported.
2014-04-16 21:51:36 +02:00
svdijk
ec8edb5d3b
Video menu: add vsync option.
2014-04-12 15:03:40 +02:00
svdijk
4d201b3ff0
OpenAL: fix lagging audio when leaving the menu.
2014-04-12 14:27:10 +02:00
svdijk
3d2ff6795d
R_ScreenShot: set GL_PACK_ALIGNMENT to 1 for glReadPixels.
2014-03-30 17:30:58 +02:00
svdijk
1fd8a853d1
R_ScreenShot: add another sanity check.
2014-03-30 16:32:36 +02:00
svdijk
ded9ed51ea
R_ScreenShot: abort if malloc fails.
2014-03-29 19:52:24 +01:00
svdijk
e86aabc949
Menu: make sure spincontrols don't start out of range.
2014-03-29 18:50:48 +01:00
svdijk
219882dafa
Make default video mode consistent, some comment/whitespace changes.
2014-03-28 21:12:15 +01:00
svdijk
503eefc301
Simplify the mouse grabbing/relative mode setting code.
2014-03-26 21:13:07 +01:00
svdijk
5338566852
Fix broken mouse release while in menu/console.
2014-03-26 20:51:02 +01:00
svdijk
69661e7cbd
Implement a different workaround for when SDL_SetRelativeMouseMode() doesn't work.
...
This fixes the "stuttering mouse" reported in issue #38 .
2014-03-26 20:34:19 +01:00
Yamagi Burmeister
5ce3a266e9
Force OpenGL path for light primitives
...
This fixes a long standing and until now unnoticed bug with negative
colored dynamic lights. Since we never set the OpenGL renderer as out
renderer, remaining softrenderer code was executed and the corresponding
effects never rendered. This manifested itself in missing darkness
around the "gravity well" in rogue.
2014-02-12 19:39:23 +01:00
Yamagi Burmeister
37dd396f36
Bump version to 5.22
2014-02-08 10:14:24 +01:00
Yamagi Burmeister
d0d81cf3ac
Revert "Define HAVE_BOOLEAN on Windows"
...
This reverts commit 5e1419e6ba
. It was a
bad idea, breaking 64 bit compatiblity on Windows. It should have never
been committed...
2014-01-28 08:13:21 +01:00
Yamagi Burmeister
eb879bb9b6
Rename VERSION to YQ2VERSION to prevent collisions
...
Newer jpeg versions (I guess starting with 9) define an macro
"VERSION", colliding with ours. While wie could #undef it, take
the less hacky route and rename it.
2014-01-27 18:14:36 +01:00
Yamagi Burmeister
5e1419e6ba
Define HAVE_BOOLEAN on Windows
...
Without this define newer versions of jpeg define a type "bool" as char,
while the MinGW headers define it as "unsigned short". Automake should
have detected that, but...
2014-01-27 17:28:59 +01:00
Yamagi Burmeister
93b38c6312
Define macros needed by 26bbfea
.
...
The code used build fine on my workstation, since Mesa3D has the
required macros since ever. But on Windows gl.h is still limited
to OpenGL 1 (really?).
2014-01-27 17:26:33 +01:00
Yamagi Burmeister
26bbfead45
Add support for MSAA.
...
MSAA was a long wanted and often requested feature. Just set set the
desired number of samples with gl_msaa_samples and do a vid_restart.
This code is based upon work done in Hecatomb.
2014-01-26 09:53:10 +01:00
Yamagi Burmeister
825a53009a
Provide a workaround if SDL_GetRelativeMouseState() is disfunctional
...
On some systems SDL_SetRelativeMouseMode() can fail under several
circumstances. For example:
- Security software is blocking acces to raw input.
- XInput 2 is unavailable.
- SDL2s configure script has messed up.
Detect those situations and reposition the mouse manually to the
window center after having read it's current state. This fixes
issue #34 an #35 .
2014-01-25 15:46:55 +01:00
Yamagi Burmeister
68d3da29e8
Destroy the window after the GL context.
...
The GL context is bound to a window, so destroy it before the window and
not after it. While here update the header comment.
2014-01-23 17:23:16 +01:00
svdijk
98a83e2322
Minor input grabbing cleanup.
2014-01-11 19:01:04 +01:00
svdijk
b33c895d56
Whitespace
2014-01-05 20:32:18 +01:00
svdijk
50e1bf16fe
Fix key-repeats in the console (for instance the backspace key)
2014-01-05 20:22:34 +01:00
Yamagi Burmeister
84a1766702
Merge input backend init and keyboard init
...
Now that the refresher is part of the client, there's no need to init
the backend before the refresher and the keyboard after it.
2014-01-05 18:58:52 +01:00
Yamagi Burmeister
e8239291a7
Remove unnecessary IN_Close()
...
Having a special function to close the input devices is unnecessary. The
backend should close them at shutdown, when IN_BackendShutdown() is
called.
2014-01-05 18:53:03 +01:00
Yamagi Burmeister
18733b68ce
Do not allow input devices to write to command buffer
...
Input devices should send key events and nothing more. The ability to
add commands into the input buffer was used by the joystick code
(removed long time ago) and as a dirty hack to work around limitations
of DirectInput.
2014-01-05 18:51:27 +01:00
Yamagi Burmeister
f80e02ffd9
Refactor the SDL input backend once again.
...
- Remove the keyq. This linked list was used to work around limitations
of the good, old DirectInput API. It's not necessary with SDL.
- Inline some functions to others where apropriate and remove unused
or unnecessary functions.
- Reorder functions into groups.
- Update comments.
This commits still misses necessary changes to the frontend. They'll be
done in subsequential commits.
2014-01-05 18:40:24 +01:00
svdijk
7111f735f7
Fix a (harmless) off-by-one in a SDL_VideoDriverName() call
2014-01-05 17:44:29 +01:00
Yamagi Burmeister
a6b911a9a8
Bump version number to 5.21
2014-01-01 11:25:36 +01:00
Yamagi Burmeister
be14aea08d
Add an signal handler for SIGINT and SIGTERM
...
This allows the user to shut the client down by pressing ctrl-c in it's
terminal or by sendig SIGTERM.
2014-01-01 11:17:28 +01:00
Yamagi Burmeister
fd1e55d18d
Do not set the FPU to single precision on Windows
...
We had dual precision since ever on 64 bit unixoid systems and it "just
worked". So there should be no reason to still force Windows down to
single precision. The performance impact should be negligible.
2013-12-31 13:18:05 +01:00
Yamagi Burmeister
8102e1a021
Move entitycmpfnc() to cl_view.c an reimplement it
...
This function is only used in cl_view.c, so no need for external
declaration. Reimplement it in a sane and on all platform 64 bit
clean way. This allows us to finally remove the horible INT macro.
2013-12-31 12:47:18 +01:00
Yamagi
78b974d3ca
Merge pull request #28 from alericoveri/qgl_cleanup
...
QGL renundancy cleanup
2013-12-31 03:14:55 -08:00
Daniel Gibson
3afe57b8f2
Fix #29 by simplifying mouse button handling
...
Pressing two mouse buttons at the same time didn't work properly, only
one had effect, e.g. when pressing LMB to walk forward and RMB to shoot
(when bound like that...)
Not sure why that was, but the old mouse button handling (inherited from
the super-old win32 backend where it was supposed to work around bugs in
WinAPI or whatever, where sometimes there were two mouse button presses
in one event or something) was unnecessarily complicated anyway so I
replaced it with something simpler.
2013-11-26 19:22:29 +01:00
Alejandro Ricoveri
1cfb5c67d5
QGL renundancy cleanup
...
Despite QGL is only handling GL extensions, there was a little code renundancy.
QGL_EXT_Reset sets all extension pointers to NULL.
2013-11-22 08:17:34 -04:30
Yamagi Burmeister
64a39ce09e
Bump version number to 5.20
2013-11-14 18:13:35 +01:00
Yamagi Burmeister
0f9dcba9ed
Apply some cleanup to the input backend
...
Make non global functions static, give some better names to variables,
remove unneccessary special cases and remove some superflous functions.
Form most - if not all - users this changes should be a no-op.
2013-11-10 10:10:43 +01:00
Yamagi Burmeister
e7ac0653b2
Merge branch 'sdl2'
2013-11-09 13:21:39 +01:00
Scott Smith
70eef55ab5
OpenGL-ES converstion
...
Specific device options for pandora, gcw, gph
2013-10-12 12:31:20 -04:00
Yamagi Burmeister
82f3fa84a9
Use "directsound" as sounddriver when using SDL2 on Windows
2013-10-12 12:13:33 +02:00
Yamagi Burmeister
5c5a9beba5
Rename CreateWindow() to CreateSDLWindow()
...
CreateWindow() is a symbol internal to Windows. We can't use it in out
code or it will collide.
2013-10-12 11:07:05 +02:00
Yamagi Burmeister
5e85fbc8b9
Allow arbitrary screen sizes.
...
Without this change the width of the render windows was required to be a
multiple of 8, making it unable to use strange resolutions like 1366x768.
This change is based upon an idea submitted by "tmcp" in pull request
27.
2013-10-12 09:29:19 +02:00
Daniel Gibson
d1ca122955
Add -DSDL2 for Win32/OSX support (untested), print SDL2 usage on startup
...
The quake2 binary now gets -DSDL2 in the CFLAGS, so Win32/OSX can
use different #include paths accordingly.
This is also (ab)used to print which SDL version is used on startup.
Don't use this for anything else, use
#if SDL_VERSION_ATLEAST(2, 0, 0)
instead.
I haven't tested building on/for Win32 or OSX, there may be more
work to do.
Furthermore I added Copyright-Info about CalculateGammaRamp()
in refresh.c (it's from SDL2)
2013-09-01 14:19:33 +02:00
Daniel Gibson
628dff77a8
Clean up + improve setting gamma via xRandR
...
* save gamma on start and restore on exit
* handle errors
* Restore SDL1.2 compatibility
2013-09-01 03:18:21 +02:00
Daniel Gibson
9af707c7a0
use xrandr for x11gamma (still hacky)
2013-08-27 21:54:48 +02:00
Daniel Gibson
d6dbd6497e
Set gamma with SDL2
2013-08-27 19:57:14 +02:00
Daniel Gibson
a83f1c8ff0
SDL2: Fix Icon
2013-08-27 01:16:05 +02:00
Daniel Gibson
997be0dcd1
Fixes for SDL2
...
* Fix input issues (mouse-wheel and mouse input)
* SDL2 is not default anymore in the Makefile (use WITH_SDL2=yes)
* If SDL2 is enabled, CD audio is disabled (SDL2 doesn't support
that - use OGG/Vorbis instead)
* Small fix to make it compile with SDL1.2 again
2013-08-26 23:55:34 +02:00
Daniel Gibson
51b7607548
SDL2 support (mostly)
...
Makefile is adjusted, it compiles and works mostly, but
* For some reason (bug in SDL_GetRelativeMouseState() ?)
mouse input doesn't work properly.. it seems to be bound
to window borders, even if input is grabbed
* some keys can't be used anymore because there's no SDLK_*
for them anymore (gotta find out if this is important)
* Maybe some of the changes need cleanup
2013-08-26 00:55:31 +02:00
svdijk
ee03e7f03a
simplify the input grabbing code
2013-07-30 20:13:49 +02:00
Yamagi Burmeister
005fea6c94
Call GLimp_GetProcAddress directly
2013-07-27 08:50:20 +02:00
Yamagi Burmeister
88bd357231
Remove support for old SGI Opengl extensions
...
Those extensions have become part of ARB about 15 years ago and most if
not all video cards still in use should support the ARB versions. I
believe that at least parts of this code were disfunctional.
2013-07-27 08:47:28 +02:00
Yamagi Burmeister
ad52c5c888
Rename all qgl* functions top their OpenGL counterparts
...
This removes the need to define the old qgl function names to the
official OpenGL names. The OpenGL functions are now called directly
without any abstraction.
2013-07-27 08:47:21 +02:00
Yamagi Burmeister
ecc4302f94
Alter Makefile and header pathes following the refresh move
...
With this change the "refresh" make target doesn't any longer exists.
It was merged into the "client" target. One will need a "make clean"
before building yQ2 after this change.
2013-06-15 10:37:11 +02:00
Yamagi Burmeister
8a17f20e64
Move refresher to client/refresh
...
This is the more appropriate place now that the refresher is merged into
the client
2013-06-15 10:37:11 +02:00
Yamagi Burmeister
85571cfc56
Only cleanup the GL context if OpenGL was initialized
2013-06-15 10:37:11 +02:00
Yamagi Burmeister
9af9f54f36
Remove QGL pointers
...
This is a manual merge of Hecatomb Q2 ref b8952d5. Manual since git
couldn't do an automerge for some reasons... Notable changes are:
- QGL function pointers are removed, libGL is linked directly
- The OpenGL log framework is removed. It was disfunctional
- The gl_driver cvar is finaly gone
This change is currently untested on Windows and OS. There should
be no problems but a better Makefile integration of libGL is needed.
2013-06-15 10:37:11 +02:00
Alejandro Ricoveri
2b0974822c
Client refactoring
...
Some stuff being reordered
2013-06-15 10:37:11 +02:00
Alejandro Ricoveri
3e45c5e363
Refresh API refactoring
...
Analog functions of the former refexport_t are now public for the client
to access.
2013-06-15 10:27:30 +02:00
Alejandro Ricoveri
6686b875cc
vid.c refactoring
...
VID_LoadRefresh with no parameters
VID_LoadRefresh doesn't need a DLL name (because there isn't one)
Rename reflib_active to ref_active
Reference to client input callbacks
All declarations are at the beginning of the file
Full reimplementation of VID_Shutdown
VID_Shutdown does all the refresher cleanup
Reimplementation of VID_FreeReflib
Implementation of VID_LoadRefresh
2013-06-15 10:27:30 +02:00
Alejandro Ricoveri
8e69d9dc5c
Remove vid_ref cvar
...
Normally setting gl_mode cvar would result in VID_LoadRefresh because
of vid_ref being "modified". After removing vid_ref out of the picture
it will "modify" vid_fullscreen to replicate the same behaviour.
Variable "name" (who used to hold refresh dll name) is now left unused
All references to vid_ref cvar has been taken out ...
2013-06-15 10:27:30 +02:00
Alejandro Ricoveri
35e1792c91
Input backend refactoring
...
Get rid of input backend function pointers + some code cleanup that is no longer necessary
2013-06-15 10:27:30 +02:00
Alejandro Ricoveri
a7f02a5b0e
The refresher is linked statically into the client, no more 'ref_gl.so'.
2013-06-15 10:27:30 +02:00
svdijk
55d6a601c9
Fix default video mode.
...
Revert "The default video mode is 5 (640x480). Spotted by svdijk."
This reverts commit a76d7d5cfb
.
2013-05-28 20:42:57 +02:00
svdijk
1251fde6e4
credits
2013-05-24 18:21:11 +02:00
Yamagi Burmeister
033550cd59
Bump the version number to 5.11
2013-05-20 19:14:29 +02:00
svdijk
9564b7b55e
fix aspect ratio menu option
2013-05-19 18:42:44 +02:00
svdijk
1d0f979bf9
Q_strlcat minor bugfix
2013-05-18 21:07:52 +02:00
svdijk
5692388da1
cleanup Com_sprintf, minor tuning
2013-05-18 19:01:23 +02:00
svdijk
6472514c8f
Lets not do the last two commits just before 5.11
...
Revert "change several strcat calls to Q_strlcat calls"
This reverts commit ab879f1bc7
.
Revert "change (v)sprintf calls to (v)snprintf calls"
This reverts commit b46e210d76
.
2013-05-18 18:59:39 +02:00
svdijk
ab879f1bc7
change several strcat calls to Q_strlcat calls
2013-05-17 22:25:18 +02:00
svdijk
b46e210d76
change (v)sprintf calls to (v)snprintf calls
2013-05-17 21:50:31 +02:00
svdijk
be63c7f198
note to self: always compile before you commit
2013-05-13 21:39:53 +02:00
svdijk
a5044a93eb
make sure svs.demofile is set to NULL after closing it
2013-05-13 21:26:58 +02:00
svdijk
662229a568
fix FS_FOpenFileWrite, also make FS_FOpenFile{Write,Append} open in binary mode
2013-05-13 21:17:55 +02:00
svdijk
f5a44ff5ae
remove unnecessary fileHandle_t typecasts
2013-05-13 21:11:52 +02:00
svdijk
2ad4255187
fix sv.demofile/svs.demofile type/treatment
2013-05-13 21:00:50 +02:00
svdijk
4bef586e67
remove unnecessary fileHandle_t typecasts
2013-05-13 18:49:16 +02:00
svdijk
b08fbb7cbf
replace remaining strncat calls with memcpy calls
2013-05-13 18:38:37 +02:00
svdijk
8fad0a9008
change some more (mostly wrong) strncpy calls to Q_strlcpy calls
2013-05-12 20:25:00 +02:00
svdijk
c469a97b36
fix typo
2013-05-11 15:29:02 +02:00
svdijk
7c1d2b4219
fix incorrect typecasts in FS_* calls
2013-05-11 15:22:27 +02:00
svdijk
e07294b6b1
replace most strncpy calls (several of them wrong) by Q_strlcpy calls
2013-05-11 14:44:36 +02:00
svdijk
4682c888f0
replace strncat calls by Q_strlcat calls
2013-05-11 13:24:13 +02:00
svdijk
a26892cb90
add Q_strlcpy and Q_strlcat
2013-05-11 13:19:52 +02:00
svdijk
392c04bc1d
some sanity check commenting
2013-05-11 12:57:50 +02:00
svdijk
8869b0542d
rename strlwr to Q_strlwr
2013-05-11 12:46:49 +02:00
svdijk
cd54f56b36
some more boundary checking
2013-05-08 20:16:23 +02:00
svdijk
3c62c2be5a
ogg/cda: move defaults from yq2.cfg to engine
2013-05-08 20:06:53 +02:00
svdijk
1c431e14ac
make the load/save statusbar a bit more informative
2013-05-08 20:01:44 +02:00
svdijk
9803652781
some strncpy/strncat fixes
2013-05-07 21:46:46 +02:00
svdijk
d4c5960f8f
help/score updates: fix typo
2013-05-04 14:47:02 +02:00
Yamagi
b58b78714b
Merge pull request #23 from alericoveri/osx-aluwf
...
AL_InitUnderwaterFilter wasn't being compiled conditionally
2013-04-28 08:46:42 -07:00
svdijk
27b3d27584
sdl: fix key repeat (SDL_EnableKeyRepeat was called too early)
2013-04-28 12:38:53 +02:00
svdijk
fa9548fcad
M_Popup: some more tuning
2013-04-28 12:31:51 +02:00
Alejandro Ricoveri
1c84805c1f
AL_InitUnderwaterFilter wasn't being compiled conditionallyi
2013-04-27 17:21:15 -04:30
svdijk
8e1bb70932
M_Popup: align the same as the old popups
2013-04-26 18:55:23 +02:00
svdijk
082c2d454f
cinematics: minor rewriting of cin_force43 behaviour
2013-04-24 20:33:12 +02:00
svdijk
695e0a9a16
cinematics: fix video mode changing during cinematic playback
2013-04-22 20:51:59 +02:00
svdijk
3c6a57129e
cinematics: force 4:3 aspect ratio (new cvar cin_force43)
2013-04-22 20:44:47 +02:00
svdijk
b9deabd86a
videomenu: fix CUSTOM_MODE
2013-04-21 18:44:50 +02:00
Yamagi Burmeister
277c2b9567
Use the same default volume on all platforms again
...
Testing showed that after the last round of sound changes FreeBSD is the
only platform with distorted sound when s_volume is set too high. I'm
pretty sure that it's caused by a bug in the OSS backend of openal-soft.
I'll need to analyze this more and maybe write a problem report. Since
FreeBSD users should be experienced enough to lower the volume when
there are problem (there's a FAQ in our README!), use the same default
volume on all platforms.
2013-04-21 12:02:38 +02:00
Yamagi Burmeister
3ac88e1bda
Rename snd_wav.c to wave.c to get in line with other files
2013-04-21 11:32:20 +02:00
Yamagi Burmeister
84020e4d8e
Rename snd_vorbis.c to ogg.c. This name is more appropriate
2013-04-21 11:30:07 +02:00
Yamagi Burmeister
fb7b97d868
Minor cleanups to snd_vorbis.c
...
- Remove any forward declarations
- Tightens checks for SDL
2013-04-21 11:27:31 +02:00
Yamagi Burmeister
78ce1e491c
Rename snd_al.c to openal.c
2013-04-21 11:19:01 +02:00
Yamagi Burmeister
1d6aaca68e
Whitespace cleanup
2013-04-21 11:14:00 +02:00
Yamagi Burmeister
a1f5ccfcac
Update header comment
2013-04-21 11:13:26 +02:00
Yamagi Burmeister
92be8c75e3
Rework volume handling
2013-04-21 11:06:18 +02:00
Yamagi Burmeister
b9e71913ae
Restructure and refactor snd_al.c
2013-04-21 10:40:00 +02:00
Yamagi Burmeister
e5505f90d7
Rename snd_dma.c to sound.c. yq2 never used DMA.
2013-04-20 15:09:57 +02:00
Yamagi Burmeister
957e4d4735
Whitespace cleanup
2013-04-20 15:06:47 +02:00
Yamagi Burmeister
242a62384c
Update header comment
2013-04-20 15:06:15 +02:00
Yamagi Burmeister
b9a62ff34b
Cleanup snd_dma.c
2013-04-20 15:01:31 +02:00
Yamagi Burmeister
720db15de9
Cleanup local.h of the sound system
2013-04-20 14:20:58 +02:00
Yamagi Burmeister
d9cd053461
Whitespace cleanup
2013-04-20 13:48:21 +02:00
Yamagi Burmeister
910dc421c6
Update file header and comment
2013-04-20 13:47:15 +02:00
Yamagi Burmeister
ef7c85bbcd
yq2 never had a dma based soundengine. Let's call it just "sound".
2013-04-20 13:40:54 +02:00
Yamagi Burmeister
b45876ffdd
Refactor the SDL part of S_Update() into the backend
2013-04-20 13:32:58 +02:00
Yamagi Burmeister
d9643e8b76
Refactor the SDL part of S_RawSamples into the backend
2013-04-20 13:16:40 +02:00
Yamagi Burmeister
2c356d142e
Refactor the SDL part of S_LoadSound into the SDL backend
2013-04-20 10:26:31 +02:00
Yamagi Burmeister
0c93ecbddb
Print the number of OpenAL sources in the backend
2013-04-20 10:26:19 +02:00
Yamagi Burmeister
cbecc5b2dc
Retire snd_mem.c and integrate it into snd_dma.c and the backends
2013-04-20 09:19:59 +02:00
Yamagi Burmeister
3989ff73b2
Retire snd_mix.c and incorporate it into the SDL backend
2013-04-20 09:03:47 +02:00
Yamagi Burmeister
35ba5b0de1
Move all generic function used only by the SDL backend into it
...
Additionally rename those function to SDL_ prefix and refactor
them a little.
2013-04-20 08:40:53 +02:00
Yamagi Burmeister
f1ce0c0c00
Move all SDL backend function to the SDL backend and use SDL_ as prefix
2013-04-20 08:02:13 +02:00
svdijk
20110faeed
Some minor cleanup/tuning/commenting
2013-04-14 18:46:08 +02:00
svdijk
4465d7e045
menu: some style syncing between savegame/server listing
2013-04-14 16:17:00 +02:00
svdijk
d297b97c12
menu: Rework the save/load menu a bit using M_Popup (get rid of excessive green)
2013-04-14 16:13:58 +02:00
svdijk
f9cda84d6e
menu: Use M_Popup for the server search message
2013-04-14 16:07:37 +02:00
svdijk
1d86145f7f
menu: Use M_Popup for the sound system restart message
2013-04-14 16:03:59 +02:00
svdijk
5daee97e2a
menu: Add a generic popup function M_Popup
2013-04-14 14:49:45 +02:00
svdijk
aae7de19c4
Use some safer offset values for gl_zfix, and default to 0
...
(Since it seems to cause unwanted artifacts with some drivers)
2013-04-07 19:07:16 +02:00
Yamagi Burmeister
9def7d908f
Silence another 2 gcc48 warnings due to creative array usage
...
This is nearly the same case as in 1bee58840d
and should be a no-op.
2013-04-07 13:54:24 +02:00
Yamagi Burmeister
1bee58840d
Silence a gcc48 warning due to some "creative" array usage
...
To my understanding this code and the old code do exactly the same, this
one is just more readable. Therefor this change should be a no-op.
2013-04-07 13:43:17 +02:00
svdijk
41d89c7171
Whitespace
2013-03-24 18:12:14 +01:00
svdijk
346d9873f0
Fix double server entries in multiplayes menu.
...
Also display netadr in statusbar instead of in the list (lowres compatible).
2013-03-24 18:08:06 +01:00
svdijk
77c9cb7e05
Update savegame tables (forgot them in the previous commit)
2013-03-23 12:30:48 +01:00
svdijk
5ed89a0373
Move some functions to a better place
2013-03-23 11:40:54 +01:00
svdijk
6f6c9a1aae
Fix help computer and inventory updates when already opened
2013-03-20 20:21:53 +01:00
svdijk
909e69462f
Fix a typo in a function prototype in game.h
2013-03-19 21:42:48 +01:00
svdijk
d07735b831
Rewrite the Shift+Escape code a bit (somewhat cleaner)
2013-03-18 19:37:26 +01:00
svdijk
317355f7ca
Minor rewriting.
2013-03-17 21:32:50 +01:00
svdijk
e49693bec4
Make cmdlist and cvarlist alphabetically ordered.
2013-03-17 18:16:02 +01:00
svdijk
8b28e3d0df
Make Shift+Escape toggle the console.
2013-03-17 17:31:00 +01:00
svdijk
f36f708b24
Unbind default bindings before loading stored bindings (new cvar cfg_unbindall)
2013-03-16 22:49:48 +01:00
svdijk
7637d32f6f
Work around the z-fighting on some baseq2 maps (new cvar gl_zfix)
2013-03-16 16:47:57 +01:00
Yamagi Burmeister
d9519cee61
Remove an unneccessary check.
...
This check involved an uninitialized pointer, so it never worked. It
could lead to crashes in some situations, especially when clients tried
to reconnect after a manual map change on the dedictated server.
2013-03-10 12:08:58 +01:00
Yamagi Burmeister
e1903dd925
Change some qglTexParameterf to qglTexParameteri
...
Scott S. pointed out that some the qglTexParameterf calls should be
qglTexParameteri. I don't know if all this changes are correct (I'm
an openGL noob) but they shouldn't make thinks worse and "works for me".
2013-03-10 10:20:42 +01:00
Citramonum
3e56938aa9
Update vid.c
...
Fix a typo in 1280x960 graphic mode parameters.
2013-03-09 21:06:06 +04:00
Yamagi
2300a547a8
Merge pull request #19 from JayWalker512/stupid-laptop-res
...
Added support for 1366x768 laptop resolution in video menu. This will break existing configs one again if a mode of 1440x900 or higher is used.
2013-01-20 03:08:00 -08:00
Yamagi Burmeister
56d920162e
Reduce default volume to 0.3 on non-linux-platforms
...
If the volume is set too high the OpenAL backend preamplification leads
to overdriven sound samples. It's not quite understandable to me why
that only happen on platforms other than Linux (maybe a bug in OpenAL?)
and there's not much we can do against it besides reducing the volume.
As the side note: Simmilar behavior can be seen at least in ioQ3 and
dhewm3...
2013-01-20 12:01:10 +01:00
Yamagi Burmeister
bc5c308684
Add a cvar "s_openal_maxgain" to clamp AL_GAIN
...
This cvar is a last resort if all other measures to prevent overdriven
preamplifation fail. Setting it to lower value than 1.0 limits the
overall dynamic range, so sound quality is lost. This is especially
hearable when low volume samples are encountered, like the shotgun
combined with the silencer.
2013-01-20 12:01:10 +01:00
Yamagi Burmeister
1f5012aec3
Calculate the AL_GAIN by s_volume and don't set a global AL_GAIN
2013-01-20 12:01:10 +01:00
Yamagi Burmeister
548bbeb129
Pass raw "float" volume to OpenAL
...
The client uses float values between 0.0 and 1.0 to represent the volume
of sound samples. This is the range required by OpenAL. But the generic
part of the sound system multiplied the raw float value with 374 and
clamped it to a full integer. That worked by luck withth the OpenAL
backend but broke at least the silencer powerup. Solve this problem by
adding a new field "float oal_vol" to the channel_t struct and use it to
pass the raw float value to OpenAL.
This fixes issue #18
2013-01-20 12:00:29 +01:00
Brandon Foltz
d6feeeff8d
Added support for 1366x768 laptop resolution in video menu.
2013-01-18 14:59:44 -05:00
Yamagi Burmeister
2890dafbda
Divide effect volume by 3 when using the OpenAL backend
...
Since OpenAL 1.15 AL_GAIN has much more weight than before. That leeds
to overdriven effect samples unless the volume control is set to a very
low level. With this change volume can be set to a high level without
distorting. But there's one problem. A division by 2 is to low to rule
distortion out and by 3 the game is a little bit quieter than before. A
value of 2.5 would be optimal but is not applicable since the volume is
represented by an integer. I've choosen 3 to be aon the save side.
As a side note: This problem was very less worse on Linux than on
Windows and FreeBSD. Maybe Linux guys need to pump there volume up
to compensate this work-around.
2013-01-06 17:09:30 +01:00
Yamagi Burmeister
2ee5937fa3
Bump version number to 5.10
2012-12-30 17:46:22 +01:00
svdijk
0f985d3e45
Cleanup the keybindings menu code.
2012-12-29 18:21:46 +01:00
svdijk
4f5ba24003
Some more load/save menu tuning (better QMF_GRAYED use).
2012-12-29 17:18:30 +01:00
svdijk
83037ace88
Some load/save menu tuning.
2012-12-29 17:16:53 +01:00
svdijk
74f244801f
Fix game saving on page 2(+).
...
Fixes issue #16 .
2012-12-26 09:30:16 +01:00
svdijk
bcc6f62b61
Make the Load/Save menu multi-page (support low-res).
2012-12-09 17:57:00 +01:00
svdijk
e78a18c5ca
Fix the "help computer" keybinding option; some whitespace cleanup.
2012-12-09 17:56:47 +01:00
Joshua Scoggins
7116d7e90a
Fixed a bug in src/common/header/common.h with respect to ia64
...
I had written #elif define __ia64__ instead of #elif defined __ia64__
This has been fixed.
2012-11-30 20:34:35 -08:00
Joshua Scoggins
a578fff56a
Extended the arch check in src/client/header/client.h to include ia64
...
For ia64 it's necessary to define int as long long instead of long int. I know
this for a fact because pointers that were encoded as long int in my LLVM and
CLIPS bridge would fail horribly when passed out of clips back into LLVM. long
long fixed it.
2012-11-30 20:30:28 -08:00
Joshua Scoggins
df4c4dd9dd
Added ia64 to the ARCH define
2012-11-30 20:21:28 -08:00
Joshua Scoggins
dc0f2ec779
Added the ia64 cpustring
2012-11-30 20:20:44 -08:00
svdijk
0fe5d4f610
Make sure that the crashlog actually gets written.
2012-11-17 15:31:12 +01:00
svdijk
1dd083cd7d
COM_Parse: Fix buffer overflow in long quoted strings.
2012-11-17 15:28:45 +01:00
svdijk
561add00a8
cl_main:CL_UpdateWindowedMouse() optimization.
2012-11-16 20:30:59 +01:00
Yamagi Burmeister
a76d7d5cfb
The default video mode is 5 (640x480). Spotted by svdijk.
2012-11-14 21:12:21 +01:00
svdijk
247e2baa3a
More mouse grab/release tuning.
2012-11-14 21:08:07 +01:00
Ilia Zhirov
46c77400e2
fixed build on pre ansi c89 compilers
2012-11-14 14:49:40 +06:00
svdijk
823753dec9
Some minor restructuring and cleanup.
2012-11-07 21:15:18 +01:00
svdijk
1c0934f462
Game cleanup.
2012-11-07 21:10:48 +01:00
svdijk
eb8a2d792f
Minor console mouse release tweak.
2012-11-05 21:33:44 +01:00
svdijk
8c8fba7421
Refresher cleanup.
2012-11-05 21:33:35 +01:00
Yamagi Burmeister
82275f636e
Merge branch 'master' of github.com:yquake2/yquake2
2012-11-04 18:52:27 +01:00
Yamagi Burmeister
d263e896cf
Use an enum for "qboolean" on OS X
...
Defining "qboolean" to something other than an enum changes the size of
some structs. That in turn breaks compatiblity with mods that use the
enum define. With this change the addons (tested with xatrix and rogue)
are running on OS X. Many thanks to my sister for lending me her
Macbook.
2012-11-04 18:47:15 +01:00
Yamagi Burmeister
5c217771cb
Use correct include path on OS X
...
This path matches the libjpeg.framework we'll use to build the
binary releases.
2012-11-04 09:23:25 +01:00
Yamagi Burmeister
86ca73754d
Silence a compiler warning on OS X
2012-11-04 09:18:37 +01:00
svdijk
7be7f6831f
backends/sdl/input.c: only call SDL_WM_GrabInput() when needed.
2012-10-30 20:36:29 +01:00
svdijk
64632bbc3b
client/cl_main.c:UpdateWindowedMouse(): release mouse in menu.
2012-10-30 20:36:23 +01:00
svdijk
76e3480ccb
Some rewriting of windowed_mouse setting, in preparation of releasing the mouse in the menu.
2012-10-30 20:36:15 +01:00
svdijk
a1adac8ba9
client/menu/menu.c: make ConsoleFunc() consistent with cl_console:Con_ToggleConsole_f().
2012-10-30 20:36:10 +01:00
Ricardo Garcia
74beca0d11
Add "horplus" cvar to get Hor+ behavior with default FOV
...
If "horplus" is set, the "fov" cvar is interpreted as the horizontal FOV
in a 4:3 screen, and is adapted automatically to the current screen
aspect ratio accordingly. If not set, use the old Vert- approach.
In addition, "horplus" can also be set from the video menu by selecting
the "Auto" option for aspect ratio, which also resets the FOV value to the
standard 90 degrees.
Finally, add a 5:4 aspect ratio (1280x1024) and correct the 16:9 angle
slightly.
2012-10-28 10:20:46 +01:00
Yamagi Burmeister
a79b705c13
Make cl_maxfps persistent
2012-10-06 09:15:32 +02:00
Yamagi Burmeister
687ca61dfa
Fix gl_swapinterval
2012-10-06 09:14:12 +02:00
Yamagi Burmeister
943c29804c
Add the SDLMain SDL wrapper, needed for OS X
2012-09-14 11:46:22 +02:00
Yamagi Burmeister
e9c5c3ca8e
Add savegame defines for OS X
2012-09-14 11:32:42 +02:00
Yamagi Burmeister
ba10009aa5
Add support for Mac OS X
...
These are the code changes and Makefile changes necessary to build and
run Yamagi Quake II on Max OS X. OS X 10.6 or higher is required, older
version may work but we cannot guarantee it. The documentation will be
added in another commit. This patch was contributed by W. Beser, I made
only some small cosmetical changes.
2012-09-14 11:21:02 +02:00
Yamagi Burmeister
dd6ed24104
Bump version number to 5.00
2012-09-03 14:34:51 +02:00
Sander van Dijk
1f2452e7a6
src/game/g_weapon.c: Some sanity check changes.
2012-08-28 17:05:31 +02:00
Yamagi Burmeister
7958767922
Blaster shots shall not explode at the skybox
2012-08-26 15:38:00 +02:00
Yamagi Burmeister
4a81e58128
Okay, do the last commit acutally right... damage can be NULL.
2012-08-26 14:57:28 +02:00
Yamagi Burmeister
8819ad1c9a
Fix a too strict sanity check in void blaster_touch()
...
This sanity check caused a too early exit of the function if the player
stood directly in front of a wall and fires the blaster or hyper
blaster. Therefor the wall impact effect wasn't drawn. This commit
fixes issue #6 . Many thanks to svdijk for narrowing this problem down to
somewhere between 3.00 and 4.00.
2012-08-26 10:24:55 +02:00
Yamagi Burmeister
ed22ca81c2
Silence a warning with the upcoming Clang 3.2
2012-08-22 14:25:32 +02:00
Jonathan Gray
1f9d6084b6
OpenBSD port
2012-08-18 09:53:03 +02:00
Jonathan Gray
22fa99b713
test SIN6_LEN not __FreeBSD__ for sin6_len
2012-08-12 13:40:43 +10:00
Sander van Dijk
f292c1e22d
Fix custom resolution handling in the video menu.
2012-08-06 14:04:12 +02:00
Yamagi Burmeister
602dd1af6f
Connect non-base OpenGL function by calling wglGetProcAddress() on Windows
...
This is necessary since non-base OpenGL functions can't be connected by
calling the standard GetProcAddress() on Windows. To archive this the
old qwglGetProcAdress() is renamed into GetProcAdressGL() and a new
function pointer qwglGetProcAdress is introduced. On unixoid System it's
NULL and on Windows connected to wglGetProcAddress(). If it's NULL the
system wide function is called, if not the function Pointer is used.
2012-08-03 15:14:45 +02:00
Yamagi Burmeister
739590e639
Do not hide library loading errors behind "developer"
2012-08-03 15:13:58 +02:00
Sander van Dijk
3d4bbe6c31
Fix aspect menu options.
2012-08-03 08:05:09 +02:00
Yamagi Burmeister
efd1ddb1c5
Initialze vid_gamma
2012-08-02 15:33:42 +02:00
Yamagi Burmeister
8141380030
Allow to set the aspect ratio via the menu
2012-08-02 15:18:58 +02:00
Yamagi Burmeister
de9dda7432
Restart the refresher when certain values are changed via the menu
2012-08-02 14:59:51 +02:00
Yamagi Burmeister
f1420ffe75
Use correct default mode
2012-08-02 14:47:18 +02:00
Yamagi Burmeister
3ab4e58df5
Cleanup the video menu, remove support for different refresher
2012-08-02 14:39:33 +02:00
Yamagi Burmeister
c6eaf5c876
Mobe LIBGL makro to common.h and replace all hardcoded libGL calls with it
2012-08-02 14:06:32 +02:00
Yamagi Burmeister
751d39fb50
Update the file header comments
2012-08-02 14:00:04 +02:00
Yamagi Burmeister
8d0dfd2c30
Merge vid.c into 1 generic file
2012-08-01 16:54:09 +02:00
Yamagi Burmeister
f89bb3265e
Combine qgl.c glwindow.h into one generic file
2012-08-01 15:51:39 +02:00
Yamagi Burmeister
e5f70fcf40
Merge qal.c into one generic file for all platforms
...
To archive this, 3 new functions Sys_GetProcAddress(), Sys_LoadLibrary()
and Sys_FreeLibrary() were added to abstract the library loading code
into a platform independend API.
2012-08-01 14:54:18 +02:00
Yamagi Burmeister
399c581f06
Move src/windows to src/backends/windows
2012-08-01 14:12:05 +02:00
Yamagi Burmeister
3fb8492398
Move src/unix to src/backends/unix
2012-08-01 13:58:10 +02:00
Yamagi Burmeister
c5bf1e8c93
Move src/sdl to src/backends/sdl
2012-08-01 13:47:32 +02:00
Yamagi Burmeister
3918d3ba34
Change the VERSION number from float to string
...
Using a float number as version number is a bad idea. Correct this long
standing problem by changing it to a string. If we ever want to compare
version numbers, 2 integer constants "MAJOR_VERSION" and "MINOR_VERSION"
should be added.
2012-07-27 08:57:52 +02:00
Yamagi Burmeister
b52336850f
Reformat the client
2012-07-22 15:34:45 +02:00
Yamagi Burmeister
7bbfa01a87
Fix a unlogical statement
2012-07-22 12:51:53 +02:00
Yamagi Burmeister
6f719f4c7b
Reformat the refresher
2012-07-21 14:09:45 +02:00
Yamagi Burmeister
b1ddebf552
Update "unzip" to version 1.01h
...
This update brings some minor bugfixes, especially for big endian
platforms and LLP64 systems like 64 bit Windows. The support for
encrypted ZIP archives was removed. This is a no-op change, since
there was no way to pass the password to uncrypt. Without the
uncrypt code Yamagi Quake II can be distributed in some countries
with special laws for cryptographic software. The LICENSE was
updated to the most recent version of the INFO-ZIP license.
2012-07-21 12:02:39 +02:00
Yamagi Burmeister
9288513e86
Reformat and cleanup of the server
2012-07-21 10:06:07 +02:00
Yamagi Burmeister
dbed2fa053
Clear display buffer before shutting the refresher down
2012-07-10 15:02:42 +02:00
Yamagi Burmeister
de3da4ba70
Check for gamex86.dll if game.dll wasn't found
...
This change allows the usage of old mods without renaming their game
lib. This is applied to windows only because the few Linux mods out
there are broken since a long time due to incompatible changes in libc
and the kernel. Requested by Victor Sergeevich.
2012-07-09 15:54:20 +02:00
Yamagi Burmeister
7ac71db523
Merge branch 'cleanup'
...
Conflicts:
src/common/header/common.h
src/common/header/shared.h
src/common/misc.c
src/unix/main.c
src/unix/system.c
2012-07-09 14:35:37 +02:00
Yamagi Burmeister
ae99562741
Seed the game PRNG at startup
2012-06-26 14:31:01 +02:00
Yamagi Burmeister
fd44d3078f
Fix path length limitation (pointed out by Daniel)
2012-06-24 18:11:55 +02:00
Yamagi Burmeister
590baaa3e9
Remove some potential harmfull "long"
...
While the use of "long" was harmless in this case, it's unnecessary and
we try to keep Quake II free from longs.
2012-06-22 09:44:26 +02:00
Yamagi Burmeister
c80954a65e
Remove support for qhost
...
qhost was a proprietery management application for Quake II dedicated
servers. Since we don't know if the code is still working and most
likely no one uses it anymore, remove it. This war requested by Daniel.
2012-06-22 09:06:27 +02:00
Yamagi Burmeister
0353f6fc42
Remove support for partitial installations
...
This was requested by Daniel. While partitional installations were
working, they are another distinction between Linux and Windows and
useless. Everyone should have the ~350MiB for a full installation.
And full installations are much faster.
2012-06-22 08:49:12 +02:00
Yamagi Burmeister
b96d247db3
Create homedir before redirecting stdout and stderr
2012-06-21 09:26:37 +02:00
Yamagi Burmeister
2df1f31683
Enable qconsole.log by default
2012-06-20 13:52:47 +02:00
Yamagi Burmeister
4fe877b5f6
Do not print the client build options when starting q2ded
2012-06-20 13:49:06 +02:00
Yamagi Burmeister
b3f09db95c
Print build options at startup
2012-06-20 13:40:49 +02:00
Yamagi Burmeister
8558a6af11
DO not redirect the stdout and stderr when running as dedicated server
2012-06-20 13:40:49 +02:00
Yamagi Burmeister
847128cb76
Close stderr and stdout at shutdown
2012-06-20 13:40:49 +02:00
Yamagi Burmeister
5d85a66fed
Print console messages and errors to stdout
2012-06-20 13:40:49 +02:00
Yamagi Burmeister
984badffa0
Remove unused function Sys_Warn()
2012-06-20 13:40:48 +02:00
Yamagi Burmeister
74e6993d6f
Remove unused function Sys_Printf()
2012-06-20 13:40:29 +02:00
Yamagi Burmeister
1a748adaa5
Remove the "nostdout" cvar
...
The "nostdout" cvar was only existent on unixoid platform and
disfunctional. Since the stdout putput is very helpfull when
debugging things, just remove it.
2012-06-20 13:40:10 +02:00
Yamagi Burmeister
229e13e6f4
Redirect stdout and stderr into files
2012-06-20 13:39:18 +02:00
Yamagi Burmeister
c0e9a6f045
Make Quake II compatible with unicode directory names
...
This changes employs a horrible hack to connect the ASCII Quake II to
the UTF-16 WinAPI. The path to "My Documentes" is read in UTF-16, then
converted to a old "DOS style path" with 8.3 characters. This DOS path
has by convention no UTF-16 characters in it and can be converted into
a normal ASCII string. This ASCII string is the path used by Yamagi
Quake II. The conversion logic will fail if the "Windows to DOS
filename transistion" is deactivated in the registry (it's on by
default). In that case no homedir is used and the "Windows Roaming
Mechanism" kicks in.
2012-06-20 13:39:18 +02:00
Yamagi Burmeister
e1f338f59b
Reformat the headers
2012-06-18 10:46:31 +02:00
Yamagi Burmeister
e3690bcaab
Bump version number to 4.90
...
This is done to distinguish the upcoming "Yamagi Quake II - Windows Test I"
from the normal 4.21 version.
2012-06-18 09:51:59 +02:00
Yamagi Burmeister
63cdbff0e3
Merge branch 'windows' into cleanup
2012-06-14 12:30:52 +02:00
Yamagi Burmeister
7b54f3d668
Merge branch 'master' into windows
...
Conflicts:
src/client/sound/snd_al.c
2012-06-14 12:27:09 +02:00
Yamagi Burmeister
61b10f12da
Fix a crash when entering water with s_openal = 0
2012-06-14 12:24:29 +02:00
Yamagi Burmeister
341014eda0
Merge branch 'scanbuild' into windows
2012-06-14 12:18:15 +02:00
Yamagi Burmeister
73e6dc6307
Revert "Convert random() to randk() and crandom() to crandk()"
...
This reverts commit 12ce981d64
.
2012-06-14 12:12:57 +02:00
Yamagi Burmeister
060235e7dd
Merge branch 'windows' into cleanup
...
Conflicts:
src/common/filesystem.c
src/sdl/input.c
src/sdl/refresh.c
src/unix/system.c
2012-06-11 11:21:16 +02:00
Yamagi Burmeister
2c0148bab5
Enlargen MAX_OSPATH to 256 on Windows
...
This is necessary due to the extrem long homedir-pathes in some Windows
localizations. While it would be nice to have the same value on all
platform it would break existing savegames and don't think that it's
worth that.
2012-06-11 10:25:12 +02:00
Yamagi Burmeister
47707a728e
Use Windows headers on Windows
2012-06-11 10:18:44 +02:00
Yamagi Burmeister
e70067ceba
Refactor the "home"-path finding logic into own functions
...
With this change the homedir is no longer selected in the filesystem,
but in platform dependend functions. This allows us to use WINABI calls
for selection, resulting using the apropriate diretory on localized
versions of Windows XP.
2012-06-11 09:55:54 +02:00
Yamagi Burmeister
e8eea857e4
Fix another buffer overflow, this time when writing the config.cfg
...
This overflow is a problem on all platforms but manifested itself
especially on a german Windows XP due to it's long profile path.
2012-06-10 18:45:14 +02:00
Yamagi Burmeister
6c2f97927e
Add a missing brace twisting the logic of the Windows XP check
2012-06-09 11:42:35 +02:00
Yamagi Burmeister
87e62a3724
Reformat
2012-06-08 13:01:56 +02:00
Yamagi Burmeister
26b15dbe07
Reformat
2012-06-08 12:23:01 +02:00
Yamagi Burmeister
9ad40b2a17
Cleanup and reformat.
2012-06-07 15:40:58 +02:00
Yamagi Burmeister
ac6748e7d2
Merge the collision model back into one file
2012-06-07 15:04:45 +02:00
Yamagi Burmeister
d12f0c642f
Recombine the message handling back into one file
2012-06-07 14:33:09 +02:00
Yamagi Burmeister
e0faf784a6
Move stuff from common/common/ to common/
2012-06-07 13:54:08 +02:00
Yamagi Burmeister
56aff1dc89
Recombine the command parser in one file
...
Spliting it into several files seemed logical but in retrospect it was
a bad idea, unnecessary complicating the code.
2012-06-07 13:35:33 +02:00
Yamagi Burmeister
16e57ede33
Fix some indention issues
2012-06-06 18:06:08 +02:00
Yamagi Burmeister
39677c1b0f
Fix a potential buffer overflow
2012-06-06 17:55:37 +02:00
Yamagi Burmeister
d8e35b82c7
Reformat the sound system code
...
caedes and some other people will probably kill me for this, but I'm the
idiot who has to maintain the code. And that's much easier if it's in a
readable und writeable state.
2012-06-06 11:13:07 +02:00
Yamagi Burmeister
51cc3369b1
Provide an optimized case for mixing 16 bit / 2 chan sound
...
With sound quality "high" nearly all sound is provided as 16 bit PCM
with 2 channels. Since most players use this setting, provide an optimed
case for it. This should also solve the cracking due to overshot
soundbuffers, which was especially noticeable on Windows. This changes
only effects the old SDL soundbackend and not OpenAL.
2012-06-06 10:34:36 +02:00
Yamagi Burmeister
15400b2133
Use memset() instead of array magic
2012-06-06 10:02:55 +02:00
Yamagi Burmeister
272b897919
Reformat snd_mix.c
2012-06-06 09:58:06 +02:00
Yamagi Burmeister
f5233db0b2
Add IPv6 support for Windows
...
This is essentially a port of unix/network.c to windows.
2012-06-06 09:48:48 +02:00
Yamagi Burmeister
0c74a1af75
Create profile in Documents instead of AppData
2012-06-05 14:28:34 +02:00
Yamagi Burmeister
d17d996dc5
Import Sys_Mkdir() into the refresher
2012-06-05 14:19:29 +02:00
Yamagi Burmeister
7715592aaa
Write config data in AppData
...
Under Windows all config data is written to %USERPROFILE%\AppData\
Local\YamagiQ2. To archive this code was added that translates Windows
pathes with backslashes into Unix pathes with normal slashes.
2012-06-05 12:52:44 +02:00
Yamagi Burmeister
0b9ec45eb7
Remove leftovers from the softrenderer
2012-06-05 10:54:47 +02:00
Yamagi Burmeister
de3e53069f
Remove Alt-Tab handling. It's done by SDL
2012-06-05 10:50:24 +02:00
Yamagi Burmeister
a55d717a80
Replace atoi() with strtol() in Windows code
2012-06-05 10:46:15 +02:00
Yamagi Burmeister
af83f80dff
Add header guards to new headers
2012-06-05 10:42:30 +02:00
Yamagi Burmeister
28be8cda8e
Work around the missing _controlfp prototypes in MinGW
2012-06-05 10:29:20 +02:00
Yamagi Burmeister
58c3b22c8a
Add platform defines for Windows
2012-06-05 10:17:01 +02:00
Yamagi Burmeister
ca18af254e
Remove Sys_AppActivate()
...
This code is unnecessary because SDL handles all activation events,
brings the Window into foreground, etc.
2012-06-05 10:11:29 +02:00
Yamagi Burmeister
21ab0de692
Remove support for the Windows clipboard
...
This was just broken and rewriting it is not worth the efford
2012-06-05 10:09:24 +02:00
Yamagi Burmeister
d1008a564d
Port OpenAL to Windows and enable it by default
2012-06-05 09:57:30 +02:00
Yamagi Burmeister
4021087a38
Make the SDL sounddriver selectable via s_sdldriver
...
This is necessary since the default "waveout" driver on windows is
incompatible to Quake II (due to too big output buffers) and "dsound"
can't be forced since it's not available on some installations. The
default driver is choosen by platform:
Windows -> dsound
FreeBSD -> dsp
Linux -> alsa
2012-06-05 09:03:46 +02:00
Yamagi Burmeister
2629f908ae
Initialize randk() and startup
2012-06-04 16:24:37 +02:00
Yamagi Burmeister
ea02b14ca7
Poke the input subsystem at every frame to process events
2012-06-04 13:51:46 +02:00
Yamagi Burmeister
6b650e9ea7
Initialize the input backend
2012-06-04 13:40:23 +02:00
Yamagi Burmeister
6b7bc06074
opengl32.dll is the default gldriver on Windows
2012-06-04 13:13:14 +02:00
Yamagi Burmeister
27de5f3a6f
Fall back to opengl32.dll if the gldriver couldn't be loaded
2012-06-04 13:10:12 +02:00
Yamagi Burmeister
5523cc8de2
Use correct name to query the refresher
2012-06-04 12:52:54 +02:00
Yamagi Burmeister
51869fbc9d
Add qgl.c for Windows
...
This file was taken from ioQuake2 and altered for inclusion in Yamagi
Quake II.
2012-06-04 12:42:55 +02:00
Yamagi Burmeister
0d46fed529
Add Windows stuff
...
This code was taken from ioQuake2 and altered for inclusion in Yamagi
Quake II
2012-06-04 12:41:29 +02:00
Yamagi Burmeister
d0146dc4d5
Hide native JPEG and TGA loading functions behind RETEXTURE
2012-06-04 12:40:58 +02:00
Yamagi Burmeister
b42f208fd0
Include windows.h in refresh/header/local.h
2012-06-04 12:26:49 +02:00
Yamagi Burmeister
0365c93138
Add glwindow.h for Windows
...
This file was taken from ioQuake2 and altered to work with Yamagi Quake
II
2012-06-04 12:08:18 +02:00
Yamagi Burmeister
b8792c7fc0
Use correct SDL include path under Windows and hide X11 stuff
2012-06-04 11:52:07 +02:00
Yamagi Burmeister
51ca0ca673
Define missing OpenGL extensions for Windows
...
While this is not the 100% correct way, it's much cleaner than just
importing th whole header files.
2012-06-04 11:46:08 +02:00
Yamagi Burmeister
86f89fce22
Implement vid.c for Windows
...
This file was taken from ioQuake2 and modified to work with Yamagi Quake
II. It may not be perfect yet, but should be good enough to the client
up and running.
2012-06-04 11:09:43 +02:00
Yamagi Burmeister
5d272eeab8
strsep() is a FreeBSDism. Switch over to strtok().
2012-06-04 10:53:55 +02:00
Yamagi Burmeister
a4609fc42b
Use correct include pathes to SDL under Windows
2012-06-04 10:02:01 +02:00
Yamagi Burmeister
7d3b9a5c00
Ignore errors of AllocConsole()
...
This errors are harmless and thrown when the process is already attached
to a console. Since the dedicated server is a console application the
console is created by Windows at startup...
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
4e37958b63
Stub Sys_Init() for Unix and call it while initializing
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
32dc525124
Stub NET_Init() for Unix and call it while initializing
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
d2177bb618
Open binary files in mode "rb" instead of "r"
...
This subtile bug didn't show on unixoid platforms, but led to problems
on Windows.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
991ff17f1b
Implement Sys_GetCurrentDirectory()
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
1a3b54b27e
Move glob.c and glob.h to common
...
We need glob_match() for Windows
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
280a432161
Comment Sys_AppActivate() since cl_hwnd will be ported later
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
f3bead4f6b
Add Windows network functions in network.c
...
This file was taken from ioQuake2 and refactored to match Yamagi Quake
II. It would be nice to have IPv6 support and to remove the old IPX
cruft, but that happen now.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
0b226ce838
Include ctype.h and silence some warnings
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
263156bda7
Implement system depended file handling
...
Those functions were taken from ioQuake2 and refactored to match Yamagi
Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
bd1070eff2
Remove FS_DeletePath() and Sys_Rmdir()
...
Thise functions where added with the filesystem rewrite but never used.
Removing them saves us from implementing Sys_Rmdir() for Windows.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
a6f22f0f5a
Implement Sys_Milliseconds
...
This function was taken from ioQuakeII and refactored to match Yamagi
Quake II
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
05f7e37c77
Add memory handling functions in mem.c
...
This code was taken from ioQuake2, refactored into an own file and
altered for the inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
e8d44459a4
Use correct types and remove unused variables
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
d9560b4020
Hide calls to CL_Shutdown() behind !DEDICATED_ONLY
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
8ca30adf46
Do not set the FPU state
...
This is a workaround for a MinGW bug and should be resolved before the
first CFT is released. A TODO item was added in a preceding commit.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
39ae083340
Remove DirectX variables
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
1782c5ab30
Add winquake.h
...
This header containts Windows specific stuff. It was taken from ioQuake2
and cleaned up for inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
f0e23f199d
Add resource.h
...
This is the "Windows resource file", required by every Windows
application
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
0eb042555b
Add conproc.c and the coresponding header
...
conproc.c implements support functions for the console windows used by
the dedicated server. It was taken from ioQuake2 and cleaned up for the
inclusion in Yamagi Quake II.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
4adc6a2ca2
Add windows/system.c
...
This files contains most support functions for windows and the main
loop. It was taken from Icculus Quake II and cleaned up. This early
version may still have bugs.
2012-06-04 09:13:30 +02:00
Yamagi Burmeister
ce3d61ef61
Remove unused Sys_CopyProtect stup
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
cac409b116
Remove old setuid() magic
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
66c6122bbb
Back out if Quake II is run as root or if eUID != rUID
...
This is a sanity check to prevent stupid users from running Quake II as
root or as a setuid binary. Quake II is such a mess that running it as
root or setuid is just reckless.
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
83e069feb2
Abort if the clipplane is NULL.
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
e11a15308b
Use Com_Error instead of Sys_Error
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
9823a23a91
Initialize sounds[] to avoid garbage branch conditions down below
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
1deb069085
Remove dead assignments
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
afd2f4538c
Return in case of possible overflow
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
41a704a13e
Do not turn stack address into a global variable
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
36a41f9746
Prevent a divion by zero
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
b1dfcb7aff
Convert random() to randk() and crandom() to crandk()
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
9f45bd38f2
Ensure that pseudo random numbers are always >0
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
35e5bbb48b
Convert rand(), crand() and frand() to randk(), crandk() and frandk()
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
99520d1331
Implemented the new random generator in shared.h instead of common.h
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
28c200a2e8
Implement crandk() and frandk() and remove old functions
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
253373dbda
Seed the new PRNG at startup
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
056f4d287b
Add rand.c, an implementation of G. Marsaglia KISS PRNG
2012-06-04 09:13:29 +02:00
Yamagi Burmeister
edae2b0473
Change atof() to strtod()
2012-06-04 09:13:28 +02:00
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
60dfaee439
Remove old setuid() magic
2012-06-02 16:46:25 +02:00
Yamagi Burmeister
f28e005e1e
Back out if Quake II is run as root or if eUID != rUID
...
This is a sanity check to prevent stupid users from running Quake II as
root or as a setuid binary. Quake II is such a mess that running it as
root or setuid is just reckless.
2012-06-02 16:33:12 +02:00
Yamagi Burmeister
deaeac42b7
Abort if the clipplane is NULL.
2012-06-02 13:40:49 +02:00
Yamagi Burmeister
6cafb22a9c
Use Com_Error instead of Sys_Error
2012-06-02 13:31:20 +02:00
Yamagi Burmeister
42da811355
Initialize sounds[] to avoid garbage branch conditions down below
2012-06-02 13:29:08 +02:00
Yamagi Burmeister
6befae2ffd
Remove dead assignments
2012-06-02 13:21:22 +02:00
Yamagi Burmeister
bf02575b1e
Return in case of possible overflow
2012-06-02 13:18:33 +02:00
Yamagi Burmeister
ef3c9bf620
Do not turn stack address into a global variable
2012-06-02 13:06:12 +02:00
Yamagi Burmeister
4ece3714aa
Prevent a divion by zero
2012-06-02 12:56:07 +02:00
Yamagi Burmeister
12ce981d64
Convert random() to randk() and crandom() to crandk()
2012-06-02 12:30:20 +02:00
Yamagi Burmeister
fc2d67bac1
Ensure that pseudo random numbers are always >0
2012-06-02 12:11:14 +02:00
Yamagi Burmeister
40ff7a6b09
Convert rand(), crand() and frand() to randk(), crandk() and frandk()
2012-06-02 11:55:12 +02:00
Yamagi Burmeister
a0ccf86660
Implemented the new random generator in shared.h instead of common.h
2012-06-02 11:32:45 +02:00
Yamagi Burmeister
effc7b3c35
Implement crandk() and frandk() and remove old functions
2012-06-02 11:22:54 +02:00
Yamagi Burmeister
7bd1392a5a
Seed the new PRNG at startup
2012-06-02 10:59:43 +02:00
Yamagi Burmeister
97f7ba0610
Add rand.c, an implementation of G. Marsaglia KISS PRNG
2012-06-02 10:56:40 +02:00
Yamagi Burmeister
881b935b65
Change atof() to strtod()
2012-06-02 10:33:28 +02:00
Yamagi Burmeister
67dbe816c9
Change atoi() to strtol()
2012-06-02 10:24:52 +02:00
Yamagi Burmeister
fc679896f5
Explicit cast
2012-06-02 09:07:20 +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
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
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
b6325d7858
Remove unused variables and dead code (patch submitted by Christoph
...
Mallon)
2012-04-30 10:02:58 +02:00
Christoph Mallon
ab034114b4
Whitespace fixes.
2012-04-30 08:25:59 +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
4203bed129
Bump version number to 4.20
2012-04-29 08:08:21 +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
Daniel Gibson
632bd0a776
Enforce "C" lokale, this time correctly
...
Now when some braindead alsa/ladspa plugin calls setlocale(LC_ALL, "") the
locale is (still) set to "C" and not some other locale that may fsck up printf
and scanf formats
2012-04-28 19:39:36 +00:00
Daniel Gibson
669a78de12
Compiletime options in Makefile overwritable from console
...
And a small fix that shuts up a compiler warning
2012-04-28 19:38:07 +00:00
Daniel Gibson
53d54b1f23
Merge OpenAL branch
2012-04-28 15:58:50 +00:00
Daniel Gibson
31f9af817f
Last fixes and cleanups for OpenAL support
...
* New license header in snd_al.c
* README fixes
* Fix printing of used OpenAL device
* Cleanup in snd_al.c
2012-04-28 15:44:14 +00:00
Yamagi Burmeister
c62e5ac85b
- Implement AL_UnqueueRawSamples() and use it to stop the Vorbis playback
...
imediatly
- Increase Vorbis buffers to 64. 24 were to few
2012-04-27 14:06:08 +00:00
Yamagi Burmeister
2b6389a471
Filter sound samples (not the music) when under water
2012-04-27 13:55:45 +00:00
Yamagi Burmeister
1a0b4ebad5
Do not set / enable / show the s_openal CVAR if the binary is build
...
without OpenAL support. OpenAL is enabled in the default Makefile and if
it's disabled, it's shown at startup.
2012-04-27 12:00:22 +00:00
Yamagi Burmeister
905b31a918
Integrate OpenAL into the options system
2012-04-25 10:09:30 +00:00
Yamagi Burmeister
a388254252
Fix a missmerge
2012-04-25 10:09:16 +00:00
Yamagi Burmeister
2c3c203097
Merge out new options framework from the trunk
2012-04-25 09:57:17 +00:00
Yamagi Burmeister
38943b3573
Print build options at startup
2012-04-25 09:50:06 +00:00
Yamagi Burmeister
048f680701
Hide ZIP support behind ZIP
2012-04-25 09:12:02 +00:00
Yamagi Burmeister
92da6ed580
Hind retexturing support behind RETEXTURE
2012-04-25 08:59:40 +00:00
Yamagi Burmeister
03015a686b
Hide music playback from CD behind CDA
2012-04-25 08:53:25 +00:00
Yamagi Burmeister
9d60a5de6a
Hide OGG/Vorbis support under OGG
2012-04-25 08:24:38 +00:00
Yamagi Burmeister
f836cef4c4
Rename qal_api.c to unix/qal.c and qal_api.h to unix/header/qal.h.
...
Both files are platform dependend and won't work on non unixoid
platforms.
2012-04-24 14:20:01 +00:00
Yamagi Burmeister
bf6d491af3
- Refactor AL_SoundInfo() into the platform dependent
...
QAL_SoundInfo().
- Use QAL_SoundInfo() to print the OpenAL infos
at startup and by the "soundinfo" command.
- Implement printing of all available OpenAL
devices at startup and by the "soundinfo"
command.
2012-04-24 14:07:33 +00:00
Yamagi Burmeister
79c137254a
Rework qal_api.c and qal_api.h:
...
- Reformat to match "our" coding style
- Unroll all unreadable macros
- Remove the use of goto
2012-04-24 13:22:05 +00:00
Yamagi Burmeister
4ff4bf09e9
Merge the trunk back into the openal branch.
2012-04-23 14:09:33 +00:00
Yamagi Burmeister
479aae4a9c
*gna* This \n got lost on the way
2012-04-23 13:57:36 +00:00
Yamagi Burmeister
90d0811185
Delete all OpenAL sources at shutdown
2012-04-23 13:55:25 +00:00
Yamagi Burmeister
134878e996
- Some more minor style cleanup
...
- Much improved startup log messages
2012-04-23 13:44:12 +00:00
Yamagi Burmeister
678e50bf8d
Raise the volume of a positioned sample by 384 instead of 255 when using
...
OpenAL. This makes them much more distinguishable from the background
music.
2012-04-23 13:23:47 +00:00
Yamagi Burmeister
3bce2a212a
- Use a better way to calculate the number of buffers
...
used by OGG/Vorbis. 24 buffers are enough for smooth
and stutter free playback and ensure, that OGG_Stop()
is effective nearly immediately.
- Change C99 comments to C89, since snd_vorbis.c is
a C89 file. Caedes will beat me for this :/
2012-04-23 07:59:39 +00:00
Daniel Gibson
3d7013e12b
Fix: Cvar_Get needs a string as default value, not an int..
2012-04-22 20:28:41 +00:00
Daniel Gibson
8bfc61b564
Introduce s_openal to enable/disable OpenAL
...
And fix possible dangling else problem in that code
2012-04-22 20:27:02 +00:00
Daniel Gibson
efd85a76c6
Updated paintedtime in OpenAL mode so shotgun sounds right
...
probably fixes other issues as well.
2012-04-22 20:14:56 +00:00
Daniel Gibson
65914b342d
Allow DMA/SDL sound in OGG_Stream when compiling with USE_OPENAL
2012-04-22 17:59:03 +00:00
Yamagi Burmeister
e388a425b4
Enable OGG/Vorbis playback in OpenAL mode.
2012-04-22 17:50:15 +00:00
Daniel Gibson
04fd7f2cda
OpenAL Streaming Sound stuff
...
from zeq2, but adapted/stripped down for our needs.
Videos work (for me), music does not (yet)
2012-04-22 15:59:18 +00:00
Daniel Gibson
6384b850f1
Remove redundancy
2012-04-22 15:57:59 +00:00
Daniel Gibson
f4d5040a73
Add OpenAL stuff to Makefile, make it compile and work (no streaming sound yet)
...
It works \o/
It's still hacky so it needs more work.
And streaming sound (OGG music, sound from videos) is still missing.
2012-04-22 00:24:50 +00:00
Yamagi Burmeister
fc32d16d42
Print
...
- OS
- CPU
- byte ordering
at startup
2012-04-19 13:33:48 +00:00
Yamagi Burmeister
179ec5538e
Move strlwr() into shared.c and don't link main.c into the refresher
2012-04-19 13:22:50 +00:00
Yamagi Burmeister
a7aa1e93c0
Rename misc.c to main.c
2012-04-19 13:14:03 +00:00
Yamagi Burmeister
8930dc512f
Enforce "C" locale
2012-04-19 13:11:00 +00:00
Yamagi Burmeister
b6bb97e223
- add support for big endian CPUs
...
- enable the build on SPARC64
- add runtime-requirements for SPARC64
- bump version number to 4.10
2012-04-16 06:54:48 +00:00
Daniel Gibson
7e0a44825e
OpenAL support, from Q2Pro
...
Copied and adapted (hopefully) all relevant code from Q2Pro.
Did some small refactorings when needed.
Still TODO:
* Adapt Makefile
* OGG support when using OpenAL
* A cvar that switches between OpenAL and DMA/SDL
* Actually compiling and testing this stuff ;)
2012-04-15 02:58:01 +00:00
Yamagi Burmeister
bedb5fb573
Reenable gamma via SDL. The upstream bug was fixed with SDL 1.2.15
2012-03-30 09:11:32 +00:00
Yamagi Burmeister
9339d89bdf
Provide backward compatiblity with libjpeg v6
2012-03-12 10:15:22 +00:00
Yamagi Burmeister
bb9126ae43
Convert GetPCXInfo and GetWalInfo into void functions
2012-03-12 10:00:07 +00:00
Yamagi Burmeister
643cb93e5f
Reformat pcx.c
2012-03-12 09:56:27 +00:00
Yamagi Burmeister
57b06a8bcf
Implement retexturing for PCX files
2012-03-12 09:54:04 +00:00
Yamagi Burmeister
d0133509e1
Provide the gl_retexturing CVAR to switch retexturing off. Default is
...
"1", retexturing enabled.
2012-03-12 09:31:33 +00:00
Yamagi Burmeister
48a0d6a50d
- Reformat wal.c
...
- Add a file header to wal.c
2012-03-12 09:23:44 +00:00
Yamagi Burmeister
1cc06e2841
Reformat the JPEG loader
2012-03-12 09:21:19 +00:00
Yamagi Burmeister
7db2d76833
Import the Quake III Arena TGA loader and replace out implementation
...
with it. The Q3A is about ~40% faster and supports more types of TGA
files, including bottom to top encoded images.
2012-03-12 09:16:59 +00:00
Yamagi Burmeister
43fcc8eb99
Scale the replacement textures to the size of the original texture
2012-03-12 08:53:22 +00:00
Yamagi Burmeister
9edf27f103
Reactor yesterdays work
2012-03-12 08:11:22 +00:00
Daniel Gibson
1d8109cbbc
Work in progress version of the retexterung support. The next step is to alter
...
r_LoadPic, so that it accepts realwidth and realheight as additional arguments
and uses them to manipualte image after uploading it into the vram.
2012-03-11 19:01:49 +00:00
Daniel Gibson
441c988b31
- Add JPEG support
...
- Refactor call to LoadTGA so it returns image_t * directly
2012-03-11 16:50:57 +00:00
Yamagi Burmeister
2b2e996dda
Make windowed_mouse CVAR_USERINFO
2012-03-08 11:33:58 +00:00
Yamagi Burmeister
042ec93bfe
Rename r_lefthand to gl_lefthand to match the other renderer cvar. This
...
is a noop, since this is an internal cvar to exposed to the user.
2012-03-08 11:30:30 +00:00
Yamagi Burmeister
1f3ce73a75
Add gl_farsee (by Richard Allen)
2012-03-08 11:24:45 +00:00
Yamagi Burmeister
3dbd925c34
Remove a unnecessary \n
2012-02-29 20:58:37 +00:00
Yamagi Burmeister
8ff3880457
But our head even deeper into the users anus
2012-02-29 20:56:51 +00:00
Yamagi Burmeister
75df000d27
Flesh the message printed by the signal handler more out and print the
...
compiler used to create the binary.
2012-02-29 20:54:31 +00:00
Yamagi Burmeister
c7eac16467
Tell the user to include the executable image
2012-02-28 20:24:33 +00:00
Yamagi Burmeister
d87328293c
Add a CHANGELOG entry
2012-02-27 11:33:32 +00:00
Daniel Gibson
b70dc11672
- Fix memory leaks in the server start menu by not
...
creating the maplist each time it's called, but
preserve it across several calls.
- Fix M_PushMenu a second time by taking a corner
case into account when the requested menu is
opened and on the stack but not on top.
2012-02-26 20:21:40 +00:00
Daniel Gibson
32377a6b57
Fix crash when opening menu twice via hotkeys
...
Now this closes the menu again, faking toggling behaviour
2012-02-26 18:58:48 +00:00
Yamagi Burmeister
04f5ff9523
Bump version number to 4.03
2012-02-17 08:18:25 +00:00
Yamagi Burmeister
6b2ef052ef
Add a comment about GL_POINT_SMOOTH on Mesa3D
2012-02-12 16:53:41 +00:00
Yamagi Burmeister
35493a49b4
Print the version number in the window title
2012-02-09 16:56:24 +00:00
Yamagi Burmeister
f8a9f6ead4
- Define the values for point parameters in qgl.h. They should be
...
set by the OpenGL implementation somewhere in gl.h but apperently
the values are sometimes wrong...
- AND the particle color with 0xFF. This is a no-op with most
OpenGL implementations but may help Mesa3D. Suggest by
"hukaru" on IRC.
2012-02-09 16:30:17 +00:00
Yamagi Burmeister
0f7b422ded
- Switch multitexturing by default to 1
...
- Switch paletted textures (8 bit textures) to 0
2012-02-09 15:13:51 +00:00
Yamagi Burmeister
cf7d2645cc
Fix gl_ext_multitexturing set to 1
2012-02-09 15:11:35 +00:00
Yamagi Burmeister
4b1c43e98a
Do not call the low level function to create a directory, but the
...
filesystem internal high level API function. While here remove a
debug printf().
2012-02-07 12:25:32 +00:00
Yamagi Burmeister
146450c3e0
Bump version number to 4.02
2012-01-08 16:44:45 +00:00
Daniel Gibson
f75ea6203b
Add return 0 in main()
2012-01-07 23:43:16 +00:00
Yamagi Burmeister
642cf678c0
Bump version to 4.01
2011-12-26 08:48:54 +00:00
Yamagi Burmeister
8a5dde5372
Try to recover to gl_mode 4 if the choosen mode could not be set.
...
This is just another hack to help stupid (mostly Ubuntu) users
and imo completly unnecessary.
2011-12-06 13:50:06 +00:00
Yamagi Burmeister
2320693f6a
Change the default mode 4 aka "640x480". This should be saver than 3 aka
...
"640x400"
2011-12-06 13:26:12 +00:00
Yamagi Burmeister
7eee82d981
Add a quirk for the broken intermission in fact1
2011-11-11 11:47:17 +00:00
Yamagi Burmeister
184bbee145
Do not alter the existing info_player_start, create a new one instead
2011-10-24 10:08:02 +00:00
Yamagi Burmeister
a01bcd5972
Fix manual loading of some maps:
...
- create an unnamed info_player_start when necessary
- increase the fixup radius of the coop-connector to 550
- some formation improvemens
- add SP_CreateUnnamedSpawn to the savegames and break them again
2011-10-24 09:26:58 +00:00
Yamagi Burmeister
034e72dced
Add a comment for the last revision
2011-10-23 21:02:55 +00:00
Yamagi Burmeister
ef85571d07
Fix coop startup points in case that the map was loaded via console
2011-10-23 20:34:17 +00:00
Yamagi Burmeister
55f51eb680
Add support for anisotropic filtering
2011-10-17 10:43:48 +00:00
Yamagi Burmeister
0a9585ee1b
Make socket reusable
2011-10-17 10:07:50 +00:00
Yamagi Burmeister
8f04a73f86
Add \n to all error strings
2011-10-17 10:03:45 +00:00
Yamagi Burmeister
d511ed7b03
Add 1280x960. This is the "native" resolution for 19" 4:3 CRTs.
2011-10-15 16:27:19 +00:00
Yamagi Burmeister
07ed4c8b5a
Make the client and server IPv6 aware
2011-10-15 16:18:26 +00:00
Yamagi Burmeister
75e9f6cf85
Prevent a deadlock when trying to open the menu while connecting
2011-10-13 14:01:40 +00:00
Yamagi Burmeister
77de60f274
Fix a rare crash by nullpointer
2011-10-13 13:16:59 +00:00
Yamagi Burmeister
1d6872caa7
Use the actual RIGHT fix -_-
2011-10-13 12:27:17 +00:00
Yamagi Burmeister
4db397a9c6
Add a missing negiator, resulting in skyboxes not hurting the player
2011-10-13 12:08:14 +00:00
Yamagi Burmeister
2e223c4f0a
Add a missing malloc. Without this adding a non-numbered pak would
...
delete all other paks, resulting in an endless loop
2011-10-11 18:42:36 +00:00
Yamagi Burmeister
4ab909892f
Fix a brainfart (do not show deathmatch items in coop)
2011-10-11 09:51:39 +00:00
Yamagi Burmeister
133ac1e5d6
Fix comment
2011-10-11 09:20:29 +00:00
Yamagi Burmeister
13d1ab9bc1
Add 1440x900 and 1920x1080 resolutions
2011-10-10 08:37:35 +00:00
Yamagi Burmeister
cc9f4590c3
Really add signalhandler.c
2011-10-10 07:53:34 +00:00
Yamagi Burmeister
60a2ca3eb9
Add a signal handler to the client
2011-10-10 07:51:16 +00:00
Yamagi Burmeister
d4a60e7b77
- Add yq2.cfg to the code, an example to stuff/ and metion it in the
...
README
- Rename tools/ to stuff/
2011-10-09 17:55:10 +00:00
Yamagi Burmeister
6c250e40da
Rename the config dir to ~/.yq2
2011-10-09 16:59:28 +00:00
Yamagi Burmeister
db9de69884
- Bump savegame version
...
- Bump client version
2011-10-09 16:56:33 +00:00
Yamagi Burmeister
24b5f7fe97
Remove ctf/ from Makefile and simplify it.
2011-10-09 16:55:23 +00:00
Yamagi Burmeister
69b465fb1e
Move game one dir up
2011-10-09 16:12:53 +00:00
Yamagi Burmeister
fb56085d0d
Move ctf/ into it's own subproject.
2011-10-09 16:11:15 +00:00
Yamagi Burmeister
038b7f0126
Remove target_actor and misc_actor. They were never fully implemented
...
and unused
2011-10-09 16:08:49 +00:00
Yamagi Burmeister
27b41e697a
Move player.h to misc/
2011-10-09 15:58:20 +00:00
Yamagi Burmeister
f4cc8ff99d
Correct description
2011-10-09 15:52:10 +00:00
Yamagi Burmeister
36f279fe83
cleanup tank/ and add sanity checks
2011-10-09 15:51:52 +00:00
Yamagi Burmeister
321eef5ec0
cleanup supertank/ and add sanity checks
2011-10-09 15:51:43 +00:00
Yamagi Burmeister
4f1c803c9a
cleanup soldier/ and add sanity checks
2011-10-09 15:51:19 +00:00
Yamagi Burmeister
98d026c97d
cleanup parasite/ and add sanity checks
2011-10-09 15:51:02 +00:00
Yamagi Burmeister
7040761a4c
cleanup mutant/ and add sanity checks
2011-10-09 15:50:37 +00:00
Yamagi Burmeister
0f907646db
cleanup misc/ and add sanity checks
2011-10-09 15:50:23 +00:00
Yamagi Burmeister
75821cba17
cleanup medic/ and add sanity checks
2011-10-09 15:50:07 +00:00
Yamagi Burmeister
9f8610d806
cleanup insane/ and add sanity checks
2011-10-09 15:49:44 +00:00
Yamagi Burmeister
5369804a6f
cleanup infantry/ and add sanity checks
2011-10-09 15:49:04 +00:00
Yamagi Burmeister
71dca0bc24
cleanup hover/ and add sanity checks
2011-10-09 15:48:48 +00:00
Yamagi Burmeister
e589731fa1
cleanup header/ and add sanity checks
2011-10-09 15:48:36 +00:00
Yamagi Burmeister
7442bb1b98
cleanup gunner/ and add sanity checks
2011-10-09 15:48:03 +00:00
Yamagi Burmeister
fbf51542fb
cleanup gladiator/ and add sanity checks
2011-10-09 15:47:46 +00:00
Yamagi Burmeister
41e0b6dfdd
cleanup flyer/ and add sanity checks
2011-10-09 15:47:30 +00:00
Yamagi Burmeister
ea92ba9fe6
cleanup float/ and add sanity checks
2011-10-09 15:46:59 +00:00
Yamagi Burmeister
1cc82146a2
cleanup flipper/ and add sanity checks
2011-10-09 15:46:18 +00:00
Yamagi Burmeister
caf17d1c3e
Cleanup chick and add sanity checks
2011-10-07 16:05:30 +00:00
Yamagi Burmeister
c08a7e1bbe
Rework brain and add sanity checks
2011-10-07 07:23:31 +00:00
Yamagi Burmeister
c64d346e7f
Rework boss3 and add sanity checks
2011-10-07 06:47:52 +00:00
Yamagi Burmeister
3576645846
Rework boss2 and add sanity checks.
2011-10-07 06:20:34 +00:00
Yamagi Burmeister
cf2fb96cce
Rework berserker and add sanity checks
2011-10-07 06:09:55 +00:00
Yamagi Burmeister
7274f27131
Let ctf use the files in common/
2011-10-06 09:13:56 +00:00
Yamagi Burmeister
feaa8a6f21
Move q_shared.c, q_shared.h and m_flash.c into common/
2011-10-06 08:52:26 +00:00
Yamagi Burmeister
77130008cc
Revert CTF macro stuff
2011-10-06 08:04:42 +00:00
Yamagi Burmeister
91ffbf0ba5
Reorder game files
2011-10-06 07:54:45 +00:00
Yamagi Burmeister
bc8a06bdd4
Roll the ctf crap back. It won't work this way, since some low level
...
parts of the code (g_local.h) differ too much. We need a better
solution...
2011-10-05 19:57:25 +00:00
Yamagi Burmeister
c958563b2b
Merge the uncommented rest of the CTF code and fix the Makefile
2011-10-05 18:46:23 +00:00
Yamagi Burmeister
293e360333
COmmit what we have so far. CTF is still broken
2011-10-05 17:28:30 +00:00
Yamagi Burmeister
a729ad3701
- Add header guards
...
- Bring the CTF files over
2011-10-05 16:33:04 +00:00
Yamagi Burmeister
56b41dd705
Merge generic parts of ctf/ with baseq2/. This should have any impact on
...
the baseq2/ source path.
2011-10-05 15:30:11 +00:00
Yamagi Burmeister
0bd9096f7f
Integrate caedes systemwide installation patch
2011-10-04 19:29:40 +00:00
Yamagi Burmeister
b9d907f7ea
Fix a bug introduced in r663
2011-10-04 16:46:51 +00:00
Yamagi Burmeister
9300c3c7e4
Use a better bounding box for rotating brush models.
2011-10-04 16:31:28 +00:00
Yamagi Burmeister
58f1ec91cd
Fix the rare "SZ_GetSpace: overflow" bug, triggered by too much gibs or
...
debris
2011-10-04 16:02:31 +00:00
Yamagi Burmeister
9047d873ab
Do not use the bodyqueue in single player
2011-10-04 15:49:22 +00:00
Yamagi Burmeister
b1b2815b66
Add file headers
2011-10-04 15:30:03 +00:00
Yamagi Burmeister
169145bf80
Reject savegames from another game.so
2011-10-04 15:16:43 +00:00
Yamagi Burmeister
bd5d37c06d
Fix radius damage, broken in r660
2011-10-04 13:18:41 +00:00
Yamagi Burmeister
89f808185d
Remove an unused variable
2011-10-04 13:12:50 +00:00
Yamagi Burmeister
8ba8373440
Commit the cool, amazing and outresolving savegame
...
system. Savegames don't break anymore when the
game.so is recompiled or changed. :)
2011-10-04 13:02:52 +00:00
Yamagi Burmeister
7258574e7f
Add some comments to empty functions
2011-10-04 07:42:28 +00:00
Yamagi Burmeister
212aed50e5
Remove the last "static" function in the game code
2011-10-04 07:38:38 +00:00
Yamagi Burmeister
e1f2b10d5e
Rework q_shared.* and add sanity checks
2011-10-03 17:04:35 +00:00
Yamagi Burmeister
aa9f0cce93
Cleanup of g_local.h
2011-10-03 16:28:11 +00:00
Yamagi Burmeister
f3ca824048
Rework p_weapon.c and add sanity checks
2011-10-03 16:02:22 +00:00
Yamagi Burmeister
1f95708b3d
Add sanity checks to p_view.c
2011-10-03 15:38:43 +00:00
Yamagi Burmeister
6d96faf298
Cleanup of p_view.c, first step
2011-10-03 15:26:23 +00:00
Yamagi Burmeister
daaaebe859
Rework p_trail.c and add sanity checks
2011-10-03 09:06:32 +00:00
Yamagi Burmeister
8c084636f8
Rework p_hud.c
2011-10-03 08:35:27 +00:00
Yamagi Burmeister
0f1de339c2
Add file header and remove static keywords
2011-10-03 08:22:14 +00:00
Yamagi Burmeister
68d82aa2b5
Rework p_client.h again and add sanity checks.
2011-10-03 08:19:44 +00:00
Yamagi Burmeister
b768cea818
Rework g_wepon.c and add sanity checks
2011-10-02 09:02:03 +00:00
Yamagi Burmeister
e9220c468a
Rework g_utils.c and fix the removal of some entity classes
2011-10-02 08:33:36 +00:00
Yamagi Burmeister
6a105cf71d
Rework g_trigger.c, add sanity checks and a bugfix for cases in which a
...
monster spawns in a trigger_hurt.
2011-10-01 11:10:57 +00:00
Yamagi Burmeister
6d5c445ca5
Rework targets and add sanity checks. Add a new mapquirk for fact2 by
...
KMQuake2 and trigger activators via cross level triggers. While this
is unused by baseq2 some editors supported this and thus some custom
maps may use it.
2011-10-01 09:34:28 +00:00
Yamagi Burmeister
04dbcffa03
Rework g_svcmds.c and add sanity checks
2011-10-01 08:47:41 +00:00
Yamagi Burmeister
74ff11850b
Rework g_spawn.c, add sanity checks and plug a memory
...
leak. Honor the COOP-Flag of item, this should be
unused by the main game data but maybe some mappers
used it.
2011-10-01 08:36:02 +00:00
Yamagi Burmeister
e426e7ab82
Rework g_phys.c again. Port some minor bugfixes from Lazarus
2011-09-30 10:08:10 +00:00
Yamagi Burmeister
f17cd52aa1
Make static functions normal
2011-09-30 09:06:48 +00:00
Yamagi Burmeister
2b4f223566
Rework g_monster.c again and add sanity checks. Some minor
...
bugs were fixed too:
- Comment two lines back in which were removed by id. They
SEEM to bee correct
- Slime shouldn't destroy dead monsters (this was lost some
versions ago)
2011-09-30 09:04:35 +00:00
Yamagi Burmeister
f1d3040cde
Rework g_misc.c again and add sanity checks. Fix the rare crash at
...
biggun exit (code ripped from "sculler"). Fix suddenly disapearing black
hole generator model.
2011-09-29 14:04:36 +00:00
Yamagi Burmeister
7f5431c51a
Make functions non static (for new savegame code)
2011-09-28 20:13:41 +00:00
Yamagi Burmeister
45194cad7e
Rework g_main.c
2011-09-28 16:38:01 +00:00
Yamagi Burmeister
717bdcd658
Rework g_items.c again and add sanity checks
2011-09-28 16:26:41 +00:00
Yamagi Burmeister
9c25987531
Rework g_func.c again, add sanity checks and comments.
2011-09-28 08:59:35 +00:00
Yamagi Burmeister
e8b7868eef
Small bugfixes
2011-09-28 06:35:37 +00:00
Yamagi Burmeister
5e924e2f96
Add the license header back
2011-09-28 06:20:21 +00:00
Yamagi Burmeister
bf692e5bc2
Clean g_combat.c up again and at a myriad of sanity checks
2011-09-27 20:03:00 +00:00
Yamagi Burmeister
cda35b691f
Add even more santiy checks to g_cmds.c
2011-09-27 18:01:29 +00:00
Yamagi Burmeister
7dff3c1423
Add many, many sanity checks
2011-09-27 17:40:46 +00:00
Yamagi Burmeister
da9ba25067
Add a sanity check to prevent a potential crash
2011-09-27 16:08:55 +00:00
Yamagi Burmeister
313008eb19
Rework g_cmds.c again
2011-09-27 15:59:09 +00:00
Yamagi Burmeister
0dd8410cb0
Rework g_chase.c again
2011-09-27 15:25:38 +00:00
Yamagi Burmeister
c40fd329cd
Basic rework and cleanup of g_ai.c
2011-09-27 15:16:40 +00:00
Yamagi Burmeister
3214807ebf
Revert r605
2011-09-27 14:34:26 +00:00
Yamagi Burmeister
f77683e60a
Sort grenates into a linked list
2011-08-16 10:19:20 +00:00
Yamagi Burmeister
c196b662b6
Small fixups to grenates and rockets
2011-08-16 09:54:22 +00:00
Yamagi Burmeister
76e4017dea
Small fix of skin replacement
2011-08-16 09:38:13 +00:00
Yamagi Burmeister
672266241c
Initialize some variables
2011-07-02 08:34:02 +00:00
Yamagi Burmeister
0aa45e9736
Fix some warnings with clang
2011-06-27 14:40:16 +00:00
Yamagi Burmeister
54eec20990
Behebt einen potentiellen Nullpointer beim Herausfinden, ob der Spieler
...
vor einem Monster steht.
2011-01-23 14:40:50 +00:00
Yamagi Burmeister
f9fbe8d380
- Nutze 1024 Samples bei 44 kHz. Dies macht Q2 mit dem
...
Pulseaudio-Schrott kompatibel.
- Mache s_khz im Frontend und Backend kompatibel
2011-01-23 09:37:30 +00:00
Yamagi Burmeister
c7dc7eb62f
Fly hinzugefügt
2011-01-11 17:45:00 +00:00
Yamagi Burmeister
bff20f6b7c
Nächter Soundpatch von Ozkan:
...
- Adds a "float volume" argument to snd_dma.c:S_RawSamples()
so that ogg can use it too
- That S_RawSamples now has a volume argument, the
cinematics now honor the volume adjustment instead of
playing at full volume all the time even if volume is
zeroed
- Moves endianism handling from S_RawSamples to codec
level
- Fixes an issue of S_RawSamples with 8 bit stereo samples
(not seen/tested with q2 but with my uhexen2)
- Other minor adjustments
2010-12-20 09:56:37 +00:00
Yamagi Burmeister
f5f5c0d2ca
Korrigiere Endianism im Vorbis-Code
2010-12-03 09:45:49 +00:00
Yamagi Burmeister
4b6c561acc
Erweitere Vorbis-Unterstützung:
...
- Support für Big-Endian Pamps (läuft yQ2 auf sowas überhaupt?)
- Unterstützung für 22khz Vorbis-Dateien (ermöglicht es die
Wave-Dateien aus den Pags in Vorbis zu konvertieren, wenn man denn
drauf steht.)
- Unterstützung für Mono-Dateien (Sinnvoll für Handhelds)
Patch von: Ozkan Sezer
2010-11-30 10:28:20 +00:00
Yamagi Burmeister
b282f41093
Begrenze cl_maxfps per Default auf 95
2010-11-27 11:56:50 +00:00
Yamagi Burmeister
e57aba66c1
Man sollte strncmp() auch richtig anwenden
2010-11-27 11:19:59 +00:00
Yamagi Burmeister
8af8dd1559
Stoppe Ogg-Playback, wenn Track 0 gefordert wird
2010-11-27 10:45:09 +00:00
Yamagi Burmeister
ec4c519053
Fasse 2 if zusammen (by caedes)
2010-11-27 08:05:35 +00:00
Daniel Gibson
365ded42db
fixed mremap() usage on linux
2010-11-26 21:57:14 +00:00
Yamagi Burmeister
7c21154ff7
Versionsnummer auf 3.00
2010-11-26 18:42:19 +00:00
Yamagi Burmeister
d05e5272dd
Überarbeite sv_world.c
2010-11-26 08:36:57 +00:00
Yamagi Burmeister
8a80e54c0b
Räume sv_user.c auf
2010-11-26 08:30:12 +00:00
Yamagi Burmeister
d899229399
Überarbeite sv_send.c
2010-11-26 08:20:11 +00:00
Yamagi Burmeister
cb0159014d
Connectionless server commands in eine eigene Datei
2010-11-26 08:12:50 +00:00
Yamagi Burmeister
5973a3c8e9
Räume sv_main.c auf
2010-11-26 07:33:49 +00:00
Yamagi Burmeister
6c2ae15351
Räume sv_init.c auf
2010-11-26 07:22:46 +00:00
Yamagi Burmeister
c49f21c9d0
Räume sv_game.c auf
2010-11-26 07:13:42 +00:00
Yamagi Burmeister
ca69a68868
Benenne sv_ents.c in sv_entities.c um
2010-11-25 16:52:44 +00:00
Yamagi Burmeister
7d71a7c2ee
Räume sv_ents.c auf
2010-11-25 16:44:50 +00:00
Yamagi Burmeister
e35544ed52
Bennene sv_ccmds.c in sv_cmd.c um
2010-11-25 16:39:19 +00:00
Yamagi Burmeister
5ddb6ab6a1
Den Server-Savegame-Code in eine eigenen Datei
2010-11-25 16:36:27 +00:00
Yamagi Burmeister
bc2e6b671d
Überarbeite sv_ccmds.c
2010-11-25 16:22:55 +00:00
Yamagi Burmeister
a25b89c54a
Lizenzsheader und Guard für server.h
2010-11-25 16:20:12 +00:00
Yamagi Burmeister
58eae60830
Header-Cleanup Teil II
2010-11-25 16:00:56 +00:00
Yamagi Burmeister
bc58c04af4
server.h aufräumen, Stufe 1
2010-11-25 15:55:06 +00:00
Yamagi Burmeister
3c7426f836
Verschiebe server.h in ein Unterverzeichnis
2010-11-25 15:46:36 +00:00
Yamagi Burmeister
ff360644fc
Löse das Verzeichnis client/console auf
2010-11-25 15:32:39 +00:00
Yamagi Burmeister
b859cec1e2
Löse das Verzeichnis client/input auf
2010-11-25 15:28:41 +00:00
Yamagi Burmeister
491386e243
Entferne einige Tasten aus der Wiederholungssperre
2010-11-18 16:13:00 +00:00
Yamagi Burmeister
a6f25f3220
Erweitere die Input-Keye auf 128 Tasten
2010-11-18 15:52:06 +00:00
Yamagi Burmeister
f3ec32343a
Handle auch das Loslassen von tasten
2010-11-18 15:46:25 +00:00
Yamagi Burmeister
aa9877826c
Unnütze Variable entfernt
2010-11-16 11:43:06 +00:00
Yamagi Burmeister
e98ad4b925
Entferne ein unnötiges Anpassen von s_khz
2010-11-01 15:54:56 +00:00
Yamagi Burmeister
758d82fe4c
Deregistriere ogg_init und ogg-shutdown
2010-11-01 15:48:01 +00:00
Yamagi Burmeister
46e378c6d4
Fixe einen schweren Bug, bei dem andere Maustasten nicht ausgelesen
...
wurden, wenn Maus 1 gedrückt war
2010-11-01 15:24:25 +00:00
Yamagi Burmeister
435ae096e4
Repariere einen Bug, durch den Area Portals zum Teil nicht getriggert
...
wurden
2010-10-30 07:40:44 +00:00
Yamagi Burmeister
4ece83cd3c
Sortiere die Liste der uns bei Tab-Vervollständigung vorgeschlagenen
...
CVAR
2010-10-28 07:30:42 +00:00
Yamagi Burmeister
66ac4643cb
Überarbeite das Sound-Menü
2010-10-28 06:28:11 +00:00
Yamagi Burmeister
f0fa091fde
s_khz per Default auf 44
2010-10-28 05:57:13 +00:00
Yamagi Burmeister
7c6551dc0f
Einen kleinen Bug gefixt, der zu Soundclipping führte
2010-10-28 05:56:20 +00:00
Yamagi Burmeister
ec979fb4f5
Headerguards
2010-10-27 13:24:41 +00:00
Yamagi Burmeister
44b65d8ab2
Simple Kommandovervollständigung für die Konsole
2010-10-27 13:12:20 +00:00
Yamagi Burmeister
4c09036741
Fixe einen falschen Cast unter Linux
2010-10-25 15:58:19 +00:00
Yamagi Burmeister
6db456587c
Schreibe das Hardwaregamma auf X11 um :)
2010-10-25 15:57:39 +00:00
Yamagi Burmeister
6e13a06b06
Betaversion des neuen Gamma-Codes
2010-10-25 14:18:04 +00:00
Yamagi Burmeister
95d7d43695
Füge Overbrightbits ein
2010-10-25 13:21:52 +00:00
Yamagi Burmeister
40a91572e0
Baue Texturen auf Basis ner Palette wieder ein
2010-10-25 12:55:59 +00:00
Yamagi Burmeister
6847b33cb5
Füge Multitexturing ein. Dies funktioniert (natürlich) nicht mir Mesa3D
2010-10-25 12:33:55 +00:00
Yamagi Burmeister
8b3002b1dd
Benenne alle r_ CVAR in gl_ um
2010-10-24 08:50:01 +00:00
Yamagi Burmeister
4f8d7137c4
Repariere vid_restart
2010-10-24 08:34:40 +00:00
Yamagi Burmeister
0bca8c4f55
Fixe den Mausfilter
2010-10-23 10:55:53 +00:00
Yamagi Burmeister
07fe1862c7
s/grap/grab/g
2010-10-23 10:19:02 +00:00
Yamagi Burmeister
b48a3d3c73
Benenne windowed_mouse_always in in_grap um
2010-10-23 10:16:25 +00:00
Yamagi Burmeister
8c3179f50e
. vor \n -_-
2010-10-23 10:11:15 +00:00
Yamagi Burmeister
d0e90edcdf
Hier sind zwei "static" falsch
2010-10-23 10:07:22 +00:00
Yamagi Burmeister
fa23a3e516
Ein Versuch Screenshots zu ermöglichen ohne den halben Client in den
...
Renderer linken zu müssen
2010-10-23 09:52:39 +00:00
Yamagi Burmeister
7fc1f607c9
Benenne gl_warp.c in r_warp.c um
2010-10-23 08:55:28 +00:00
Yamagi Burmeister
c4fe0d7b56
Benenne alle Funktionen in gl_warp.c konsistent
2010-10-23 08:53:36 +00:00
Yamagi Burmeister
a5346cbfbe
Benenne gl_scrap.c in r_scrap.c um
2010-10-23 08:33:44 +00:00
Yamagi Burmeister
4681d0a417
Prototype R_Upload8
2010-10-23 08:31:21 +00:00
Yamagi Burmeister
4d647257fa
Benennen gl_rsurf.c in r_surf.c um
2010-10-23 08:28:39 +00:00
Yamagi Burmeister
c79abc2c98
Benennen alle Funktionen in r_lightmap konsistent
2010-10-23 08:27:01 +00:00
Yamagi Burmeister
4c9536e400
- Benenne alle Funktionen in gl_rsurf um
...
- Lightmaps in ne eigene Datei
2010-10-23 08:24:28 +00:00
Yamagi Burmeister
d6acc3b4ea
Bennene gl_rmisc in r_misc um
2010-10-23 07:21:53 +00:00
Yamagi Burmeister
cbc6e22c6f
gl_rmisc in Sachen Funktionsnamen aufgeräumt
2010-10-23 07:19:40 +00:00
Yamagi Burmeister
d1aaaf06b0
Lizenzheader
2010-10-23 06:58:56 +00:00
Yamagi Burmeister
de91dbe5b0
Benennen gl_rmain.c in r_main.c um
2010-10-23 06:56:02 +00:00
Yamagi Burmeister
0677833560
Fixe die gemeinsamen Symbole von Client und Refresh
2010-10-23 06:54:05 +00:00
Yamagi Burmeister
3679d302db
Benennen die Funktionen in gl_rmain.c konsistent
2010-10-23 06:29:01 +00:00
Yamagi Burmeister
05cef57735
Benennen gl_model.c zu r_model.c um
2010-10-23 06:13:38 +00:00
Yamagi Burmeister
f7d69a8a86
Benennen die Funktionen in gl_model.c konsistent
2010-10-23 06:10:23 +00:00
Yamagi Burmeister
2de15c4a73
Bennene gl_mesh.c in r_mesh.c um
2010-10-22 09:29:09 +00:00
Yamagi Burmeister
0b206b07e9
Bennene alle Funktionen in gl_mesh.c von GL_ auf R_ um
2010-10-22 09:26:47 +00:00
Yamagi Burmeister
139ecd30f4
Bennene gl_lights.c zu r_lights.c um
2010-10-22 09:23:44 +00:00
Yamagi Burmeister
5e57fbbc43
Benenne alle Funktionen in gl_light zu R_ um
2010-10-22 09:22:01 +00:00
Yamagi Burmeister
d59ab83f0d
Benenne gl_image.c zu r_image.c um
2010-10-22 09:18:23 +00:00
Yamagi Burmeister
cb49061a4c
Behebe ein wenig Fallout vom letzten Commit
2010-10-22 09:17:19 +00:00
Yamagi Burmeister
7563c221f4
Benenne alle GL_ Funktionen in gl_images.c in R_ um
2010-10-22 09:12:38 +00:00
Yamagi Burmeister
3989b43035
Bennene gl_draw.c in r_draw.c um
2010-10-22 08:48:01 +00:00
Yamagi Burmeister
1d0bbf537c
Lizenzheader und Headerguards
2010-10-22 08:45:31 +00:00
Yamagi Burmeister
cb881567a0
Überarbeite die restlichen Header
2010-10-22 08:41:16 +00:00
Yamagi Burmeister
9fbebbe35c
Überarbeite local.h und reiße noch mehr Graka-Müll der 90er raus
2010-10-22 08:34:01 +00:00
Yamagi Burmeister
cc67d82cfa
Reformatiere die Konstanten
2010-10-22 08:24:29 +00:00
Yamagi Burmeister
4d0c89c728
Entferne spezielle Lightmaps für 90er Jahre Grafikkarten
2010-10-22 08:20:49 +00:00
Yamagi Burmeister
fdae318fba
- Räume gl_warp.c auf
...
- Zeichne die Skybox nicht mit verringerten pixmips
2010-10-22 08:13:03 +00:00
Yamagi Burmeister
5543cc6f0a
Entferne ne doppelte Konstante
2010-10-22 08:04:31 +00:00
Yamagi Burmeister
7ad0d3db7c
Räume gl_rmisc.c auf
2010-10-22 07:51:25 +00:00
Yamagi Burmeister
11e1987d94
- Räume gl_rmain.c auf
...
- Reiße diversen Müll irgendwelcher 90er Jahre Grakas raus
2010-10-22 07:49:17 +00:00
Yamagi Burmeister
8647d97aeb
Kommentar angepasst
2010-10-21 08:21:13 +00:00
Yamagi Burmeister
0e2f4364fb
md2 file format in ne eigene Datei
2010-10-21 08:19:32 +00:00
Yamagi Burmeister
719b958688
sp2 in eine eigene Datei
2010-10-21 08:16:27 +00:00
Yamagi Burmeister
ac31b9efa8
Räume gl_model.c ein weiteres Mal auf
2010-10-21 08:12:50 +00:00
Yamagi Burmeister
b8526fe6ae
gl_mesh ein weiteres Mal aufgeräumt
2010-10-21 08:04:45 +00:00
Yamagi Burmeister
88ecb77a51
gl_lights.c fertig
2010-10-21 07:55:41 +00:00
Yamagi Burmeister
2921a25059
Beende gl_image.c
2010-10-21 07:51:49 +00:00
Yamagi Burmeister
70f14e4fa5
wal in eine eigene datei
2010-10-21 07:44:15 +00:00
Yamagi Burmeister
b94c471a24
tga in eine eigene Datei
2010-10-21 07:38:33 +00:00
Yamagi Burmeister
7d54bf6e41
PCX in ne eigene Datei
2010-10-21 07:35:45 +00:00
Yamagi Burmeister
56f27f1e3a
Scrapping in ne eigene Datei
2010-10-21 07:29:20 +00:00
Yamagi Burmeister
cbbf7a7eee
Repariere durch Wände scheinende Lichter teilweise
2010-10-20 11:52:50 +00:00
Yamagi Burmeister
fd6cb0e770
Überarbeite gl_lights.c
2010-10-20 09:15:50 +00:00
Yamagi Burmeister
3373b3bbfa
Überarbeite gl_image.c
2010-10-20 09:02:21 +00:00
Yamagi Burmeister
7c3b6fa412
Räume gl_draw.c ein weiteres Mal auf
2010-10-20 08:49:28 +00:00
Yamagi Burmeister
18676a1e7d
Formatiere die Shutdown-Nachrichten neu
2010-10-20 06:10:33 +00:00
Yamagi Burmeister
18bac1177a
Überarbeite cd.c
2010-10-20 05:59:21 +00:00