Commit graph

1274 commits

Author SHA1 Message Date
Thilo Schulz
9b7543a905 Fix circumventing sv_maxping restriction, thanks to Amanieu for reporting. http://bugzilla.icculus.org/show_bug.cgi?id=3423 2009-10-08 20:03:25 +00:00
Tim Angus
8d8ed0b47a * Fix bad syntax in 64bit assembler (Undeference) 2009-10-06 17:56:36 +00:00
Thilo Schulz
d53eeae419 Fix memory overwrite when client has too many maps. Thanks to beast for the reporting & the patch. http://bugzilla.icculus.org/process_bug.cgi 2009-10-06 14:28:50 +00:00
Thilo Schulz
549f23bda6 Fix bot loading in case player supplied invalid bot names 2009-10-06 14:17:12 +00:00
Thilo Schulz
de9cf465cc Don't award assist bonuses to flag capturing player, https://bugzilla.icculus.org/show_bug.cgi?id=3260 2009-10-06 14:10:45 +00:00
Tim Angus
5c62c95c64 * Fix incorrect comment 2009-10-05 22:07:01 +00:00
Thilo Schulz
dd572db7d6 Rewrite of key event processing, thanks to /dev/humancontroller and Ben Millwood. https://bugzilla.icculus.org/show_bug.cgi?id=3374 2009-10-03 23:35:07 +00:00
Thilo Schulz
3a952ff196 Forgotten else 2009-10-03 23:32:17 +00:00
Thilo Schulz
b2c1618f36 Revert back color code change 2009-10-03 21:41:22 +00:00
Thilo Schulz
b433f3d01c - Modify color generating codes to only accept numbers and not alphabetical chars anymore
- Fix client clean name so that it cannot be tricked anymore, see https://bugzilla.icculus.org/show_bug.cgi?id=3313
2009-10-03 21:15:23 +00:00
Tim Angus
96a3b4b169 * Remove superfluous f from warning 2009-09-28 12:44:43 +00:00
Tim Angus
0ba8b20305 * Avoid calculating a NaN when failing to compute the display aspect ratio 2009-09-28 11:57:16 +00:00
Tim Angus
a7d33b1c54 * (bug #3639) BoxOnPlaneSide rewrite (Diego de Estrada/Patrick Bagget/Daniel
Gibson)
2009-09-21 00:20:43 +00:00
Tim Angus
15ec986478 * ...and make sure it compiles 2009-09-17 20:05:56 +00:00
Thilo Schulz
5fec4498f1 Add received rcon command string to server log, see https://bugzilla.icculus.org/show_bug.cgi?id=3748 2009-09-17 16:54:01 +00:00
Tim Angus
cc8990495a * (bug #4282) Fix potential overlap of VM stack and bss sections (Patrick
Baggett)
2009-09-17 09:42:05 +00:00
Ryan C. Gordon
5ffb45c79f Cleanups for the Mac error dialog, after a code review from tma.
- Don't expose the function in sys_local.h (it would be static if we could).
- Don't call it Sys_Cocoa_*; it'd be nonsense with q3a's naming conventions.
2009-09-16 12:54:12 +00:00
Tim Angus
083bd1b005 * ...and actually r1626 this time 2009-09-16 09:30:21 +00:00
Tim Angus
f89092fda6 * Revert r1624 and r1626-r1628 2009-09-15 09:48:11 +00:00
Ryan C. Gordon
9fd5e15b97 Added support for hardcoded HOMEPATH.
Partially fixes Bugzilla #4271.
2009-09-15 06:40:55 +00:00
Ryan C. Gordon
826f05f95f Let a separate libdir be specified for loading libraries.
Partially fixes Bugzilla #4271.
2009-09-15 06:32:05 +00:00
Ryan C. Gordon
31ce89361d Fixed amd64 JIT output bug.
Partially fixes Bugzilla #4271.
2009-09-15 06:30:00 +00:00
Ryan C. Gordon
3bca280948 Add x86_64 ARCH_STRING for FreeBSD.
Partially fixes Bugzilla #4271.
2009-09-15 06:27:19 +00:00
Ryan C. Gordon
b9f033d1fa Prevent hang in S_UpdateBackgroundTrack() with some sample rates.
Fixes Bugzilla #4022.
2009-09-15 06:19:04 +00:00
Ryan C. Gordon
6978dcf645 Don't send a 0-length command to cgame during map_restart.
Fixes Bugzilla #3965.
2009-09-15 06:15:00 +00:00
Ryan C. Gordon
62ea802cea Quote commandline args with spaces when building the string for Com_Init(). 2009-09-15 06:12:42 +00:00
Ryan C. Gordon
ed241a8b73 Echo console command now colorizes by string, not token.
Fixes Bugzilla #3879.
2009-09-15 05:57:14 +00:00
Ryan C. Gordon
79fadbf271 Fixed compiler warning (glibc complains if you don't check getcwd() retval). 2009-09-15 05:50:55 +00:00
Ryan C. Gordon
aedf24bd72 Allow Cvar_Toggle_f() to iterate through a list of values.
Fixes Bugzilla #3591.
2009-09-15 05:43:53 +00:00
Ryan C. Gordon
f8604a64f4 Added a real GUI message box to Sys_ErrorDialog() on Mac OS X.
Fixes Bugzilla #3654.
2009-09-15 05:38:27 +00:00
Ryan C. Gordon
d03120f0b0 Fixed a compiler warning on Apple's GCC. 2009-09-15 05:34:16 +00:00
Ryan C. Gordon
33beb9df27 Patched to compile. 2009-09-15 05:30:08 +00:00
Ryan C. Gordon
bccd80e523 Added Intel CC compatibility to vm_x86.c's inline asm.
Fixes Bugzilla #3338.
2009-09-15 03:42:29 +00:00
Ryan C. Gordon
d56a093317 Removed more unused variables.
Partially fixes Bugzilla #3782.
2009-09-15 03:19:43 +00:00
Ryan C. Gordon
815026072a Removed unused variables.
CM_LeadArea() has no side effects, so those could go, too.

   Partially fixes Bugzilla #3782.
2009-09-15 02:58:38 +00:00
Ryan C. Gordon
8c04462b34 Handle r_colorbits values better.
Fixes Bugzilla #4244.
2009-09-15 02:51:09 +00:00
Ryan C. Gordon
e2d63b1fea Enable -fvisibility=hidden on Linux.
This will prevent further symbol clashes, and makes the shared libraries
 10 to 20 percent smaller.

We should enable this on other platforms, too, if we can guarantee they'll
 use gcc 4.0 or later and the platform supports it.
2009-09-15 02:48:17 +00:00
Ryan C. Gordon
6cea11c665 Renamed bot_developer to botDeveloper to prevent symbol clash.
qagame*.so has a variable named this too, and this confuses the Linux
 dynamic loader since we're not using -fvisibility=hidden.

 Fixes Bugzilla #3944.
2009-09-15 01:44:58 +00:00
Ryan C. Gordon
8d0f212521 When dropping bots, don't move to CS_ZOMBIE. Go straight to CS_FREE.
They aren't a real network connection, so you don't want to waste time before
 opening the slot for humans.

  Fixes Bugzilla #4243.
2009-09-15 01:11:09 +00:00
Ryan C. Gordon
842f27818b Fix SGI systems choosing an inefficient 36-bit color visual.
Now they'll choose 16 or 32 bit correctly with this magic.

  Fixes Bugzilla #4245.
2009-09-15 01:01:07 +00:00
Ryan C. Gordon
d47be89f0a Removed broken music fading code from snd_dma.
Fixes Bugzilla #3757.
2009-09-15 00:53:02 +00:00
Ryan C. Gordon
5079343ecd Fixed infinite recursion of writing crashlog because we're out of file handles.
Fixes Bugzilla #3772.
2009-09-15 00:19:22 +00:00
Ryan C. Gordon
76b7468a9d Don't allow negative arguments to the "wait" console command. 2009-09-14 23:56:09 +00:00
Ryan C. Gordon
94657a2a2a Make q3asm's CodeError print to stderr.
Fixes Bugzilla #3845.
2009-09-14 23:51:35 +00:00
Ryan C. Gordon
cf1bb85183 Make newly-created prefpath permissions more sane. 2009-09-14 23:46:44 +00:00
Ryan C. Gordon
a5980d56d9 Create "~/Library/Application Support" on Mac OS X if it doesn't exist.
Apparently this can happen on freshly-installed Xserves? Also, a moron user
 could have dragged it to the trash anyhow.

  Fixes Bugzilla #4052.
2009-09-14 23:45:00 +00:00
Ryan C. Gordon
df13db2b64 Fixed triggering Com_Error() when kicking a large number of bots at once.
Fixes Bugzilla #3418.
2009-09-14 23:12:54 +00:00
Ryan C. Gordon
ce544b23e6 Try to catch some NaNs that are almost certainly a compiler optimization bug.
Fixes Bugzilla #2998.
2009-09-14 23:01:49 +00:00
Ryan C. Gordon
b096ca1d04 Allow optional window resizing.
Fixes Bugzilla #2844.
2009-09-14 22:07:34 +00:00
Ryan C. Gordon
8bb2f9a5f5 Threw in a hack to fix rendering of credits menu in widescreen.
Fixes Bugzilla #2744.
2009-09-14 21:08:08 +00:00
Ryan C. Gordon
4e447c9a77 Fixed compiler warnings on gcc 4.3.3 (and probably others). 2009-09-14 19:51:37 +00:00
Ryan C. Gordon
82d437ee4f Fixed uninitialized variable. 2009-09-14 19:31:42 +00:00
Ryan C. Gordon
569edcb04e Minor reworking to check command line cvars before Com_InitZoneMemory().
This lets you set com_zoneMegs from the command line (although still not
 from a config file, but oh well).

  Fixes Bugzilla #2571.
2009-09-14 19:28:59 +00:00
Ryan C. Gordon
a903a2f03e Fixed use of alloca() in libspeex on Solaris, I think.
Fixes Bugzilla #3938.
2009-09-14 16:41:48 +00:00
Ryan C. Gordon
2cf2911131 Added s_muteWhenUnfocused cvar (thanks, Chris!).
Fixes Bugzilla #3768.
2009-09-14 16:25:29 +00:00
Ryan C. Gordon
af303a4813 SetTeam fix from Martin Doucha.
"Actually, client->ps.clientNum is unsafe. We had a little hunt for this some
time ago in Tremulous last year (it caused kick failures, annoying popup
windows and other nasty bugs). The problem is that a following spectator gets
full copy of client->ps of the followed player including clientNum. If you then
try to use this "shared" clientNum, you might affect someone else than you
wanted.

r1019 changes are safe as long as bots don't spectate players. However, a brief
grep on current code has revealed unsafe client->ps.clientNum usage in
SetTeam(). If a following spectator uses team command when forced balance is
on, it'll count teams incorrectly and send the error message to the followed
player instead. Here's the fix."

  Fixes Bugzilla #2986.
2009-09-14 15:45:52 +00:00
Tim Angus
64a0a078d2 * Fix warning in cl_main.c
* Fix bug #4026 (SDL dx backend doesn't work on some machines)
2009-09-14 12:34:31 +00:00
Ryan C. Gordon
2bd4c89203 Better handling of "voip" console command.
Prints usage info and current gain values, and catches a case where we
 report an error where no error exists.

  Fixes Bugzilla #4018.
2009-09-14 01:37:59 +00:00
Tim Angus
de8364102d * Fix typo in cl_avi.c (Ben Millwood/bubu^) 2009-09-08 21:47:18 +00:00
Zachary Slater
d34e91ef68 More 3966 business:
http://bugzilla.icculus.org/show_bug.cgi?id=3966
I'm hopeful that the server browser will surrender.
2009-07-07 22:13:06 +00:00
Zachary Slater
20c374e87b Fix for bad ping times, see bug 3966 but note that this patch is different, got a fresh one from
Amanieu in irc.
2009-07-04 19:43:13 +00:00
Thilo Schulz
9b2b9abd25 - Add error handling for Opensolaris f***ing up a numeric getnameinfo() call.
- Fix memory leak in getaddrinfo() call
Many thanks to Ben Millwood for reporting this.
2009-06-26 18:11:45 +00:00
Thilo Schulz
948f7a6015 - fix typo in previous commit to net_ip.c
- Make servers send heartbeats to master servers in ipv4 as well as ipv6 if master server has both protocols
2009-06-23 00:59:47 +00:00
Thilo Schulz
78254a626f Move these definitions over for other files to use in preparation of the next commit 2009-06-23 00:45:07 +00:00
Thilo Schulz
fb5f2a40ad minor cleanup 2009-06-23 00:19:08 +00:00
Thilo Schulz
0d6741fb23 Fix setsockopt so that setting the IPV6ONLY flag really works. 2009-06-22 23:32:11 +00:00
Zachary Slater
fa3f044257 This patch from Monk fixes the q3asm help screen
Bugzilla bug 3986 
http://bugzilla.icculus.org/show_bug.cgi?id=3986
2009-06-14 21:45:55 +00:00
Zachary Slater
95060e4fb6 See here:
http://bugzilla.icculus.org/show_bug.cgi?id=4064
2009-06-13 22:00:28 +00:00
Zachary Slater
49a2e1913e < sg_Tequila> says that this is busted. Thilo will hopefully be pleased. 2009-06-10 19:47:45 +00:00
Thilo Schulz
5e108751f2 fix code cleanup 2009-06-10 10:41:11 +00:00
Thilo Schulz
a7417a4bde minor code cleanup 2009-06-10 09:00:31 +00:00
Thilo Schulz
b9bcf3da94 How did this happen? 2009-06-10 08:25:01 +00:00
Thilo Schulz
3dddabcc52 Fix highest file descriptor for select(), thanks to Ben Millwood for reporting 2009-06-05 18:54:47 +00:00
Thilo Schulz
02195ea8bd Make client send a random challenge number in getchallenge requests 2009-06-01 05:29:28 +00:00
Thilo Schulz
18cc7c1ed3 Make servers echo challenge codes from client getchallenge commands 2009-06-01 05:28:47 +00:00
Thilo Schulz
eaaaa6f5fc Replace a few sprintf with Com_sprintf 2009-06-01 00:18:02 +00:00
Thilo Schulz
e0a2100df5 Fix warning in Sys_RandomBytes() usage 2009-05-31 20:31:56 +00:00
Thilo Schulz
4e8a181073 I'll retain the new way seeding the random number generator.. these calls are therefore redundant 2009-05-31 20:30:37 +00:00
Thilo Schulz
e4d0c14f70 Revert changes of rand() to random() as random() was redefined in quake3. 2009-05-31 20:24:10 +00:00
Thilo Schulz
b40f1507ea - Introduce seeding of the random number generator at startup
- Replaced all engine-side occurances of rand() with random()
2009-05-31 19:48:28 +00:00
Thilo Schulz
7aed7e8861 Make command net_restart work so that port/ip settings can be changed without server restart 2009-05-29 03:14:49 +00:00
Thilo Schulz
0693f0c1b3 This could never have worked in the first place. Duh. 2009-05-28 07:52:09 +00:00
Thilo Schulz
50ca55702f - Introduce new NET_CompareBaseAdrMask for easy comparison of ip address ranges
- Overhaul of the new banning functions:
  * basic check for redundant bans/exceptions
  * introduction of sv_banFile to make it possible to configure the file where to read bans and exceptions from
  * bans can now be deleted by giving address ranges, too.
2009-05-24 16:58:08 +00:00
Thilo Schulz
1f779efbb8 Minor fix for server infostring. Thanks to slacker 2009-05-22 00:34:37 +00:00
Thilo Schulz
09d9e5e19b Minor code cleanups 2009-05-21 21:10:25 +00:00
Thilo Schulz
f2d63c1633 More commentary to source code 2009-05-21 20:52:35 +00:00
Ludwig Nussel
10aca2387f whitespace fixes 2009-05-08 09:50:52 +00:00
Ludwig Nussel
eff87e9524 SV_ReplacePendingServerCommands is unused 2009-05-08 09:48:49 +00:00
Ludwig Nussel
bbd9f02d08 mark functions static (#4010) 2009-05-08 09:48:45 +00:00
Ludwig Nussel
f0e24f9a46 msg->oob is actually qboolean (#4010) 2009-05-08 09:48:40 +00:00
Ludwig Nussel
40e4a2e5c4 fix name compare in 'follow' command (#4013) 2009-05-08 09:31:26 +00:00
Ludwig Nussel
6b4f3aaed2 add missing trap_RealTime prototype (#4015) 2009-05-08 09:17:06 +00:00
Ludwig Nussel
31ae3826ae make Cvar_Command use all arguments just like Cvar_Set_f (#4063) 2009-05-08 09:13:16 +00:00
Ludwig Nussel
68fa0b55a9 cvarlist: also display systeminfo and user created flags 2009-05-08 09:13:13 +00:00
Ludwig Nussel
abda6d984a whitespace correction 2009-05-08 09:13:09 +00:00
Ludwig Nussel
b35c63f37a don't modify s_alDevice and add fallback to let openAL choose the device 2009-05-08 09:13:06 +00:00
Ludwig Nussel
de19303320 mark s_alDriver CVAR_LATCH 2009-05-08 09:13:03 +00:00
Ludwig Nussel
ec846d23b2 define STRING and XSTRING in q_shared.h (#4054) 2009-05-05 18:19:29 +00:00
Ludwig Nussel
799150ffc1 fix dedicated server stdin console (#4009) 2009-05-03 20:05:16 +00:00
Ludwig Nussel
ad06af3d8f make some functions static (#4014) 2009-05-02 18:01:02 +00:00
Ludwig Nussel
84fbc2252f align stack before re-entering engine to make sse work (#4051) 2009-05-02 17:15:51 +00:00
Tim Angus
53adde9fb2 * Fix leaking OpenAL buffers (Amanieu) 2009-03-15 12:39:53 +00:00
Tim Angus
18b27806bc * Remove unexplainable ( tr.overbrightBits > 0 ) condition when correcting
gamma in screenshots
2009-03-12 19:20:20 +00:00
Tim Angus
1bd63e59e5 * Remove superfluous comments committed with fix to bug #3999 2009-03-02 22:26:36 +00:00
Ludwig Nussel
1072b25ce8 initialize Sys_Milliseconds early (#3999) 2009-03-02 18:08:21 +00:00
Ludwig Nussel
35a27638fe initialize qport with random value instead of time (#3999) 2009-03-02 18:08:13 +00:00
Ludwig Nussel
ae612721a3 fix STANDALONE challengeResponse (#4000) 2009-03-02 17:29:51 +00:00
Ludwig Nussel
844ee46627 qcommon: vm: Add sparc JIT compiler.
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:40 +00:00
Ludwig Nussel
30c44b1a87 qcommon: vm: sparc, like 386, doesn't need var-args conversion.
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:35 +00:00
Ludwig Nussel
17a81ff7c9 qcommon: Add idsparc and set when __sparc__ && !C_ONLY
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-03-02 17:29:30 +00:00
Tim Angus
48d8c8876b * s/FS_FilenameIsExecutable/FS_CheckFilenameIsNotExecutable/g
* Fix potential buffer under run in FS_CheckFilenameIsNotExecutable
2009-02-26 13:02:59 +00:00
Ludwig Nussel
db040f856d move speex config.h to correct place 2009-02-11 09:21:43 +00:00
Ludwig Nussel
53d23a3df2 fix msvc build (#3857, #3771) 2009-02-10 07:56:56 +00:00
Ludwig Nussel
f2198c70e7 fix potential segfault (found by DerSaidin in xreal) 2009-01-23 20:12:45 +00:00
Ludwig Nussel
f5aae78481 security fix: prevent command injection via callvote 2009-01-17 23:09:58 +00:00
Ludwig Nussel
cde5fcfb9b fix overflow in CG_ParseTeamInfo
based on patch for Tremulous, thanks to Roman Tetelman
2009-01-13 07:57:03 +00:00
Ludwig Nussel
8536a42dd5 gamename is already a cvar with CVAR_SERVERINFO
do not set gamename to different values in getstatus and getinfo responses
2009-01-11 18:42:50 +00:00
Tim Angus
72dea0a184 * Fix some new GCC 4.3 warnings
* Fix many many strict aliasing warnings, now that it's re-enabled
2008-11-10 23:55:22 +00:00
Ludwig Nussel
7c19978aaa fix variable declaration (#3849) 2008-11-10 09:47:14 +00:00
Ludwig Nussel
01dca75d9f realloc vm->instructionPointers on ppc64
rename VM_Malloc, VM_Free to PPC_Malloc, PPC_Free
safer constant optimization handling

Patch by Przemysław Iskra (#3796)
2008-11-10 09:46:31 +00:00
Ludwig Nussel
235945c6bb new PowerPC vm
Patch by Przemysław Iskra (#3796)
2008-11-10 09:46:01 +00:00
Ludwig Nussel
c754d6fdfb fix strict aliasing issues
Patch by Przemysław Iskra (#3805)
2008-11-03 17:03:54 +00:00
Ludwig Nussel
f86f8e8ed8 fix 64bit VM interface to work on ppc64 (#3838) 2008-11-03 17:03:44 +00:00
Ludwig Nussel
1e02c641bc move location of version string in console a bit
patch by 'devhc97' (#3758)
2008-11-02 17:39:25 +00:00
Ludwig Nussel
5a3eda3485 specify alDevice instead of NULL when asking for for ALC_EXTENSIONS
patch by Ben Millwood (#3777)
2008-11-02 17:32:25 +00:00
Thilo Schulz
83540695b3 Patch to make getnameinfo() call work on OpenBSD systems. Created by agent59692154@spamcorptastic.com 2008-10-29 15:53:46 +00:00
Ludwig Nussel
ce907f32cc fix return value of CL_cURL_CallbackWrite (#3804) 2008-10-24 07:08:52 +00:00
Ludwig Nussel
7d9ba904ec fix crash with videos on ppc (#2523,3802). Patch by Przemysław Iskra 2008-10-24 07:02:35 +00:00
Tim Angus
130c0c6575 * Move command argument completion from being hard coded to being associated
with the individual commands to be completed
2008-09-16 21:05:22 +00:00
Tim Angus
47ee177430 * Supply specific identifier to the master server (Mathieu Olivier) 2008-09-15 20:24:04 +00:00
Tim Angus
b2d87c4b2a * Add Com_HexStrToInt
* Fixed some whacky indentation in q_shared.c
* Allow single character keys e.g. 'c' to be used in cl_consoleKeys in addition
  to ASCII characters
* Experimental code to ignore dead keys
2008-09-05 23:38:35 +00:00
Thilo Schulz
9dd887b2ea - Add scope id to ipv6 addresses.
- Clean up a few other ipv6 issues like removing the seemingly unnecessary MacOSX workaround.
- Bring ipv6 master server up to speed for dpmaster

Thanks go out to Mathieu Olivier for this work.
2008-08-31 19:54:29 +00:00
Tim Angus
9d0e643425 * Fix to console completion bug introduced by the last fix (from the oops
dept.)
2008-08-30 22:07:50 +00:00
Tim Angus
56972c5c69 * Update IN_IsConsoleKey so that specifying ascii values/characters for the
console key always results in the character being used as opposed to the key
2008-08-30 19:29:34 +00:00
Tim Angus
19eb906706 * Better condition to test whether to use the character or the key 2008-08-28 23:08:54 +00:00
Tim Angus
c0328ab4f6 * Revert 'Handle dead keys more gracefully by taking a "best guess" rather than
ignoring completely' from r1459; it can't ever work acceptably, especially on
  azerty/qwertz layouts
* Make the ordering of the output from in_keyboardDebug more sensible
* Add cl_consoleKeys cvar, a space delimited list of key names or characters
  that toggle the console
2008-08-28 22:05:34 +00:00
Tim Angus
f1faa1d12a * Collapse common command completion code into one function and fix the
incorrect buffer size parameter to strncpy (from the
  how-the-fuck-did-this-ever-work dept.)
2008-08-27 20:00:34 +00:00
Tim Angus
36a43f2aa1 * Handle dead keys more gracefully by taking a "best guess" rather than ignoring
completely
* When activating or deactivating the mouse flush any pending motion events;
  this should stop the view moving unpredictably in these circumstances
* Add keyname completion to "unbind"
2008-08-25 21:15:25 +00:00
Tim Angus
a6382d2d9b * Fix unused variable warning
* Add USE_LOCAL_HEADERS guards to sys_loadlib.h
2008-08-23 22:45:30 +00:00
Tim Angus
b555d68b3f * (bug #3729) server dependencies on client.h (Ben Millwood)
* (bug #3731) BUILD_MISSIONPACK flag in Makefile (Gabriel Schnoering
  <gabriel.schnoering@gmail.com>)
* (bug #3756) Q3VM crashes on unaligned block copy with SIGBUS (Patrick Baggett
  <baggett.patrick@figglesoftware.com>) and...
* (bug #3755) IOQuake3 shouldn't use GCC-specific __FUNCTION__
2008-08-22 22:47:26 +00:00
Tim Angus
acbf982689 * Don't set SE_KEY event to ctrl-h; I don't think this makes sense
* Don't warp the mouse on deactivation unless the cursor is in the window
  already; this fixes in_nograb
* Stop grabbing the mouse in windowed mode when there is no sense in
  doing so
* Make sure that IN_Restart is only called on r_fullscreen modification
  if a mode change actually takes place
2008-08-22 22:16:37 +00:00
Tim Angus
e4e0568641 * Really fix backspace on OS X (I hope) 2008-08-22 11:41:54 +00:00
Tim Angus
c1befbda75 * Prevent ~ from generating a character
* Fix backspace on OS X (I hope)
2008-08-22 11:16:35 +00:00
Tim Angus
953200cafc * Update to jpeg-6b (only a decade old) 2008-08-21 23:29:09 +00:00
Tim Angus
5b4dc4c743 * Tidy up the keyboard code a bit, add in_keyboardDebug 2008-08-19 21:32:23 +00:00
Tim Angus
1af6eb9592 * More robust x86 vm entrypoint/callback assembly (Tron) 2008-08-17 23:22:06 +00:00
Tim Angus
d781a25157 * Fix misplaced #endif 2008-08-14 07:59:34 +00:00
Tim Angus
49fa0edd61 * Pass the "best" SDL_PixelFormat (as returned by the initial call to
SDL_GetVideoInfo) to SDL_ListModes; this fixes said function returning an
  empty list when using the "windib" driver
2008-08-13 19:39:38 +00:00
Tim Angus
f2baf359ae * s/GL_CLAMP/GL_CLAMP_TO_EDGE/g (If this change appears to cause you problems
and you're using an nVidia graphics card, make sure your 'conformant texture
  clamp' setting is set to on for ioq3)
2008-08-12 19:34:43 +00:00
Tim Angus
7edcc7d16a * Use IPv6 header qcommon/wspiapi.h if it has been added by the end user
* Update README to explain the Windows XP requirement
2008-08-09 19:12:30 +00:00
Tim Angus
c29417b42a * Always show the mouse cursor when the mouse is disabled
* Rename IN_StartupJoystick to IN_InitJoystick, add IN_ShutdownJoystick
* Add IN_Restart, which avoids calling IN_DeactivateMouse at the wrong time
* Call IN_Restart when changing r_fullscreen
* Add CVAR_ROM r_sdlDriver for easy checking of the SDL driver in use
* Random README tweaks
2008-08-09 13:20:00 +00:00
Tim Angus
d4d5527a89 * Add Sys_GLimpInit for platform specific GLimp initialisation
* Move Unix specific signal handlers to Sys_PlatformInit
* (Windows only) Don't set the SDL video driver if SDL_VIDEODRIVER is already
  set externally
* (Windows only) Use the "windib" SDL video driver if in_mouse is set to -1
2008-08-08 21:35:33 +00:00
Tim Angus
2cf5052786 * (bug 3674) Change default for s_alGain from 0.4 to 1.0 2008-08-08 18:27:06 +00:00
Tim Angus
9a5d971705 * Fix memory leak in win32 VM code (arQon/dmitry) 2008-08-06 16:09:29 +00:00
Tim Angus
a87661a1be * Whitespace... 2008-08-03 21:38:54 +00:00
Tim Angus
d56c53abb4 * Report SDL driver used on GLimp initialisation 2008-08-03 21:37:51 +00:00
Tim Angus
00e790ce00 * Change win32 client Sys_Sleep so it ONLY sleeps since before it was waking on
more or less any input event; fine for the server, not so much use for the
  client
* In the main loop, don't bother sleeping if it's going to be less than 10ms as
  the methods we're using to sleep at the moment aren't very precise
* Add Sys_PlatformInit for platform specific initialisation
* In win32 Sys_PlatformInit force selection of the DirectX SDL backend in order
  to get better fullscreen mouse input (in conjunction with a patched SDL DLL
  http://bugzilla.libsdl.org/show_bug.cgi?id=265)
2008-08-03 19:42:53 +00:00
Tim Angus
d13269c5bb * Restrict OpenAL capture support test hack to OS X, where it is required; this
fixes a crash on exit with Windows when using OpenAL
2008-08-03 19:31:42 +00:00
Tim Angus
71f8a85e42 * Sign check com_maxfps* variables 2008-07-21 22:16:57 +00:00
Tim Angus
0124371c01 * Use Sys_Sleep to limit FPS, which will save CPU
* Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory
* Fix reopening of bug 3703, I hope
2008-07-21 22:02:54 +00:00
Tim Angus
3855f65d17 * Fix confusion of cgame and renderer entity array bounds (Tr3B) 2008-07-16 18:07:36 +00:00
Tim Angus
42e444ea0b * Revert r1341 as there doesn't seem to be a lot of point to the change and it
potentially will cause input events to be queued in a different order to that
  in which they were received
2008-07-16 17:45:10 +00:00
Ludwig Nussel
2ed334b2be fix build without VOIP (David Severwright, bug#3720) 2008-07-16 07:15:09 +00:00
Tim Angus
d84d418086 * Remove cl_platformSensitivity as it predates the move to SDL everywhere 2008-07-12 13:31:31 +00:00
Tim Angus
3c9dc98d04 * (bug 3712) MSVC build fix s/strtof/strtod/ (Pat Raynor <raynorpat@gmail.com>) 2008-07-09 21:22:29 +00:00
Tim Angus
de8131938c * Fix server info string voip setting 2008-07-08 16:23:06 +00:00
Tim Angus
8ea86a4670 * Allow floating point values for r_znear 2008-07-08 09:15:48 +00:00
Tim Angus
37d664d4b2 * Rename voip cvar to cl_voip
* s/#if USE_VOIP/#ifdef USE_VOIP/
* Add generalised runtime cvar range checking, currently on [sv|cl]_voip,
  dedicated and a bunch of r_ variables
2008-07-07 22:31:39 +00:00
Ryan C. Gordon
809c361744 Reverted svn revision #1410 to sv_init.c
sv_voip is a protocol version number, not a boolean, so this check is
 reasonable and correct.
2008-07-06 20:07:43 +00:00
Ryan C. Gordon
71b196c0dc Fixed compiler warning on Mac OS X. 2008-07-06 18:32:41 +00:00
Zachary Slater
89e0e9d892 Reverting. 2008-07-06 17:16:14 +00:00
Tim Angus
391bb74c44 * Don't start UI when starting client binary with +set dedicated 1 2008-07-06 15:47:15 +00:00
Tim Angus
9d469692f3 * Fix killserver command for client binary based dedicated server 2008-07-06 10:55:19 +00:00
Zachary Slater
963aa3e40f Theoretical higher chance of working. 2008-07-06 04:23:13 +00:00
Zachary Slater
3c13c61fa4 It's either the Wu-Tang Symbol or the tango quake3 logo, someone please
test this on Linux.
2008-07-06 03:04:55 +00:00
Tim Angus
6b572920a9 * Remove silly range check on sv_voip during initialisation
* Changed dedicated binary dedicated cvar to CVAR_INIT and remove runtime check
2008-07-06 01:35:01 +00:00
Tim Angus
b601941240 * Fixed client binary dedicated server
* Revert 1286 as the checks are no longer redundant following above fix
2008-07-06 01:30:42 +00:00
Tim Angus
7fe9a02d91 * In the dedicated binary, prevent setting dedicated cvar to 0 2008-07-06 01:00:00 +00:00
Tim Angus
49413057ee * Change dedicated cvar to CVAR_LATCH on the dedicated server 2008-07-06 00:31:52 +00:00
Tim Angus
c7225dc0ae * Fix to speex compile warning 2008-07-06 00:28:42 +00:00
Tim Angus
2c0861c1ce * (bug 3610) Server sending unnecessary newline with SV_ConSay_F (Tyler Schwend
<TylerSchwend@gmail.com>)
* (bug 3623) COMMAND is mapped to the ALT key (Matthias <Kapffer@macbay.de>)
* (bug 3665) Typo error in FS_FOpenFileByMode function (TsT <tst2006@gmail.com>)
* (bug 3669) Some files left out of Solaris Packages (Vincent Cojot
  <vincent@cojot.name>)
* (bug 3680) server quit messages (Ben Millwood)
* (bug 3682) Maps with >1024 models cause a segfault (misantropia
  <bnoordhuis@gmail.com>)
* (bug 3683) R_FindShader(): negative lightmap indexes cause stray pointers
  (misantropia <bnoordhuis@gmail.com>)
* (bug 3688) q3asm potential segfault fix and other changes (TsT
  <tst2006@gmail.com>)
* (bug 3695) Not allowing to write file with lib extention (.dll/.so/...) (TsT
  <tst2006@gmail.com>)
* (bug 3696) make-macosx-ub.sh outdated by revision 1340; test for Tiger not
   working (Matthias <Kapffer@macbay.de>)
* (bug 3698) #error reported as warning in q3cpp (and no #warning support)
  (Ben Millwood)
* (bug 3703) restoring the valued pre-SDL window behaviour (/dev/humancontroller
  <devhc97@gmail.com>)
2008-07-05 23:50:38 +00:00
Ryan C. Gordon
1e21a3e258 VOIP: Added cvar cl_voipCaptureMult to boost gain on recorded bits. 2008-07-05 04:38:16 +00:00
Ryan C. Gordon
fc0ba1a53f Whitespace cleanup. 2008-06-29 04:05:28 +00:00
Ryan C. Gordon
21d1cd380b Don't show VoIP meter in all the common scenarios. 2008-06-29 04:04:33 +00:00
Zachary Slater
3856dea112 minor spelling fix. 2008-06-25 06:20:23 +00:00
Ryan C. Gordon
ee54985383 VoIP: allow targetting last attacker, or the one in your crosshairs. 2008-06-25 05:51:05 +00:00
Ryan C. Gordon
f8d6828f15 VoIP: Added cheapie VoIP meter. 2008-06-25 05:50:44 +00:00
Ryan C. Gordon
3958f1099e Added ioq3-specific credits screen. 2008-06-25 05:50:15 +00:00
Ludwig Nussel
21a208cb82 pass the correct size to Q_vsnprintf (Ian Lindsay) 2008-06-20 07:08:42 +00:00
Zachary Slater
4713fa4f79 Thanks to Lakitu7 for pointing this out. 2008-06-17 04:44:36 +00:00
Ryan C. Gordon
c923872ca2 Added GL_EXT_texture_compression_s3tc support.
GL_S3_s3tc, which Quake 3 previously supported, is legacy. This new codepath
 is the common, vendor-neutral extension to get the same results.
2008-06-13 02:28:51 +00:00
Ludwig Nussel
a98fed9ee2 bind ipv6 sockets first
by binding the ipv6 sockets first it's possible to bind 0.0.0.0 and
:: to the same port.
2008-06-12 18:32:33 +00:00
Ludwig Nussel
b060eae562 show numeric address the server binds to 2008-06-12 18:32:29 +00:00
Ryan C. Gordon
3ad65755f3 Whoops, maybe this is the right header location... 2008-06-09 00:07:14 +00:00
Ryan C. Gordon
a665d822d8 Added #include to fix compiler warning on Mac OS X. 2008-06-09 00:04:45 +00:00
Ryan C. Gordon
a7b854d65f VoIP: Save own voice when recording a demo.
We fake a server packet and write it directly to the demo file at the point
 where we'd transmit to the server. This is a little nasty, but it seems to
 be the most reasonable solution.
2008-06-08 08:25:25 +00:00
Ryan C. Gordon
28c48a8cf9 VoIP: Don't lose gain for good if using VAD on disconnect.
This temporarily disables VAD so the system can clean up recording state.
2008-06-08 08:24:38 +00:00
Ryan C. Gordon
c45fe80ea6 Removed an obsolete FIXME. 2008-06-08 08:23:55 +00:00
Ryan C. Gordon
be9ae48039 VoIP: tweaked VAD code.
Also added cl_voipVADThreshold cvar...if the power of a set of Speex frames
 doesn't exceed this value, it isn't transmitted.
2008-06-08 07:29:25 +00:00
Ryan C. Gordon
fd239c58a8 VoIP: Enable Automatic Gain Control. 2008-06-08 07:09:45 +00:00
Ryan C. Gordon
d4ee08b985 VoIP: attempt at changing voipPower calc and using it for VAD.
The Speex VAD sort of sucks, honestly, or I'm not using it right. Now
 trying this algorithm, after denoising:

    http://lists.xiph.org/pipermail/speex-dev/2006-March/004269.html

And I'll play around to find the threshold for considering a set of frames
 to be "voice" from there.

Also worth noting: we consider the power of the set of frames as a whole, so
 you need to sustain power for 0.25 seconds at a time, or it's not "voice."
2008-06-08 07:09:10 +00:00
Ryan C. Gordon
fdfaff64f8 VoIP: changed debug output filenames. 2008-06-07 14:41:21 +00:00
Ryan C. Gordon
fec2cc2f05 VoIP: initial shot at voice activation. 2008-06-07 14:40:59 +00:00
Ryan C. Gordon
8028fc042c VoIP: Only update from cl_voipSendTarget if sending data. 2008-06-07 14:40:30 +00:00
Ryan C. Gordon
c50799fcf7 VoIP: Initial work on adding Speex preprocessor. 2008-06-07 14:39:49 +00:00
Ryan C. Gordon
26c706df15 VoIP: Don't hardcode Speex sample rate. 2008-06-07 14:38:46 +00:00
Ryan C. Gordon
bab9a00838 VoIP: Fixed per-user gain output. 2008-06-05 15:14:07 +00:00
Julian Priestley
f65a956c81 Add PRODUCT_VERSION back into q_shared.h for MSVC builds. 2008-06-04 23:29:37 +00:00
Ryan C. Gordon
020704d2ff VoIP: functionality to adjust incoming audio gain, per-user. 2008-06-04 21:50:00 +00:00
Ryan C. Gordon
cc18323a99 VoIP: client can now specify targets for voice transmission. 2008-06-04 21:49:15 +00:00
Ryan C. Gordon
45c18e29b8 VoIP: voip cvar should be 1 by default. 2008-06-03 06:06:17 +00:00
Ryan C. Gordon
32d7799c7c Patched to compile on non Mac platforms. 2008-06-03 04:40:40 +00:00
Ryan C. Gordon
8ab3f7af8d Changed the protocol for VoIP packets to support legacy clients.
Previously, a legacy client wouldn't get a VoIP packet, but if they did,
 they'd panic and disconnect. Now they ignore them and continue on. This also
 gives us the framework to add other features legacy clients can ignore.

Oh, this also has the benefit of allowing us to store incoming VoIP for
 playback in recorded demos. They'll play the chatter on VoIP clients, and
 be ignored on legacy ones. Huge win.
2008-06-03 02:32:52 +00:00
Ryan C. Gordon
e0ebde0b27 Don't allow client to capture audio if playing back a demo. 2008-06-03 02:28:03 +00:00
Ryan C. Gordon
0403ca2260 More VoIP work: treat voip/sv_voip cvars as protocol version numbers. 2008-06-02 19:52:13 +00:00
Ryan C. Gordon
1e4fa5a54c Treat sv_voip cvar as a version number (0 == off, 1 == version 1 protocol).
Don't publish it to server's info string if set to zero.
2008-06-02 19:41:09 +00:00
Ryan C. Gordon
953e9ec287 sv_voip cvar should be latched. 2008-06-02 19:37:05 +00:00
Ludwig Nussel
5bdce1d547 fix openal dlopen 2008-06-02 15:54:36 +00:00
Ryan C. Gordon
7b4a796e44 Added libspeex to revision control, and updated Makefile to use it. 2008-06-01 18:53:28 +00:00
Ryan C. Gordon
b5eaa94d03 Changed a few VoIP cvars to be latched.
It either doesn't make sense to change these mid-game, or doing so won't work.
2008-06-01 18:10:33 +00:00
Ryan C. Gordon
9b1984647a Forbid setting voip cvar if network data rate is too low.
This prevents "Connection Interrupted" packets as VoIP data is incoming.
2008-06-01 18:08:03 +00:00
Ryan C. Gordon
a948f7cf69 Client shouldn't try to capture audio data if voip cvar is disabled. 2008-06-01 17:43:58 +00:00
Ryan C. Gordon
12326a9eac Initial patch for in-game VoIP support! 2008-06-01 07:51:23 +00:00
Ludwig Nussel
0ee3960225 mumble link support
The coordinate calculation was adopted from Warsow's mumble patch.
2008-05-30 17:19:31 +00:00
Ludwig Nussel
a15002ad0d reorder includes to fix build on OpenBSD (#3663, patch by Jonathan Gray) 2008-05-25 10:00:15 +00:00
Thilo Schulz
843994c074 whoops. 2008-05-17 10:50:08 +00:00
Thilo Schulz
81f9b20bfb - Workaround for buggy MacOSX getaddrinfo() implementation that doesn't accept AF_UNSPEC parameter in hints structure. Thanks icculus for reporting.
- Add -faltivec flag for debug builds.
2008-05-17 10:46:41 +00:00
Tim Angus
b2207b250f * (bug 3641) Server is left running following a local disconnect 2008-05-12 10:49:02 +00:00
Tim Angus
a857487f9b * Fix a bunch of compile warnings
* Only call pkg-config if it exists
* Remove cl_consoleHistory from README
2008-05-10 18:51:02 +00:00
Ludwig Nussel
c45d5403a5 combine all mouse events received in one frame 2008-05-06 20:24:34 +00:00
Ludwig Nussel
d7bdf4b344 define the product version in the Makefile 2008-05-06 20:24:32 +00:00
Thilo Schulz
3f56dffaa7 Show true framerate with stereo separation enabled 2008-05-03 12:58:14 +00:00
Thilo Schulz
fa0ff6aaac shut up warning 2008-05-01 16:10:01 +00:00
Thilo Schulz
10ed996784 - replace a few constant values with GL macros in tr_cmds.c
- tidy up top of tr_types.h a bit, change flags to hex representation
- make ROM cvar enforcing really work
- remove cg_stereoSeparation from cgame as it is obsolete.
- Add CG_DrawCrosshair3D so people see crosshair correctly when stereoseparation is enabled
2008-05-01 14:56:57 +00:00
Thilo Schulz
65938da5ae - variables with CVAR_ROM set get now overwritten by Cvar_Get() if the cvar exists already but was created by the user.
- Fix null pointer crash in Cvar_Print_f(), thanks to humancontroller for reporting.
2008-05-01 11:29:49 +00:00
Thilo Schulz
82e32bdf41 Make forced unloading work in more cases than just server disconnects 2008-04-29 22:49:37 +00:00
Thilo Schulz
1156a63d52 - change default value for stereo seperation
- make clearing buffer use black for clearing when changing anaglyphmode
- Make sure that dlights are greyscale, too.
2008-04-27 21:09:03 +00:00
Thilo Schulz
ae08d1a6d8 This may enable stereo rendering for other devices like shutter glasses, but I don't know whether this works yet. 2008-04-27 19:07:57 +00:00
Thilo Schulz
782b890caa Another two minor clean-ups to last commit. 2008-04-27 17:43:35 +00:00
Thilo Schulz
425c351d1b - Implement stereo rendering with anaglyph images.
- Add r_greyscale for black&white rendering
2008-04-27 17:32:14 +00:00
Tony J. White =
f222785168 * (bug 3611) prevent global symbol conflict on some systems (Mac OS X) for
lcc's getopt (Ben Millwood)
2008-04-23 17:39:39 +00:00
Thilo Schulz
1306d9760d Fix crash bug for interfaces without assigned address, thanks to PhoinixGR for reporting. 2008-04-21 13:34:44 +00:00
Thilo Schulz
d77d3e0658 fix obvious bug, thanks mattn2 2008-04-16 20:57:08 +00:00
Ludwig Nussel
7a8c1ddaa6 Fix build on IRIX (Patrick Baggett) 2008-04-16 06:42:29 +00:00
Ludwig Nussel
53fc214d00 better handling of illegal mode values 2008-04-13 08:30:51 +00:00
Ludwig Nussel
89a5a6429e sort video modes only if there are modes to sort 2008-04-13 08:30:48 +00:00
Thilo Schulz
cebdb640f3 remove commented code 2008-04-12 20:05:33 +00:00
Thilo Schulz
c281b6aca0 Another change to server parsing as a server reporting in from 69.79.84.0/24 with the master server could screw up the server list in ioquake3 clients. 2008-04-12 19:53:16 +00:00
Tim Angus
845de6a960 * Fix some recently introduced warnings
* Fix referenced pk3 list including excessive number of spaces
2008-04-12 18:58:06 +00:00
Thilo Schulz
563eb9443b One minor comment fix 2008-04-12 17:14:53 +00:00
Thilo Schulz
eb74549dde Only don't send packet on disabled multicast if it actually is a multicast packet 2008-04-12 17:03:18 +00:00
Thilo Schulz
f8d8a1c2f7 - fix a potential file descriptor leak in server side of pak downloading
- add new functions for banning clients from server, in engine part. This will also make it possible to ban ipv6 addresses in old mods.
2008-04-12 17:00:18 +00:00
Thilo Schulz
9a8cc99a93 - Revamp in-game server browser: you can now scan for games on multiple master servers, while retaining compatibility with old QVMs.
- Make Master server reporting/server queries ipv6 capable.
2008-04-11 18:39:03 +00:00
Thilo Schulz
78a82bcba2 Add com_standalone cvar for at-runtime handling of mods that do not require the original quake3 game data. 2008-04-10 15:37:25 +00:00
Thilo Schulz
b3822d03e2 Include #ifdef to make it easier to create a stand-alone binary. 2008-04-09 23:43:30 +00:00
Thilo Schulz
ca5fabe8c6 Fix uninitialized usage warnings on MacOSX. 2008-04-09 22:20:04 +00:00
Thilo Schulz
eb3b59308b Add Multicast capabilities for LAN server scanning. 2008-04-09 14:37:42 +00:00
Thilo Schulz
32bd0ab5bd Add length checking to prevent malicious mdr files to overflow buffers. 2008-04-08 18:56:03 +00:00
Thilo Schulz
cafbb38d85 Handle detail textures correctly when r_detailedTextures is set to 0. 2008-04-06 16:29:22 +00:00
Ludwig Nussel
43ac1eca6a set flag to allow forced unload of a running VM
required to prevent a client from exiting if the server disconnects (bug 3585)
2008-04-06 12:59:35 +00:00
Ludwig Nussel
8bcb33892e debug output for EXEC_NOW 2008-04-06 12:59:30 +00:00
Ludwig Nussel
8d1a5f8b32 catch EXEC_NOW on quit to prevent deleting a running vm 2008-04-06 12:59:26 +00:00
Thilo Schulz
0811b1c99c Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too. 2008-04-06 02:24:07 +00:00
Thilo Schulz
f5b3a13313 revert changes to that one as this is not necessary. 2008-04-06 02:19:00 +00:00
Thilo Schulz
5c1167557a Make sure that one broken shader file cannot crash the game / make the other shaders unusable. 2008-04-06 02:13:43 +00:00
Tim Angus
85bee47f52 * Fix to MinGW build following IPv6 changes 2008-04-05 16:01:58 +00:00
Thilo Schulz
fcbf0bdd84 I hope this makes the code work on solaris, too and fix the EINVAL on sendto() 2008-04-05 15:10:50 +00:00
Thilo Schulz
70cd2ccfab - include Winsock2.h for windows
- add a __BSD__ define for all bsd platforms if it doesn't exist.
2008-04-05 14:28:57 +00:00
Thilo Schulz
7b80773212 Fix compilation on Solaris and possibly other platforms that have no getifaddrs() 2008-04-05 13:18:09 +00:00
Thilo Schulz
5d63a38ad9 Basic IPv6 support. Some inspiration from the patches by Lubos Dolezel and JF Tremblay at https://bugzilla.icculus.org/show_bug.cgi?id=2355. 2008-04-04 23:22:22 +00:00
Tony J. White =
f82ea67c67 * remove COM_Compress() call on script buffer loaded into memory. I assume
this was added in order to save cycles if a script is loaded and then
  parsed multiple times, but it caused line numbers to be reported
  incorrectly for parse errors.  If a script is loaded into memory and
  parsed multiple times then the script itself should be optimized instead
  of doing it at runtime.  Also, there was a possibility of segfault
  due to where this was called.
2008-03-28 03:26:59 +00:00
Thilo Schulz
1d072dfdb5 These checks are now redundant. 2008-03-27 03:21:32 +00:00
Thilo Schulz
fe1e02e457 A more clean solution to this bug. Stop the renderer when the UI VM is not running, as no commands get issued in that case anyways. 2008-03-27 03:18:32 +00:00
Thilo Schulz
d79a5487bc Fix flashing connect screen, see https://bugzilla.icculus.org/show_bug.cgi?id=3425. 2008-03-27 03:00:49 +00:00
Thilo Schulz
ccffb85185 This hack probably is not needed anymore. 2008-03-27 02:42:17 +00:00
Thilo Schulz
9412316883 Make sure fullscreen does not work for in_nograb when manually Alt-Entering, too. 2008-03-26 16:20:21 +00:00
Thilo Schulz
401f7521ff Make cast-workaround to unsigned int use sizeof operator. 2008-03-26 03:13:30 +00:00
Thilo Schulz
0ea4387270 strcpy -> memmove as string does overlap which should be avoided according to the manpage. Thanks to Jacques Boscq. 2008-03-25 22:06:08 +00:00
Thilo Schulz
11d9608fca Remove obsolete code for obfuscation. 2008-03-25 21:59:31 +00:00
Thilo Schulz
99fe055931 Commit patch from Jacques Boscq, which will prohibit the calling of memcpy with src=dest 2008-03-25 21:45:20 +00:00
Thilo Schulz
bb47026b5f - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell.
- Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf.
2008-03-25 21:36:09 +00:00
Thilo Schulz
5728fc2ec8 vsnprintf -> Q_vsnprintf 2008-03-25 16:44:01 +00:00
Thilo Schulz
302b1b49ff Applied patch to clean up code for reading cvars and add new command "print" for printing the content of cvars, by Ben Millwood.
See also https://bugzilla.icculus.org/show_bug.cgi?id=3546
2008-03-25 16:20:03 +00:00
Ludwig Nussel
7a5243a3b2 use vm->callLevel to count recursive calls to VM_Call
Throw an error if vm->callLevel is set and VM_Free is called.
2008-03-24 21:20:55 +00:00
Ludwig Nussel
6c5211c0d3 catch Cbuf_ExecuteText(EXEC_NOW,...) from the ui as that would crash the vm 2008-03-24 21:20:49 +00:00
Tim Angus
6a213889dc * (bug 3567) Fix to error handling in Ogg decoder (Joerg Dietrich) 2008-03-11 21:43:25 +00:00
Tim Angus
b5a220359b * Ogg codec fix regarding ogg files in pk3s (Tr3b) 2008-03-02 15:28:39 +00:00
Tim Angus
e31156e586 * Write q3config_server.cfg for the server, to avoid reseting client variables
after running a dedicated server
2008-02-28 21:39:54 +00:00
Tim Angus
fd69a32508 * (bug 3427) Single Player causes SIGBUS on SGI IRIX (Patrick Baggett) 2008-02-20 19:41:52 +00:00
Thilo Schulz
dc3d2457e0 Angst and zinx cajoled me into removing trying to load libcurl.so again. 2008-02-17 13:46:34 +00:00
Thilo Schulz
a99634c2d3 Fall back to libcurl.so.4 or libcurl.so.4 if the default symlink does not exist. 2008-02-16 22:57:45 +00:00
Thilo Schulz
1f86aba342 Remove .3 part in default curl library. With it www download is broken on most recent distributions, as there is no libcurl.so.3 2008-02-16 22:23:47 +00:00
Ludwig Nussel
c0f7c8d9cd png fixes by Joerg Dietrich 2008-02-15 08:37:44 +00:00
Ludwig Nussel
d91c5c9282 make the pcx decode actually work 2008-02-14 13:30:32 +00:00
Tim Angus
a5b51a95d7 * Consolidate tr_image_*.h headers into tr_local.h to more closely follow the
Q3 coding style
* Prefix image loaders with R_ now they're non-static
2008-02-14 13:16:13 +00:00
Ludwig Nussel
84f32478b9 remove code duplicated from libjpeg and make internal functions static 2008-02-14 11:13:51 +00:00
Ludwig Nussel
7132b492dd don't read more memory than available in jpg decode 2008-02-14 11:13:42 +00:00
Ludwig Nussel
c77f537ae3 make pcx decoder more robust against corrupt files 2008-02-14 11:13:30 +00:00
Ludwig Nussel
85ba66e7e8 move all image decoders into separate files 2008-02-14 11:13:18 +00:00
Ludwig Nussel
a3d62033d8 make tga decoder more robust against corrupt files 2008-02-14 11:12:59 +00:00
Ludwig Nussel
02d842532e make bmp decoder more robust against corrupt files 2008-02-14 11:12:42 +00:00
Ludwig Nussel
f65dbd4351 integer overflow safeguards 2008-02-12 10:03:43 +00:00
Ludwig Nussel
4eec54c338 move png support to separate file 2008-02-12 10:03:21 +00:00
Tim Angus
cb06e3e93a * Fixes to some muppetry in snd_dma.c (arQon) 2008-02-10 21:01:06 +00:00
Tim Angus
50783f1dbb * Disabling r_allowSoftwareGL as per bug 3526 2008-01-31 17:44:33 +00:00
Tim Angus
59c231c6c6 * (bug 3412) %s expansion security patch (DevHC) 2008-01-22 23:44:10 +00:00
Tim Angus
9cc4e0c976 * Fix to bug in S_FileExtension (Tr3B) 2008-01-19 19:06:25 +00:00
Tony J. White =
4c3b7def84 * send along the reason for disconnection when sending the disconnect
cmd to all clients in SV_FinalMessage()
* on Com_Error(), set the cvar "com_errorCode" with the errorParm_t integer
  value for the error.  This can be used by a mod's ui to an draw error
  dialog specific for the error (e.g. Reconnect button on ERR_SERVERDISCONNECT)
2007-12-31 22:35:22 +00:00
Thilo Schulz
08ee31604a Remove small redundancy 2007-12-27 11:45:20 +00:00
Thilo Schulz
87fa68fd41 Add gamedirectory in .app to searchpath on MacOSX 2007-12-14 21:53:57 +00:00
Thilo Schulz
3648af78dc Fix building on MacOSX. 2007-12-14 16:54:13 +00:00
Thilo Schulz
662b67c733 Replace obsolete macro with some other macro. I hope this does not break too much. 2007-12-14 16:25:33 +00:00
Thilo Schulz
99c8676383 Revert changes in ioquake3 AL code, fix OpenAL headers. 2007-12-13 23:27:41 +00:00
Thilo Schulz
a9a8022d53 Modification to stop crash on Linux for dlopened() OpenAL, will break MacOSX build again. 2007-12-13 13:46:30 +00:00
Thilo Schulz
d075f172df Fix multiple symbol errors for compilation on MacOSX. Remove unnecessary definitions. 2007-12-13 10:58:43 +00:00
Tim Angus
b906e94a6d * (bug 3470) Correct type for function pointer
(baggett.patrick@figglesoftware.com)
2007-12-11 21:11:01 +00:00
Tim Angus
b9ab949ec7 * Replace "powered by ioq3" text with ui_ioq3 CVAR_ROM
* Guess display aspect based on the desktop resolution
* Sort detected resolutions by...
  + closeness to display aspect
  + ascending width
  + ascending height
* Apply Q3 coding style to resolution detection code
2007-12-11 00:19:23 +00:00
Ludwig Nussel
6b5fbd189d detect available resolutions and offer them in the menu
Store the resolutions detected by SDL in a cvar. The mod code can
then optionally use the cvar to offer a better choice in the menu.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
2007-12-08 10:08:05 +00:00
Ludwig Nussel
f2cbb819fc print "powered by the ioquake3 engine" in the main menu 2007-12-08 10:08:02 +00:00
Tim Angus
6113cf7a68 * (bug 3454) Fix crash in autocompletion due to incorrect strncpy buffer size 2007-12-03 00:07:56 +00:00
Tim Angus
dfc97a1dfa * Make some botlib memory allocations /potentially/ safer 2007-12-02 13:30:12 +00:00
Julian Priestley
4f0565a4a7 * Add con_log.c and con_passive.c from r1222 to quake3.vcproj.
* Rename 'write' and 'read' variables in con_log.c, as these are already
defined in io.h in the MSVC environment.
2007-12-02 00:48:59 +00:00
Tim Angus
5bd3ef4190 * Fix poppy captured audio when recording videos 2007-12-01 19:39:03 +00:00
Tim Angus
3cde9bf0dc * Add con_log.c to log all console output
* Add con_passive.c to cut down on #ifdef DEDICATED in sys_main.c
* Add Sys_ErrorDialog to report ERR_FATALs to the user
  + On Windows use a MessageBox and offer to copy the console log to the
    clipboard
  + On everything else print to the terminal and save the console log as
    crashlog.txt
2007-11-30 18:32:52 +00:00
Tim Angus
b61ccb0b9b * Initialise botlib libvarlist to NULL as having it uninitialised may
potentially cause problems
2007-11-26 21:11:02 +00:00
Tim Angus
eaeed742c5 * Move MINSDL_ values to sys_local.h from Makefile/VC project
* Merge *BSD platform definitions in q_platform.h
* IRIX support (Patrick Baggett <baggett.patrick@figglesoftware.com>)
2007-11-26 20:18:53 +00:00
Tim Angus
6bd4bb16a0 * Move SDL library version check to sys_main.c as it's proving difficult to
make the Makefile check sufficiently portable
* Remove unnecessary GL PFN... casts from SDL_GL_GetProcAddress calls
* Replace OS X uname workaround with Solaris workaround, as I believe OS X
  uname now behaves the same as GNU name
2007-11-25 23:41:01 +00:00
Tim Angus
3f3e1a51a1 * (bug 3420) Don't respect sv_killserver unless a server is actually running
* (bug 3431) USERINFO cvars created in cg_main not getting sent (arQon)
2007-11-23 00:33:13 +00:00
Tim Angus
f2f8e73d58 * s/O_NDELAY/O_NONBLOCK/ 2007-11-19 19:59:37 +00:00
Tim Angus
b62950ca6e * Fix bug where an extraneous render command can cause a crash when
recording video
* Make S_CodecUtilClose NULL the snd_stream_t pointer
* Fix indentation in runtime SDL check code
2007-11-18 01:06:46 +00:00
Tim Angus
3f3c827bcd * Remove all the crappy old bat/sh QVM building scripts 2007-11-16 22:41:01 +00:00
Ludwig Nussel
f0215128af make master server used by client configurable (cl_master)
patch by Erik Kloppenburg
2007-11-14 19:04:12 +00:00
Tim Angus
25ac1317b1 * Remove work around for a 2 year old OpenAL bug that now actually causes a
crash on snd_restart
2007-11-11 22:15:25 +00:00
Tim Angus
e8d3c48535 * Whitespace consistency in tr_init.c 2007-11-07 20:16:37 +00:00
Ludwig Nussel
6f85c247e3 Don't define ELF, use __ELF__ instead 2007-11-06 16:41:57 +00:00
Tim Angus
527a5ddb1d * Fix to win_resource.rc for MSVC build 2007-11-03 21:53:50 +00:00
Tim Angus
31c24bd0d2 * (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>)
* (bug 3363) Download percentage overflow (Martin Doucha <next_ghost@quick.cz>)
* (bug 3390) MSVC project (Julian Priestley <juzley@gmail.com>)
* For OS X and MinGW ports, don't -I code/SDL when USE_LOCAL_HEADERS is 0
2007-11-02 23:36:23 +00:00
Tim Angus
881988636a * Don't truncate the cvar value when the user specifically asks for it 2007-11-01 16:07:13 +00:00
Ludwig Nussel
fe349e80ba include endian.h (#3399) 2007-10-26 15:01:52 +00:00
Tim Angus
b5074539ae * Sigh 2007-10-22 19:08:33 +00:00
Tim Angus
4eb569b706 * Rename g_logfile back to g_log, but keep the cvar variable as is (see r128) 2007-10-22 19:06:38 +00:00
Tim Angus
2bebaff8b4 * Add required header on *BSD 2007-10-13 13:26:41 +00:00
Tim Angus
6dffd08e74 * Fix to qvm compilation on big endian architectures 2007-10-13 12:03:47 +00:00
Tim Angus
8f43965e13 * OpenBSD support (Toni Spets <toni.spets@gmail.com>) 2007-10-12 23:27:47 +00:00
Tim Angus
aa5e852056 * Unconditionally place a '\' at the start of the command buffer when
autocompleting -- you're still all WRONG :p
* Fix bugette where the completee didn't get its case copied from
  the completed token
* Add functionality to autocomplete key names
* Don't build client command completion on the dedicated server
2007-10-12 22:34:45 +00:00
Tim Angus
e955f142b8 * Grr. Argh. Whitespace. etc. 2007-10-09 20:50:18 +00:00
Tim Angus
a9eaefecab * Replace Sys_AnsiColorify with Sys_AnsiColorPrint, a more simple means of
achieving the same feature
* Handle non-numeric color codes in Sys_AnsiColorPrint
2007-10-09 20:49:19 +00:00
Ludwig Nussel
95f67c2c3e fix incorrect use of strncpy
this function should really be removed or rewritten from scratch
2007-10-08 10:26:28 +00:00
Tim Angus
da8f451263 * Bug fix to collision optimisation (arQon) 2007-10-06 21:59:17 +00:00
Tim Angus
5692e30fa9 * Fix bug that prevented key up events getting to cgame/ui when not in game
* Use Key_[GS]etCatcher everywhere to set keycatcher
* Clear all key states when the catcher changes
2007-10-02 14:14:45 +00:00