Commit Graph

138 Commits

Author SHA1 Message Date
Tony J. White = b5bf1280c1 * (bug 3018) Should not reset CVAR_CHEAT cvars when loading cgame/ui if they
are being loaded to play a demo.  This restores the normal
             "timedemo" cvar behaviour.
* (bug 3054) The "demo" command works properly now when connected to
             the local server
2007-04-05 15:26:15 +00:00
Tim Angus de364863be * Silly tab filter breaking things 2007-04-01 13:42:03 +00:00
Tim Angus fb58d8f123 * Move storage of console history from a cvar to a file in order to alleviate
security concerns
2007-04-01 13:38:17 +00:00
Tony J. White = f9bb47d9af * (bug 2741) replace K_LAST_KEY with MAX_KEYS. K_LAST_KEY is now defined
at 256 for mod compatability reasons.  ioq3-only mods may
             chose to use MAX_KEYS for checking binds in order to get full
             key support, but at the cost of breaking compatability with
             older clients.

* (bug 2741) remove some lingering 256-key hardcoding

* properly check bounds of keynum in Key_IsDown(), Key_SetBinding(),
  and Key_GetBinding()
2007-03-22 22:03:00 +00:00
Thilo Schulz 1de9a065bf Remove cvar s_alMaxSpeakerDistance for the same task can better be achieved with s_alMaxDistance. 2007-03-17 15:54:37 +00:00
Tony J. White = 2218a4ea67 * (bug 3018) need to call Cvar_SetCheatState() after CG_INIT and UI_INIT to
override user-defined cvar values for CVAR_CHEAT cvars that
             could be registered in cgame and ui.
2007-03-02 17:32:22 +00:00
Tony J. White = c6249fcc25 * (bug 3019) use the operating system's random number generator if possible
when generating the qkey file
2007-02-16 23:50:37 +00:00
Tony J. White = d580c54e2d * (bug 2741) Adds support in the SDL client for many keys that were not
recognized.  For example, F13, F14, F15, WINDOWS, SCROLLLOCK, CAPSLOCK,
  WORLD_0 - WORLD_95, etc. (Christophe Cavalaria)

* (bug 2741) Adds the hard-coded toggleConsole bind Shift-Escape

* (bug 2741) Adds detailed explaination of SDL keyboard handling differences
  in the README file.
2007-02-14 23:29:19 +00:00
Tony J. White = 2cddf1208d * (bug 3019) adds the cvar cl_guidServerUniq (defaults to 1). When set to
non-zero, cl_guid will be unique for each server that the client
  connects to
2007-02-12 18:52:15 +00:00
Thilo Schulz 5dc3b35b49 - Fix loads of format string bugs
- Fix locally looping sounds, thanks to Timbo
2007-01-24 21:23:21 +00:00
Ludwig Nussel 4b9df8d9e9 fix wrong use of strncat 2007-01-23 10:39:49 +00:00
Thilo Schulz c1875302c2 - Fix two non-C-standard variable declarations.
- Fix function name of vsnprintf for windows systems.
2007-01-07 16:03:19 +00:00
Ludwig Nussel 8e82c3d605 - tag more functions with gnu format attribute
- fix format string bugs. still some left
2006-12-30 12:32:54 +00:00
Ludwig Nussel 91e54c01ed using the function pointer time() doesn't make any sense. Passing down
the variable instead looks like the obvious fix.
2006-12-30 11:17:17 +00:00
Tim Angus 4abd270a67 * Merge 954:955 from 1.34 branch 2006-11-28 14:03:27 +00:00
Thilo Schulz 4502f863d4 There's still a little bug in my recent change... 2006-11-26 11:12:35 +00:00
Thilo Schulz 26cf8f2987 - Add input sanitising to various sound playing functions called from MODs.
This fixes https://bugzilla.icculus.org/show_bug.cgi?id=2836
- Make searching through the knownSfx array a bit more efficient.
2006-11-25 13:35:23 +00:00
Thilo Schulz d23e7a1521 Fix bug in parameter checking. Thanks to Neil Toronto for reporting. 2006-11-23 11:10:30 +00:00
Thilo Schulz aea7262d86 Only stop demo on map change if it was started by autorecord. 2006-11-03 08:42:21 +00:00
Thilo Schulz b57a970034 - Explicitly set distance attenuation model.
- Mute sounds that exceed a certain distance from the listener.
2006-11-03 08:22:38 +00:00
Thilo Schulz 90208be35a - Remove "server crashed" message on server shutdown caused by local client disconnect.
- Stop demo recording on a new gamestate packet so the demo won't end with a new level load.
2006-10-27 12:49:55 +00:00
Tony J. White = 8b1b3464d7 * (bug 2758) Toggling the console while holding keys can put the cgame/ui
keycatchers in a bad place since they see a key press for a key that is
  already in a down state.  Simply clearing the down state of all keys as
  the console is toggled seems like a simple fix.
