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
Tim Angus
26641226a4
* Remove some C99isms (f0rqu3)
...
* Provide Q_snprintf wrapper for snprintf (f0rqu3)
2007-10-01 07:56:32 +00:00
Tim Angus
eb217f7364
* Add missing )
2007-09-24 10:01:10 +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
Tim Angus
da29118ae0
* Don't apply colour escape chars on input fields
2007-09-21 10:35:24 +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
2052b94adc
* Remove redundant win32 code in LCC which drew -I flags from the "include"
...
environment variable
2007-09-15 00:02:50 +00:00
Tim Angus
c7c2ee1b84
* Improve Makefile startup time
...
+ Merge q3asm and q3lcc Makefiles into the core Makefile
+ Don't find .d files, create a list from .o
+ .asm files now depend on q3lcc
+ .qvm files now depend on q3asm
* IMPORTANT NOTE: do a "make distclean" if you have problems
2007-09-12 23:37:33 +00:00
Tim Angus
1d54a9ebe5
* Revert 1176 -- MinGW's headers are too old *sigh*
...
* Revert to using literal function pointers for GL extensions rather than PFN*
typedefs as some platforms' headers are broken enough that they prevent
SDL_opengl.h from fixing things up if the PFN* typedefs are missing
2007-09-12 18:02:38 +00:00
Tim Angus
4f4f0c0dab
* Remove use of GL_ARB_multitexture since this has been part of the
...
core API for many years now
2007-09-10 22:28:58 +00:00
Tony J. White =
687b744166
* win32 dedicated console cleanup: drop silly predifined height and width,
...
scroll the command buffer to the right when typing long lines, restore
the original color theme on CON_Shutdown().
2007-09-09 07:20:12 +00:00
Tony J. White =
e75c19b45d
* Adds preliminary support for win32 dedicated server console.
...
Functionality is still quite limited (no tab completion, history, etc.),
but at least with this console you can scroll without locking up
your server.
2007-09-07 21:27:01 +00:00
Tim Angus
54ba74964a
* Build dedicated server binary on Windows
2007-09-06 20:31:30 +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
0951b69be5
* Fix for SMP hack on OS X
2007-09-06 02:16:07 +00:00
Tim Angus
c903576c59
* I R KNWOING HOW COMPUTARS WURK!!!!!!! lOL
2007-09-05 21:46:15 +00:00
Tim Angus
fb76f57887
* Obsolete files
2007-09-05 19:46:23 +00:00