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
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
1af6eb9592
* More robust x86 vm entrypoint/callback assembly (Tron)
2008-08-17 23:22:06 +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
9a5d971705
* Fix memory leak in win32 VM code (arQon/dmitry)
2008-08-06 16:09:29 +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
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
3c9dc98d04
* (bug 3712) MSVC build fix s/strtof/strtod/ (Pat Raynor <raynorpat@gmail.com>)
2008-07-09 21:22:29 +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
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
49413057ee
* Change dedicated cvar to CVAR_LATCH on the dedicated server
2008-07-06 00:31:52 +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
Zachary Slater
4713fa4f79
Thanks to Lakitu7 for pointing this out.
2008-06-17 04:44:36 +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
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
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
12326a9eac
Initial patch for in-game VoIP support!
2008-06-01 07:51:23 +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
d7bdf4b344
define the product version in the Makefile
2008-05-06 20:24:32 +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
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
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
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
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
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
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
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
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
Ludwig Nussel
85ba66e7e8
move all image decoders into separate files
2008-02-14 11:13:18 +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
87fa68fd41
Add gamedirectory in .app to searchpath on MacOSX
2007-12-14 21:53:57 +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
Tim Angus
b906e94a6d
* (bug 3470) Correct type for function pointer
...
(baggett.patrick@figglesoftware.com )
2007-12-11 21:11:01 +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
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
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
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
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
2bebaff8b4
* Add required header on *BSD
2007-10-13 13:26:41 +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
da8f451263
* Bug fix to collision optimisation (arQon)
2007-10-06 21:59:17 +00:00
Tim Angus
26641226a4
* Remove some C99isms (f0rqu3)
...
* Provide Q_snprintf wrapper for snprintf (f0rqu3)
2007-10-01 07:56:32 +00:00
Tim Angus
7562caa310
* Move the conditional compilation of bg_lib.c from the Makefile to cpp in
...
order to force dependency generation on bg_lib.*
* Make testing USE_ defines more consistent
2007-09-22 20:32:11 +00:00
Tim Angus
60260f1c60
* (bug 3318) Restrict color escape characters to alphanumerics
2007-09-21 12:33:50 +00:00
Tony J. White =
e46fe24426
* rewrite of the win32 dedicated console:
...
1) NET_Sleep() no longer watches for input, Sys_Sleep() added for waiting
on input.
2) Added "CtrlHandler" for trapping Ctrl-C and other quit methods not
handled by signals on windows
3) Added history support
4) Added tab completion
5) Removed automatic cursor/scroll adjustment (too problematic)
6) Enable mousewheel scrolling
7) Stop using the InputBuffer for editing
This seems to work pretty well now, but I jumped the gun on a previous
commit message by saying you can scroll now without locking up your server.
That was only true up until the point that a server tried to print to
the console, at that point it will hang until you release the scroll bar :(
It may be possible to get around this by using a seperate thread for
console output, but that's a whole new can of worms.
2007-09-15 02:22:58 +00:00
Tim Angus
e56a151a97
* Compile time and runtime checks for SDL >= 1.2.7
...
* Modified versioning to play nice with the reverted Makefile change
2007-09-06 18:21:10 +00:00
Tim Angus
672cfbf16f
* Merge unified-sdl to trunk
...
* Bump Q3_VERSION to 1.35
2007-09-05 18:17:46 +00:00
Thilo Schulz
39abffeb3b
clean up pak file checks + fixing stray error message when an unofficial pak9.pk3 exists
2007-08-30 23:27:16 +00:00
Tim Angus
0b3a077e15
* Merge win_net.c and unix_net.c
...
+ Move win32/win_net.c to qcommon/net_ip.c and make it portable
+ Remove unix_net.c, but incorporate its revision history into win_net.c
+ Remove all IPX support -- this remains compatible with existing mods
+ This change also inadvertently gets us SOCKS support on non-Windows
platforms
2007-08-28 16:42:13 +00:00
Tim Angus
034e6e8f20
* Rewrite of R_LoadImage to make it more generic and data driven
2007-08-26 21:27:46 +00:00
Tim Angus
3d107fe624
* ...And the other deliberate mistake
2007-08-24 00:23:37 +00:00
Tim Angus
4997c4764a
* (bug 3112) Removal of QVM name obfuscation (TsT <tst2006@gmail.com>)
...
* Add developer warning when texture loading falls back on jpg from tga
* Remove uppercase extension hack from texture loading since the Q3 pk3
file system is case insensitive anyway and you would likely want to
know about the failures when loading images from the native FS
2007-08-24 00:04:08 +00:00
Tim Angus
1144f567e8
* PNG support from Joerg Dietrich <dietrich_joerg@t-online.de>
...
* Cleanup of tabulation in R_LoadImage
2007-08-23 17:23:15 +00:00
Ludwig Nussel
3992f1a59c
fix gcc 4.2 warnings about cast from pointer to integer ( #3317 )
2007-08-19 12:05:17 +00:00
Ludwig Nussel
fbe65853e4
new x86_64 vm that doesn't use gas
2007-08-16 11:02:21 +00:00
Tim Angus
64239037e0
* Early out AABB collision optimisation from Robert Beckebans (Xreal)
2007-07-27 21:52:31 +00:00
Tim Angus
0c99c0c1d2
* Fix a few -pedantic warnings
2007-07-25 21:28:15 +00:00
Tony J. White =
e8bbb1f2d1
* (bug 3268) Replace Mac OS X Carbon API calls with native ones (thanks
...
to i3enedek).
* remove some spammy Mac OS X printf's regarding local network detection
* replaced a #warning for non-OS X PPC systems with a call to
msync(..., MS_INVALIDATE). This needs testing.
2007-07-20 14:34:44 +00:00
Tim Angus
f988185439
* Replace horrendously long list of build rules with set of inference rules
...
* Remove unused DO_DEBUG_CC and DO_SHLIB_DEBUG_CC commands
* Fix various bits of trailing whitespace
* Remove vm_ppc.c and move vm_ppc_new.c into its place
* Rename winquake.rc to win_resource.rc
2007-07-14 23:57:04 +00:00
Ludwig Nussel
20e71c7dff
- fix OP_MODU and OP_MODI
...
- fix minor typos
2007-07-03 13:01:36 +00:00
Ludwig Nussel
8cb20658aa
another attempt to fix the alignment, this time hopfully for real
2007-07-03 12:53:00 +00:00
Ludwig Nussel
beaf352463
fix stack alignment
2007-07-03 08:16:21 +00:00
Ludwig Nussel
da2f4341c2
use native stack for vm stack as well, frees one register
2007-06-25 10:01:40 +00:00
Ludwig Nussel
6a5908d444
check program counter on OP_CALL and OP_LEAVE
2007-06-25 09:45:18 +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 =
8801b06a1e
* fix q3lcc warning message due to an extra ; that slipped in at rev 1023
2007-02-15 15:50:14 +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
Tony J. White =
cf2875e771
* (bug 2977) use MSVC compatiable pre-processors and also include <io.h> for
...
int types
2007-01-19 19:31:19 +00:00
Zachary Slater
37bda478f9
Fix window titles and crap, thanks woekele for pointing this out.
2007-01-14 18:05:15 +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
8ca8d84591
fix buffer overflow and format string bug in auth server response
...
processing
2006-12-31 15:36:42 +00:00
Ludwig Nussel
f6e0c6fd19
- also check for point release pak files
...
- make missing pak0 non fatal if fs_game != baseq3. This way total
conversions like westernq3 work without Q3 data.
2006-12-30 16:16:25 +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
c3a713832c
don't use intermediate array for sorting pakfiles. avoids the
...
MAX_PAKFILES limitation
2006-12-30 12:19:53 +00:00
Ludwig Nussel
1bc190caf1
include offending string in error message for varables that contain
...
blacklisted characters
2006-12-30 12:13:25 +00:00
Coyote
17c443a3fd
Changes to build defines for Solaris on i86pc. Minor fix to q_platform.h for Solaris.
2006-11-30 08:01:43 +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 =
fbf09d64c5
* Increased the number of registers used for the opStack in the PPC vm from
...
12 to 16. This is cannot be increased any further without major changes
(there only 32 General Purporse Registers). Anyway, his change allows the
cgame.qvm from the excessiveplus mod to work with ioquake3 on a PPC.
2006-09-24 02:33:08 +00:00
Tony J. White =
2af23e813d
* add cURL support for HTTP/FTP downloading (bug 2661)
2006-09-11 16:41:55 +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
39d050b748
More fixes for the FS_Shutdown change. Declare qconsole.log as closed before FS_Shutdown
...
closes all files.
2006-08-28 01:10:46 +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
591e11e740
There are actually files that can have a length of 0 so this in-use-check was just wrong.
2006-08-27 15:34:44 +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
Tony J. White =
90b35ec5c8
* Print the SVN version string in Com_Init()
2006-08-25 16:25:51 +00:00
Tim Angus
ba36526a5e
* Revert version to 1.33 again
2006-08-22 18:47:59 +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
Thilo Schulz
5e88acf217
Fix 100% CPU usage on idle dedicated servers.
2006-08-18 01:50:51 +00:00
Tony J. White =
77de9e65a8
bug 2723
...
* replaced my cheap hack to search current working dir on OS X with a more
complex hack that detects the .app bundle directory structure. This is so
the game data dirs do not need to be inside of the .app bundle btw.
2006-08-16 05:22:09 +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
Tony J. White =
583745769d
bug 2810 once a latched cvar was changed it could not be reset to its original value
2006-08-01 16:51:13 +00:00
Ludwig Nussel
6327f1ce47
looks like the interpreter was broken all the time. Didn't anyone
...
notice?
2006-07-06 09:25:17 +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
7d657ba62f
* sv_minRate (from R1CH)
...
* [cl|sv]_packetdelay (from tjw)
2006-06-17 19:19:34 +00:00
Thilo Schulz
394c09fa26
Remove chars with ascii value > 127 in MSG_ReadBigString too to make it correspond to the behaviour of WriteBigString.
2006-06-16 21:44:44 +00:00
Thilo Schulz
e02617ee89
Little fix for the sanity check fix from previous rev...
2006-06-16 20:47:29 +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
c9c15562ea
Fix client "freezes" if a user with ASCII characters > 127 enters a server. Reported by tjw
2006-06-11 14:56:58 +00:00
Thilo Schulz
84296bfc2c
Fixed a crash in md4 routines when using them on files with zero length, reported by Lukasz Saduniowski.
2006-06-01 00:58:19 +00:00
Ryan C. Gordon
997dffc649
Correction in PowerPC JIT code. Fixes crash in server browser, etc, on Mac OS X
...
and probably PowerPC Linux, too...fixes Bugzilla #2519 .
2006-05-29 03:02:54 +00:00
Thilo Schulz
a08a539c10
Fix JIT compiler code execution on NX-protected win32 OS
2006-05-15 15:57:02 +00:00
Thilo Schulz
60293f49ee
Fix bug that permits download of arbitrary files from a download enabled server by checking requested file name against the list of loaded pk3 files. See CVE-2006-2082
2006-05-08 19:53:41 +00:00
Thilo Schulz
d21411452e
Add string length checking to function COM_StripExtension. This fixes the R_RemapShader buffer overflow exploit that can be found here:
...
http://milw0rm.com/exploits/1750
2006-05-06 01:56:24 +00:00
Thilo Schulz
235e2c215f
- Introduced various new typedefs for windows platform (int32_t, int64_t, etc...)
...
- Applied md5 64-bit safety patch by Tony White.
2006-04-27 13:39:41 +00:00
Thilo Schulz
c116695ea7
- "baseq3" literal replacement patch (by Erik Auerswald) applied
...
- Commented setting of the cl_guid cvar because md5.c is not 64-bit safe.
2006-04-26 13:36:58 +00:00
Thilo Schulz
70fca10af2
Replaced various "baseq3" strings with the centrally defined BASEGAME macro.
2006-04-26 11:27:12 +00:00
Thilo Schulz
31fdab187c
Fix didn't work yet because it didn't use the buffer where the filename extension chop-off is done. D'oh!
2006-04-23 20:04:42 +00:00
Tim Angus
56294e2da8
* Oops
2006-04-23 18:04:51 +00:00
Tim Angus
8aecee5158
* cl_guid for semi-reliable server authentication (from tjw)
2006-04-22 22:21:56 +00:00
Thilo Schulz
40d5eee8ef
Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.
2006-04-22 18:24:50 +00:00
Thilo Schulz
e7daf33d8e
- botlib logfile now gets stored in the fs_game directory in fs_homepath. (patch from Erik Auerswald)
...
- Added proper error handling when fopening qconsole.log
- Fixed bug where r_chat.c gets loaded in botlib even when bot_nochat is 1.
2006-04-21 17:04:21 +00:00
Zachary Slater
9ee853343e
Was that intentional? (version change)
2006-04-19 22:51:20 +00:00
Tim Angus
f63472025f
* Change window title
2006-03-24 17:28:27 +00:00
Ludwig Nussel
be6ca402e8
accept pak0.pk3 in demoq3/ as well
2006-03-08 11:02:20 +00:00
Ludwig Nussel
39f2e449b6
use mmap to allocate memory for generated code to be able to set PROT_EXEC
2006-03-04 11:14:44 +00:00
Tim Angus
4ec0c94828
* Displace the '\n's passed to SV_Shutdown
2006-02-28 23:01:23 +00:00
Ludwig Nussel
a99e721711
try to fix msvc build
2006-02-26 20:01:45 +00:00
Aaron Gyes
966ffaa0f2
o rly
2006-02-20 22:08:23 +00:00
Aaron Gyes
cc9ead2fd7
Bump version number.
2006-02-20 22:04:16 +00:00
Ludwig Nussel
4c242115dc
- change long to intptr_t for 64bit windows compatability
...
- change vmMain arguments back to int. 64bit types are apparently not
needed there. Only the syscall function needs them.
2006-02-18 19:07:23 +00:00
Tim Angus
ab29f29495
* Fix to a memory leak in CM_ValidateFacet
2006-01-27 18:14:01 +00:00
Tim Angus
8a6be4aef4
* Persistent console history
2006-01-24 04:35:19 +00:00
Tim Angus
4ab96373e6
* Only check the checksum on baseq3 pak0.pk3
2006-01-22 17:05:43 +00:00
Tim Angus
c3f7915a8b
* Overhaul of console autocompletion
...
- No longer does weird stuff like move the cursor inappropriately
- Autocomplete works with compound commands
- Special autocomplete on some commands e.g. \map, \demo
- Removed various hacks used to counter the original autocomplete code
2006-01-22 01:58:50 +00:00
Tim Angus
7913ec3c4b
* Fix a bug with command/cvar autocompletion
2006-01-21 01:35:42 +00:00
Tim Angus
58c8175024
* Added Q_isnan for NaN tests with -ffast-math
...
* Fixed UT/OpenAL work around
2006-01-19 20:28:12 +00:00
Tim Angus
6a396f761f
* Yet another MD4 implementation
...
* Removed Com_BlockChecksumkey and replaced its functionality in the calling
function
2006-01-18 15:53:50 +00:00
Tim Angus
0856744622
* GPL MD4 implementation
...
* Removed obsolete compilation instructions from the id readme
* Removed MD4 license from the id readme
2006-01-18 01:20:42 +00:00
Tim Angus
b4898caac4
* Fix to a stupid bug I introduced whilst trying to be clever
2006-01-15 15:30:52 +00:00
Tim Angus
e74947be2c
* x86 OS X support
2006-01-15 15:22:13 +00:00
Tim Angus
216bda8cd7
* Patch from https://bugzilla.icculus.org/show_bug.cgi?id=2540
2006-01-13 20:54:07 +00:00
Ludwig Nussel
13039ef44f
make memory for generated opcodes executable so the program works with
...
enabled NX feature.
2006-01-06 19:11:05 +00:00
Tim Angus
e95f1f2106
* Fix to the gcc4/-O0 x86 JIT compiler bug
2006-01-06 00:04:05 +00:00
Tim Angus
560b02488c
* Up the defaults for zone and hunk memory since some mods (UT) have large
...
memory requirements that will have increased versus 1.32b due to some of the
alignment fixes
2006-01-05 16:49:59 +00:00
Tim Angus
1171a63aea
* Remove FS_SetRestrictions
...
* Add FS_CheckPak0 for better error messages where dumb users are involved
2006-01-05 02:06:25 +00:00
Tim Angus
6e24cfe7d3
* Fix the MinGW and (hopefully) OS X builds
...
* Remove custom memcpy/memset code
2006-01-04 03:40:49 +00:00
Tim Angus
a21eb2bbcb
* AVI video output
...
- Uses motion jpeg codec by default
- Use cl_avidemo to set a framerate
- \video [filename] to start capture
- \stopvideo to stop capture
- Audio capture is a bit ropey
2006-01-04 03:12:12 +00:00
Ludwig Nussel
92ad3e99dc
fix typo in comment
2005-12-30 17:52:56 +00:00
Tim Angus
db5faeaeaa
* NetBSD support patch from optical (alex@rigbo.se)
2005-12-27 19:46:01 +00:00
Tim Angus
1704eecc52
* Replaced ALIGN macro with PAD
...
* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
2005-12-05 17:32:54 +00:00
Ryan C. Gordon
cfdd586ef8
Look for correct filename extension when loading native DLLs.
2005-12-05 01:11:41 +00:00
Ryan C. Gordon
ff9c89f8fe
Better altivec cvar handling. Should fix crashes at startup, or curious
...
people that toggle it on at runtime on a G3.
2005-12-04 21:40:25 +00:00
Tim Angus
796ba11301
* Ditch Mac OS 9 support
2005-12-01 21:36:16 +00:00
Ryan C. Gordon
4784374221
Make sure Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN are defined correctly for
...
PowerPC/x86 Mac OS X. Fixes Bugzilla #2510 .
2005-11-29 03:31:31 +00:00
Tim Angus
382c6adb54
* Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
...
* Remove -gfull from linux section in Makefile -- it's darwin only
* Cast away some warnings that surfaced from using "new" AL headers
* Various whitespace and consistency fixes
2005-11-26 15:01:28 +00:00
Ryan C. Gordon
721b9a7d01
Mac OS X work...lots of little changes that touch a lot of random places.
...
Still work to be done, but this at least matches the PowerPC Linux status
now.
MacOS-specific directory (and XCode project) is gone...this now uses SDL,
OpenAL, and the Unix Makefiles.
--ryan.
2005-11-26 07:46:21 +00:00
Tim Angus
fee4381e18
* Remove the debug text that nobody seemed to notice
2005-11-19 02:14:34 +00:00
Tim Angus
82893aebc9
* Bleh.. whitespace
2005-11-16 20:25:36 +00:00
Tim Angus
387d8041ce
* Partial implementation of FS_Seek for files in pk3s
...
* A couple of RIFF decoder tweaks/fixes
2005-11-16 20:23:37 +00:00
Tim Angus
736d34c989
* Small "bug" fix to MSG_WriteBits
2005-11-15 23:49:14 +00:00
Tim Angus
e8a953fea6
* Quiet some warnings on OS X
2005-11-13 23:05:00 +00:00
Ludwig Nussel
79ceef93cc
store temporary files in /tmp to save space in ~
2005-11-13 18:33:28 +00:00
Ludwig Nussel
c95d0c29e4
use common macro for alignment
2005-11-13 17:51:21 +00:00
Ludwig Nussel
b2f39d7ddd
use system memcpy and memset
2005-11-06 18:22:49 +00:00
Ludwig Nussel
590988222f
- crash solved
2005-11-06 16:32:42 +00:00
Ludwig Nussel
48ee88ad77
- move code for standalone compilation out of vm_x86_64.c
...
- reset vm->compiled if something goes wrong in VM_Compile
2005-11-06 13:50:28 +00:00
Ludwig Nussel
8a18ecb961
- fall back to interpreter if VM_Compile resets vm->compiled
2005-11-06 13:46:17 +00:00
Ludwig Nussel
87b12105bc
- set umask to 0077 before writing the cdkey, the rest of the world
...
doesn't need to read it.
2005-11-06 13:45:20 +00:00
Tim Angus
4eaebe4a31
* Tidy-up of q_platform.h
...
* Introduced Q3_BIG_ENDIAN and Q3_LITTLE_ENDIAN #defines
* Changed some stricmp to Q_stricmp so that #define stricmp strcasecmp could be
removed
2005-11-06 00:29:59 +00:00
Ludwig Nussel
dfe20a177c
- put ALIGN macro into q_shared.h
...
- yet another alignment fix for botlib
2005-11-05 19:06:10 +00:00
Tim Angus
81c1b3128b
* Enable use of asm on Solaris-x86
2005-11-05 18:41:37 +00:00
Tim Angus
a31e38986c
* Patch from AJ <anthonyj@planetquake.com> which replaces a bunch of hard coded
...
constants with #define constants
2005-11-05 15:54:56 +00:00
Tim Angus
d41de844d3
* Oops, missed a bit
2005-11-05 00:42:28 +00:00
Tim Angus
a87185a96f
* Centralise architecture defines in q_platform.h
2005-11-05 00:29:40 +00:00
Tim Angus
e4b7a04d5c
* Replaced a bunch of inline and __inline with ID_INLINE
...
* Replaced a bunch of __i386__ with id386
* General tidy up of asm preprocessor decisions
* Removed C_ONLY from the dedicated server build
2005-11-04 22:32:00 +00:00