Thilo Schulz
ff2f143882
Make s_volume cvar affect volume of S_Base_RawSamples, thanks to Jay Weisskopf for reporting. https://bugzilla.icculus.org/show_bug.cgi?id=3474
2009-10-08 22:26:10 +00:00
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