Pan7
18e08125dd
Add ColorIndexForNumber macro replacing '& 0x07'
...
Makes it easier to add more colors.
2014-08-28 20:09:37 -05:00
Zack Middleton
eeef7cbae7
Don't scale cinematic time by timescale twice
...
Reported by Ensiform.
2014-08-28 20:09:37 -05:00
Zack Middleton
0853c85e19
Fix incorrect strncat usage in CL_ServerInfoPacket
2014-08-27 20:35:16 -05:00
Pan7
f62d4c7f1c
sayto cmd with player name completion
2014-07-18 00:15:05 +02:00
Zack Middleton
0fe2e8d224
Restore drawing a cut off client console line in 1920x1080
...
The text lines don't meet at top of the sceen in 1920x1080, restore
drawing a cut off line across the top. In 640x480 this line isn't seen
at all. This is still better then trying to draw twice as many lines
than are actually seen (the way it was before the last commit).
2014-07-13 02:07:45 -05:00
Zack Middleton
b9e0398244
Don't draw client console buffer past top of screen
...
Thanks @Pan7.
2014-07-12 21:57:03 -05:00
Zack Middleton
0861d3c583
Revert "DMA 44100Hz needs more memory for sound buffers"
...
This reverts commit 0e6632f464
.
Cause crashes if com_soundMegs is 32.
2014-03-17 13:44:30 -05:00
Tequila
baca82d64e
Bunch of comment fixes
2014-03-13 02:20:54 +01:00
Zack Middleton
0e6632f464
DMA 44100Hz needs more memory for sound buffers
...
It doubles the size of the data compared to the default (22050),
so increase the buffer automatically. Likewise, decreasing speed
doesn't need as much (though that doesn't really matter).
2014-03-11 17:16:03 -05:00
Zack Middleton
a167110f43
Don't mix sfx with NULL soundData
...
Caused a crash. Already done for looping sounds.
2014-03-11 16:44:50 -05:00
MAN-AT-ARMS
89fab090d7
Fix s_alDopplerSpeed default value
2014-03-02 23:00:46 -06:00
Zack Middleton
5bf4f26d5f
Remove references to alDopplerVelocity
...
Let's load driver even if it doesn't have the deprecated alDopplerVelocity.
2014-02-22 18:06:04 -06:00
MAN-AT-ARMS
6887a69064
Replace deprecated alDopplerVelocity with alSpeedOfSound per OpenAL 1.1 spec
2014-02-22 18:02:22 -06:00
user
922d7044f6
Merge branch 'master' into features/upgrade-curl-7.35.0
2014-02-10 00:28:57 +00:00
Zack Middleton
90eb32c5ab
Clear referenced paks when disconnecting
...
After playing Team Arena, if you switch to Q3A and try to play a demo with
cl_allowDownload enabled it would print "Need Paks: blah blah" and not play the demo.
2014-02-08 22:09:30 -06:00
hairball
1435e78454
Upgrade from libcurl 7.15.5 (2006-08-07) to 7.35.0 (2014-01-29)
...
Note: This uses the generic curlbuild.h because it is used by multiple platforms.
A system curl would have a configure generated one.
The libraries for win32 and win64 were cross compiled with these options:
--disable-shared --enable-static --disable-ares --enable-http \
--enable-ftp --disable-ldap --disable-ldaps --disable-rtsp \
--disable-dict --disable-file --disable-telnet --disable-tftp \
--disable-pop3 --disable-imap --disable-smtp --disable-gopher \
--enable-ipv6 --without-ssl \
--disable-manual --disable-libcurl-option
This effectively enables only HTTP and FTP protocol support.
2014-02-08 17:33:56 +00:00
Zack Middleton
aedb151d94
Merge pull request #33 from inolen/widescreen_clear_fix
...
don't clear screen during CA_LOADING and CA_PRIMED
2014-02-01 15:51:41 -08:00
Zack Middleton
36a4075a8d
Try default OpenAL driver if user set one fails to load
2014-01-27 20:09:55 -06:00
Anthony Pesch
280b5269f8
don't clear screen during CA_LOADING and CA_PRIMED
2014-01-23 13:44:36 -08:00
Zack Middleton
0698817a7f
Remove unused code path from S_Base_StartBackgroundTrack
...
We make sure intro isn't NULL. Then if loop is NULL, set it to intro.
2014-01-12 18:16:39 -06:00
Zack Middleton
ebac005c9e
Don't read clc.voipIncomingSequence until range checked sender
2014-01-12 18:01:02 -06:00
Zack Middleton
52e72408d9
Fix demoName Com_sprintf size larger than buffer
...
Maybe this is why demoName is a static global with the comment 'compiler bug workaround'?
2014-01-12 16:22:46 -06:00
Zack Middleton
43c6ebee8d
Fix music studder in base sound when starting silent cinematics
2014-01-12 15:14:38 -06:00
Zack Middleton
1a86229538
Fix playback of stereo sounds in Base sound system
...
Already works correctly in OpenAL.
2013-12-15 00:23:10 -06:00
Amanieu d'Antras
efe8437cde
Fix crash in OpenAL when no input devices are available
2013-12-10 16:40:28 -06:00
Zack Middleton
fa9fd1b1fc
Support spatialized raw streams in base sound, e.g. for VoIP
2013-12-07 00:15:29 -06:00
Zack Middleton
57eae5da91
Fix signal 6 in S_Base_StartBackgroundTrack on OS X 10.9
...
In S_UpdateBackgroundTrack, s_backgroundLoop was passed to
S_Base_StartBackgroundTrack and tried to copy to itself using Q_strncpyz.
2013-11-20 23:19:17 -06:00
Ensiform
93be2655f8
Remove unused cvar_t variable cl_trn
2013-11-11 01:09:10 -06:00
Zack Middleton
203ab7b9af
Fix cinematics often being silent on OS X
...
If OpenAL source isn't playing, often what happens is: queued buffers is 0 and processed buffers is non-0.
S_AL_StreamUpdate won't play the steam if queued buffers 0.
So start the stream in S_AL_RawSamples.
2013-11-11 00:21:53 -06:00
Zack Middleton
b3bd74fce7
Fix restoring loop sound position on OS X
...
The default OpenAL library on OS X errors AL_INVALID_VALUE for AL_SEC_OFFSET if source isn't playing.
2013-11-10 23:28:54 -06:00
Zack Middleton
5795be68f6
Make OpenAL buffer management work on OS X
...
Don't assume we have unlimited OpenAL buffers.
Detach buffers from sources by setting AL_BUFFER to 0. Cannot delete buffers on OS X immediately after alSourceUnqueueBuffers.
Free unprocessed stream and music buffers.
Free unused sfx buffers when sound file exists and fails loading into OpenAL (though I haven't seen it fail).
2013-11-10 22:55:35 -06:00
Zack Middleton
2d45e57068
Support FS_SEEK_END and negative offset for zipped files in FS_Seek
...
Use FS_SEEK_END in sound code instead of working around it.
If FS_SEEK_SET and going to current position, just return.
2013-11-08 18:43:34 -06:00
Tim Angus
7ae49cc237
Fix video recording sync drift (patch refactored but original author unknown)
2013-11-02 19:11:14 +00:00
Zack Middleton
e0a42885d9
Clear more variables in CL_InitServerInfo
...
Have cls.localServers use CL_InitServerInfo.
Don't set cls.localServers netType to from.type, it's the wrong value.
Note: server->visible is not cleared in CL_InitServerInfo, as stated by a comment below a place where CL_InitServerInfo is used.
2013-10-28 15:23:01 -05:00
Zack Middleton
a836c2db89
Drop sounds starting with * before allocating sfx slot
...
Causes handle 0 to be returned by S_RegisterSound.
2013-10-09 09:51:32 -05:00
Zack Middleton
d4c6711e51
Fix "bind <key>" message for unbound keys
...
"bind X cmd; unbind X; bind X" now says '"x" is unbound' instead of '"x" = ""'
2013-08-16 15:41:01 -05:00
Zack Middleton
3d69ae9995
Fix OpenAL music stop issues using stream stop code
...
S_AL_StopBackgroundTrack would sometimes generate AL errors.
S_AL_MusicSourceFree needs to kill source or next track may have short looping buffer.
2013-08-16 15:29:12 -05:00
Zack Middleton
3518e7b22e
Fix bind commands getting run when closing UI
...
Introduced in commit "Add togglemenu command" bf2b04.
Don't let UI key event changing key catcher affect bind parsing. Bind parsing itself will never change the key catcher.
Example of issue: if mouse1 is bound to +attack when clicking Resume Game, player will shoot until releasing the mouse button.
Mouse button should have to be released and pressed again before player will shoot.
2013-07-22 17:44:28 -05:00
Zack Middleton
4776fb4767
(bug #5984 ) Unload renderer lib
2013-07-08 16:36:30 -06:00
Zack Middleton
6b13806066
Fix getting servers from and being listed on id's q3 master server
...
Use q3 master protocol when com_gamename is Quake3Arena (the default), otherwise use dpmaster protocol.
2013-07-07 16:31:36 -05:00
Zack Middleton
2937ac7661
Allow adjusting VoIP gain and mute during SP demo playback
2013-06-04 23:19:47 -05:00
Zack Middleton
e89a1b9f8e
Allow adjusting VoIP gain and mute during demo playback
2013-06-04 23:02:23 -05:00
Zack Middleton
21c93736b8
Allow recording VoIP in SP for demo commentaries
2013-06-04 22:28:46 -05:00
/dev/humancontroller
9d626b6a12
drop some useless return statements
2013-05-30 15:43:21 -05:00
/dev/humancontroller
bbd17d75ce
reduce the amount of compiler warnings for variable shadowing
2013-05-30 15:43:20 -05:00
/dev/humancontroller
1d0a044de3
when using the condump command, do not say "dumped console text" prematurely, before trying to open the file
2013-05-30 15:41:19 -05:00
/dev/humancontroller
f0b43aba35
remove some unused stuff
2013-05-30 15:41:19 -05:00
Jonathan Gray
3234d2b141
dlopen libopenal.so not libopenal.so.1 on OpenBSD
2013-05-05 11:28:54 +10:00
Zack Middleton
936db459ee
Don't allow modifying qvms or pk3s
...
Exception for allowing pk3s to be downloaded.
2013-04-24 14:11:18 -05:00
Tim Angus
98360bcd57
Fix some of the things clang --analyze flagged
2013-03-26 16:50:03 +00:00
Zack Middleton
b009528e6a
Fix displaying demo name when loading demo
2013-03-09 15:58:35 -06:00
Zack Middleton
fe0a65e52e
Show lowercased ascii in bind command
2013-03-03 19:14:36 -06:00
Zack Middleton
a18ae32a5e
Fix Key_StringToKeynum to return lowercased ascii
...
Fixes bind and unbind uppercase ascii and uppercase ascii in cl_consoleKeys.
keycodes.h states "normal keys should be passed as lowercased ascii"
2013-03-03 19:07:44 -06:00
Zack Middleton
eb7e554c46
Fix comment in snd_codec_opus.c
2013-02-27 15:31:26 -06:00
Zack Middleton
3dd5c5d862
Add Ogg Opus support
2013-02-17 18:32:05 -06:00
Tim Angus
d201443350
Remove a few name tags
2013-02-16 21:03:56 +00:00
Ensiform
3041eee0cf
condump improvements
...
Default output file extension to ".txt"
Show output filename in error message.
Use Windows line endings on Windows.
Dynamically allocate line buffer. (by ZTM)
2013-02-15 22:49:08 -06:00
Ensiform
e5f7e1de52
Remove unneeded variable extern
2013-02-15 22:03:34 -06:00
Tim Angus
f6fb9eb602
renderer -> renderergl1, rend2 -> renderergl2
2013-02-15 23:46:37 +00:00
Zack Middleton
c0d5ba9e06
Fix compiling
2013-02-11 20:45:17 -06:00
Zack Middleton
91194bfc3e
Fix possible delta from invalid entity
2013-02-11 20:36:14 -06:00
Zack Middleton
ac621642ac
Unify/cleanup max snapshot entities on client and server
2013-02-11 15:49:47 -06:00
Zack Middleton
7b34987823
Fix resolving IPv6 favorites in Team Arena UI
2013-02-08 16:47:27 -06:00
Tim Angus
51df89ab13
Remove the SMP renderer feature
2013-01-24 22:53:08 +00:00
Jeremy Davis
3f489fe5f2
Make UI_CVAR_CREATE use VM specific code
...
Makes cvar be flagged as VM created and unset ROM if ARCHIVE is set.
2013-01-17 15:21:29 -06:00
Zack Middleton
9c701a781b
Run toggleconsole in binds while in menu or message mode
2013-01-16 23:06:35 -06:00
Zack Middleton
bf2b04254a
Add togglemenu command
...
Allow togglemenu to be run in binds while in menu or message mode.
2013-01-16 23:03:09 -06:00
Zack Middleton
26b1fcc471
Save all arguments from connect for reconnect command.
...
Remove unnecessary localhost check from reconnect command.
2012-12-16 19:20:08 +00:00
Zack Middleton
aac23d6934
Fix reconnect command to work after leaving server. ( #5794 )
2012-12-15 23:33:02 +00:00
Zack Middleton
d79ea2e5cd
- Allow changing cl_voip without restarting.
...
- Fix assert failing in CL_ParseVoip() while flipping cl_voip off and on.
2012-12-14 07:32:07 +00:00
Zack Middleton
7786f95c06
Fix writting voip data in demos (broke in r2102).
2012-12-13 05:25:50 +00:00
Zack Middleton
10a574e6ed
Remove unused function CL_DisconnectPacket. Pointed out by Ensiform.
2012-11-24 20:55:47 +00:00
Zack Middleton
3da8779180
- Check for invalid filename in OpenAL's RegisterSound function.
...
- Changed Base sound system to warn not error when sound filename is empty or too long.
2012-11-19 00:40:03 +00:00
Zack Middleton
6c1045a003
Remove unneeded name buffer in S_Play_f.
2012-11-18 23:30:26 +00:00
Zack Middleton
d9bea4977b
Improve "play" command, based on a patch from Ensiform.
2012-11-18 23:16:13 +00:00
Zack Middleton
98f04d39a6
#5799 - Change messagemode text box to display colors like in console input box.
2012-11-18 22:24:15 +00:00
Zack Middleton
05bc03d32d
Remove anti tamper leftover code 'CL_ChangeReliableCommand'. From Ensiform.
2012-11-18 22:12:30 +00:00
Zack Middleton
f13a87daad
Change error message in CL_ConfigstringModified to specify out of range index like in server.
2012-11-18 19:14:07 +00:00
Zack Middleton
82f83cd092
Fix some "> MAX_*" to be ">= MAX_*".
2012-11-18 19:09:54 +00:00
Zack Middleton
016b74b633
Fix restoring old fs_game upon leaving a server. Patch by Ensiform.
2012-10-30 16:51:06 +00:00
Zack Middleton
faa0cb04c1
Show reason non-default renderer failed to load.
2012-10-30 07:43:44 +00:00
Zack Middleton
d49d0753eb
When in third person, don't play player's sounds as full volume in Base sound system. OpenAL already does this. (Related to bug 5741.)
2012-10-17 20:39:45 +00:00
Zack Middleton
ce9f2ee5f9
Check last listener number instead of clc.clientNum in S_AL_HearingThroughEntity so sound work correctly when spectate following a client. (Related to bug 5741.)
2012-10-17 19:30:41 +00:00
Zack Middleton
b4a76e74f7
Remove a redundant code statement.
2012-09-04 21:13:25 +00:00
Zack Middleton
ad5c5c32a6
REFACTOR [reletive -> relative]
...
From /dev/humancontroller.
2012-06-18 16:32:03 +00:00
Zack Middleton
f3e7012bdb
REFACTOR [a vs an]
...
From /dev/humancontroller.
2012-06-18 16:31:16 +00:00
Zack Middleton
2131536d07
Call sound files 'audio' not 'wav' in debug messages.
2012-06-18 16:00:38 +00:00
Zack Middleton
88020d5fb8
#5485 - Use Sys_LoadDll to search in the local directory for the fallback default renderer. Patch by Harley Laue.
2012-04-04 17:21:17 +00:00
Zack Middleton
33d66c8034
Added range checks to j_*_axis cvars.
2012-02-15 18:47:50 +00:00
Zack Middleton
91fd58f6e4
Allow analog joystick up axis to be remapped too.
2012-02-15 18:09:24 +00:00
Zack Middleton
b648d6f17b
Client no longer tries to run UI_SHUTDOWN on ui vms with an unsupported API version.
2011-11-03 03:52:46 +00:00
Tim Angus
fd986dae06
* Fix various warnings with GCC and clang
2011-10-27 21:32:28 +00:00
Thilo Schulz
b93a88455a
Allow interpreted VM on pure servers
2011-09-27 22:56:10 +00:00
Thilo Schulz
7a1f2bc92b
Bug 5238 - cURL wrong use of curl_easy_setopt property, by Adrian Fuhrmann
2011-09-21 15:17:22 +00:00
Thilo Schulz
af4607c026
Bug 5178 - Sound quality menu option has no effect
2011-09-19 22:38:51 +00:00
Zack Middleton
beff4a3c47
Only include libmumblelink.h if USE_MUMBLE is defined, reported by Ensiform.
2011-09-19 02:15:46 +00:00
Zack Middleton
b7fa3e7073
Use EXEC_NOW instead of hardcoded 0 in cl_ui.c
2011-09-09 21:50:45 +00:00
Zack Middleton
72d00c568b
Use BIGCHAR_WIDTH instead of hardcoded 16 in cl_scrn.c
2011-09-09 21:49:03 +00:00
Zack Middleton
22d6240fe2
Removed unused kbutton_t declarations in client.h
2011-09-09 21:48:38 +00:00
Zack Middleton
237b09f4ab
Fixed some function name comments in cl_cin.c
2011-09-09 21:48:07 +00:00