2006-10-23 15:18:05 +00:00
Tony J. White = 41add6c01f * (bug 2893) OpenAL was not tracking one-shot sound effects to the entity's
position
2006-10-13 18:58:57 +00:00
Tony J. White = 2af23e813d * add cURL support for HTTP/FTP downloading (bug 2661) 2006-09-11 16:41:55 +00:00
Ludwig Nussel cec7660885 looks like ALCchar is not available on older openal versions 2006-09-05 07:05:04 +00:00
Tony J. White = bc4591b03e * renamed static function GetClipboardData to CL_GetClipboardData since it was causing compile errors in newer mingw 2006-08-30 15:16:36 +00:00
Tim Angus 9f42be5d6c * Disable video command when not playing back a demo 2006-08-29 19:30:33 +00:00
Thilo Schulz 01d057967f Go back to rev. 874. ATM, there is no good way to make FS_Restart() behave as it was originally described. 2006-08-28 01:48:38 +00:00
Thilo Schulz fbfc886b22 Fix crash when recording to files and the map changes. Was caused by new, correct, behaviour of
FS_Restart() which would close the files before they'd be closed by the client.
2006-08-28 00:44:59 +00:00
Thilo Schulz 57dbc7a79f - Fixed filehandle / filedescriptor leak in S_AL_StartBackgroundTrack introduced in rev. 832
- intro now plays correctly before looping sound.
2006-08-27 15:31:03 +00:00
Tony J. White = 1f8c2c56eb * moved SVN_VERSION #ifdef from client.h to q_shared.h so dedicated server
builds when svn version cannot be detected
2006-08-26 06:12:15 +00:00
Thilo Schulz fb18a4b2e4 - compensate sv_fps for timescale value.
- Add a non-dirty-hack fix for client hanging when unpausing a game.
2006-08-26 01:45:27 +00:00
Tony J. White = 0df6305274 * Add SVN version to the version string displayed in the client console
if it can be detected
2006-08-22 16:13:51 +00:00
Thilo Schulz 467917233a - Change available device list to be displayed on sound initialization and
use line feeds as separators.
2006-08-19 22:17:04 +00:00
Tim Angus 4c8c2e5597 * Compiler warning fix 2006-08-19 14:40:24 +00:00
Thilo Schulz b2b17e334e - tweak enumeration support, remove win32 dependency
- fix two typos in status message in snd_main.c
2006-08-19 13:44:10 +00:00
Thilo Schulz 87a3858f9a - Add device enumeration support on windows and make "Generic Software" new default device as that one seems to work more reliably on many platforms.
- Add shfolder.lib library to dependencies in MSVC project files
- update documentation for OpenAL changes.
2006-08-19 11:02:20 +00:00
Tim Angus e41d081710 * qvm files no longer installed by "make copyfiles"
* Loopback clients only get snapshots at the server frame rate now
  (Anonymous <nkylqinhvgcbyl@mailinator.com>)
* JPEG chroma subsampling disabled if the quality value is >= 85
  (Anonymous <nkylqinhvgcbyl@mailinator.com>)
* cl_lanForcePackets. When set to 0 (default is 1) the cl_maxpackets setting
  will be ignored if on a LAN. (Anonymous <nkylqinhvgcbyl@mailinator.com>)
2006-08-13 17:09:05 +00:00
Tony J. White = 0bffb8a8cd bug 2747
* it turns out Apple's OpenAL only allows for 64 alSource's by default
  http://opensource.creative.com/pipermail/openal/2005-October/008893.html
  This was the main cause of the Mac OS X OpenAL probem since we were using
  128 as MAX_SRC
2006-08-03 03:15:24 +00:00
Tony J. White = 0141a4b4b0 bug 2747
* open music stream in S_AL_StartBackgroundTrack() instead of relying 
  on  S_AL_MusicProcess() to open it.  This allows S_AL_MusicProcess() to 
  return early when called whenever there is no open music stream to prevent
  a segfault.
2006-08-03 02:29:47 +00:00
Tony J. White = 9a6fad9cf1 bug 2723
* adds a shell script ./make-macosx-ub.sh that builds Mac OS X Universal Binary
* fixes Mac OS X x86 VM crashes (-mstackrealign)
* adds current working directory to the search path on Mac OS X to make
  working with .app bundles easier
* various tweaks to make ioquake3 build against the 10.2 SDK 
* changed default OpenAL .dylib location to the path of the one included with
  the Framework bundled in 10.4 (for USE_OPENAL_DLOPEN)
* updated to a Universal libSDL-1.2.0.dylib
2006-08-02 04:01:36 +00:00
Thilo Schulz 5efd7c8c36 Another patch to make uncompressed AVI write in RGB24 format by anonymous virtualdub sympathiser. 2006-07-31 15:32:59 +00:00
Thilo Schulz 3a1c4aa457 Fix from the VirtualDub people which should make avi files created with the video command playable with numerous windows players. 2006-07-31 13:05:15 +00:00
Thilo Schulz 3afbcc9854 Changed the demofile slot finder to use FS_FileExists instead of FS_ReadFile to find a free filename. 2006-07-30 14:42:15 +00:00
Thilo Schulz 9fd1a47819 Fix wrong demo filename when all 9999 demo*.dm_64 file slots have been written. 2006-07-30 14:11:51 +00:00
Ludwig Nussel a24ffc0dd5 - print warning if server tries to set cvars it shouldn't set
- make warnings yellow
2006-07-05 20:30:53 +00:00
Thilo Schulz 7d51d75b05 - Fix arbitrary cvar overwrite flaw: http://aluigi.altervista.org/adv.htm
- Add myself to maintainer list :)
2006-07-03 21:37:50 +00:00
Tim Angus d42b87ae87 * OpenAL bug fix (from Josh Weisskopf) 2006-06-17 21:01:57 +00:00
Thilo Schulz 813a6ecdc3 - Fix bug that allows a malicious server to write and overwrite any files in the quake3 directory.
Reported by Luigi Auriemma.
- Moved directory traversal check to a more proper location.
- Added a few sanity checks for checksum/pakname storage to fix a crash that can occur under certain circumstances.
2006-06-16 20:38:08 +00:00
Thilo Schulz 99abd01c2f Fix remotely exploitable parse download overflow reported by Luigi Auriemma.
See http://lists.grok.org.uk/pipermail/full-disclosure/2006-June/046578.html
for the advisory.
2006-06-04 13:45:53 +00:00