Commit Graph

311 Commits

Author SHA1 Message Date
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 fce1a89fad * Fix a stupid typo 2005-11-05 15:07:05 +00:00
Tim Angus fe09cd3217 * Patch from vapier that aids packaging
* Truth value of USE_SDL changed to 1 from true, for consistency
2005-11-05 01:06:09 +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
Zachary Slater 857a5e264e Updated msvc project files from > Michael Zoech! 2005-11-04 02:35:30 +00:00
Ludwig Nussel b0dfb2579b found the bug. alignment reenabled. 2005-11-03 22:32:39 +00:00
Ludwig Nussel 2984b5bea2 disable the alignment "fix" until its clear why it causes crashes 2005-11-03 22:26:59 +00:00
Tim Angus 2e3a08e4bd * Juggled CFLAGS a bit so that -fno-strict-aliasing is always on 2005-11-03 18:34:03 +00:00
Ludwig Nussel 1c94cfbcbd more alignment fixes 2005-11-02 21:46:05 +00:00
Ludwig Nussel e3e3d8b9aa actually when calling from the vm to the engine there are more than 10
arguments
2005-11-02 21:45:48 +00:00
Ludwig Nussel 5f79f9958b pass only 10 arguments. vm_* doesn't use more anyways. 2005-11-02 20:58:27 +00:00
Ludwig Nussel 3ce5d5dccd pass only 10 arguments. vm_* doesn't use more anyways. 2005-11-02 20:56:13 +00:00
Ludwig Nussel d29dfeeb75 round string length for pointer alignment 2005-11-02 20:36:30 +00:00
Ludwig Nussel e121614406 allocate memory pointer aligned 2005-11-02 20:34:25 +00:00
Tim Angus 3c05bf1870 * Fies to the xcode project to update it with the recent changes 2005-11-02 18:32:03 +00:00
Tim Angus 2cc87dfc9d * Removed the last of the binary target stuff from lcc (hopefully) 2005-11-02 16:05:14 +00:00
Tim Angus 2d2df7682d * Removed the lcc self tests -- there are none that test bytecode 2005-11-02 15:28:16 +00:00
Tim Angus 8b63fdab58 * Fix for lcc on windows so that it can execute files with spaces in them 2005-11-02 02:08:29 +00:00
Tim Angus 87cd6f8a93 * Split off q_platform.h from q_shared.h
* Removed lcc PATH hack and replaced with something slightly less hacky
* Removed all platform specific hostfiles from lcc and replaced with bytecode.c
  (from ankon)
* Turned lcc option "-S" on permanently
* Improved q3cpp so that it recursively adds include dirs to its list
2005-11-01 22:09:15 +00:00
Ludwig Nussel 48683c91a8 use memcpy to fix use of misaligned data 2005-11-01 19:59:14 +00:00
Ludwig Nussel f4dbf0db95 5+2==7 :-) 2005-11-01 19:47:47 +00:00
Ludwig Nussel 39f5333862 use memcpy to fix use of misaligned data 2005-11-01 19:44:36 +00:00
Tim Angus acf1f46a2b * More Solaris work 2005-11-01 16:05:06 +00:00
Tim Angus 0a3e96af77 * Further work on the Solaris port from Vincent S. Cojot 2005-10-31 16:46:05 +00:00
Tim Angus 3647cca9f7 * Applied https://bugzilla.icculus.org/show_bug.cgi?id=2464
* Removed rule to build C++ (for splines) from the Makefile
2005-10-30 14:36:49 +00:00
Tim Angus c41483634c * General decrufting:
* Removed Q3_STATIC and associated defines
* Removed MAC_STATIC
* Replaced __LCC__ with Q3_VM
* Removed bspc and splines directories
2005-10-29 23:13:09 +00:00
Tim Angus 63fdc74843 * Fix to the VM interpreter on the linux ppc dedicated server 2005-10-29 22:06:43 +00:00
Tim Angus c5bdb034f2 * Beginnings of Solaris support from Vincent S. Cojot
* Note this patch also splits USE_SDL into USE_SDL_VIDEO and USE_SDL_AUDIO
2005-10-29 22:05:20 +00:00
Ludwig Nussel 58512aff09 use memcpy for OP_BLOCK_COPY 2005-10-29 17:42:12 +00:00
Ludwig Nussel b6228f1408 add HAVE_VM_COMPILED variable so one can override it in Makefile.local 2005-10-29 17:41:17 +00:00
Tim Angus 05e8ab9538 * Added STATUS
* Updated TODO
* Moved ChangeLog to root
* Updated ChangeLog
* s/Foobar/Quake III Arena Source Code/
* Biggest patch EVAR. I wonder how many mail boxes this will fill...
2005-10-29 01:53:09 +00:00
Tim Angus b72f59f524 * In hindsight this is probably wise too 2005-10-29 01:02:12 +00:00
Tim Angus ffdc69f138 * Deleted code/unix/vm_x86.c - wtf was that about anyway?
* Removed HAVE_VM_NATIVE
* Removed DLL_ONLY
* Replace HAVE_VM_COMPILED with NO_VM_COMPILED -- this means the JIT compiler
  should be enabled on the OS X and VC builds now
* Remove the remainder of the freetype building stuff
2005-10-29 00:23:10 +00:00
Tim Angus 090f4d7266 * Compiler warning fix from ankon 2005-10-28 22:10:39 +00:00
Tim Angus 4c63d1ed40 * Fix to https://bugzilla.icculus.org/show_bug.cgi?id=2454 2005-10-28 21:09:50 +00:00
Tim Angus b1b7f975f1 * Fix the x86 vm 2005-10-27 22:38:25 +00:00
Tim Angus 556b3307c5 * ...and the other common headers 2005-10-27 22:05:38 +00:00
Tim Angus bc9ee5644b * Ignore __attribute__ when not using gcc 2005-10-27 21:49:36 +00:00
Ludwig Nussel 0bf8e3a8b0 add x86_64 vm. experimental, not enabled by default. you need as for it
to work.
2005-10-27 21:13:47 +00:00
Tim Angus 9af615f27c * Add notional support for various architectures from vapier. Whether or not
these architectures work in practice is another matter :).
2005-10-26 23:15:44 +00:00
Tim Angus f455a27edd * Use platform headers to source various libc prototypes instead of unsafe
static ones (from vapier)
2005-10-26 23:08:56 +00:00
Tim Angus 0167152647 * Small changes to distclean target from vapier 2005-10-26 22:59:30 +00:00
Tim Angus c02a7fce3c * Split lcc $AR into $AR and $ARFLAGS (from vapier) 2005-10-26 22:52:17 +00:00
Tim Angus 7b84b0295f * Fixed the OS X build as broken by revision 181 2005-10-26 20:52:53 +00:00
Tim Angus 3a2ad50406 * Moved various source files from their mod sdk locations to places more
appropriate for open source Q3
* This patch looks bigger than it really is, however it will probably break the
  VC and OS X builds (easy to fix though)
2005-10-26 19:45:21 +00:00
Tim Angus 3ff42330e5 * Fixed some warnings on the OS X build 2005-10-26 19:32:15 +00:00
Tim Angus 9f55ae2dce * Fixed a bug with QVM loading on big endian architectures 2005-10-26 17:09:50 +00:00
Tim Angus d5af2e3d45 * Removed some Conscript 2005-10-25 13:34:47 +00:00
Tim Angus 6b5cf6e248 * Fixed unused variable warning 2005-10-23 17:23:23 +00:00
Tim Angus 69b81f2bd9 * Fix to https://bugzilla.icculus.org/show_bug.cgi?id=2401 2005-10-23 17:18:23 +00:00
Ludwig Nussel e27a35a207 remove french keyboard hack. we cannot know what this does on other
layouts
2005-10-23 15:27:59 +00:00
Ludwig Nussel 80cf67e2ac map extra mouse buttons to K_AUX* 2005-10-23 15:25:23 +00:00
Tim Angus f01ed7b3da * Tab completed commands no longer treated like cvars 2005-10-21 19:52:52 +00:00
Tim Angus d6b2a1e527 * Deleted some exes that were in the repository 2005-10-21 18:07:25 +00:00
Tim Angus f306b2895f * Tiny patch to print values of cvars when tab completing ala ET 2005-10-21 00:09:34 +00:00
Tim Angus 64f167f183 * Fix to potential out of range index bug from misanthropia 2005-10-20 16:19:43 +00:00
Tim Angus 769372e2f9 * Fix to buffer overflow in lightmap loading code from misanthropia 2005-10-20 16:14:05 +00:00
Tim Angus 653c5621ac * Fixed the fix for the shader overrun. If this isn't a case for unified diffs,
I don't know what is :).
2005-10-20 01:23:17 +00:00
Tim Angus b9c9f86cd1 * Cap the maximum snaps a client can request at the server framerate rather
than a hard-coded 30 (from misantropia). I'm slightly nervous about this
  since it changes the behaviour versus 1.32b in that a client requesting e.g.
  25 snaps will actually get 20 (default sv_fps) with this patch applied. I'm
  not sure why anyone would want this though -- it may even destablise their
  inter/extrapolation. I'll leave the bug (2422) open for a while and if no one
  complains it can be closed.
2005-10-19 22:25:32 +00:00
Tim Angus 7d1b5b4acb * Fix to buffer overrun in shader parser from misanthropia 2005-10-19 22:15:51 +00:00
Tim Angus 80919a1ce3 * Silly little patch to convert Q3 style color codes to ANSI escape codes. Note
this doesn't work too well with baseq3 since it logs color strings with no
  color termination.
2005-10-19 01:51:19 +00:00
Zachary Slater bcc229d5bb Minor edit, thanks ankon! 2005-10-18 02:46:20 +00:00
Tim Angus e652200405 * Added option to q3asm to instruct it to create qvms compatible with Q3 1.32b 2005-10-16 01:13:51 +00:00
Tim Angus 354196b3a9 * Added a little hack to support the console key on french keyboards 2005-10-14 23:00:39 +00:00
Tim Angus 20c5bc38cf * Removed hard coded mouse acceleration in the unix build(s)
* Added CVAR_ROM cl_platformSensitivity to normalise the scale
  of cl_sensitivity across platforms
2005-10-14 22:58:28 +00:00
Tim Angus 535545684f * Adjusted VM_LoadQVM interface 2005-10-14 17:09:03 +00:00
Tim Angus f7c82c1adc * Fixed some annoying code duplication 2005-10-13 23:08:45 +00:00
Tim Angus 35cb35ff61 * (Non-trivial) fix to the "opStack corrupted in compiled code" bug 2005-10-13 14:47:00 +00:00
Tim Angus 8295a83897 * Removed Q3ASM_TURBO defines from q3asm
* Removed q3asm qfiles.h and redirected it to qcommon qfiles.h
2005-10-13 01:55:31 +00:00
Six ecd73786d5 Fix build problems under OS X 2005-10-11 01:52:29 +00:00
Tim Angus 3857ce21c4 * Replaced drawSurfs qsort algorithm with a radix sort
+ Performance is comparable, although generally slightly
    worse, but...
  + Radix is a stable sort algorithm, so overlapping
    coplanar drawSurfs (i.e. with the same sort key) no
    longer flicker indeterminately
  + Also removes the dubious comment: "FIXME: this was 
    lifted and modified from the microsoft lib source..."
2005-10-10 00:37:54 +00:00
Ludwig Nussel b1ea2ed136 - get rid of vm_none
- if VM_PPC is set compiled vm support is enabled on ppc (default off atm)
2005-10-09 13:07:54 +00:00
Ludwig Nussel 44f5273e02 ugly: undefine memmove to avoid build failure with gcc fortify
extensions enabled
2005-10-09 13:06:33 +00:00
Ludwig Nussel f62601ac53 don't call VM_Compile if it's not supported so the VM_Compile symbol
isn't needed
2005-10-09 13:05:44 +00:00
Tim Angus f6cb6eee96 * q3lcc is no longer the default target in the Makefile
* Changed readme to suggest using the root Makefile instead of the one in
  code/unix
2005-10-08 14:36:15 +00:00
Six 8866ce3f8b Mac OS X needs Com_Memcpy and Com_Memset to be set to memcpy and memset. 2005-10-08 06:30:38 +00:00
Tim Angus 29db2dbbfd * Patch from Andreas Kohn to fix q3asm build on FreeBSD
* Removal of SYSTEM variable from the lcc makefile due to problems with FreeBSD
2005-10-07 01:03:49 +00:00
Tim Angus 3271b52bf5 * ATI skybox bug fix 2005-10-06 15:33:54 +00:00
Tim Angus 0b6beec202 * Usage of find on FreeBSD fix from Andreas Kohn 2005-10-06 15:16:12 +00:00
Tim Angus 707ee2fdbb * Append LCC directory to the PATH variable on all platforms 2005-10-05 21:46:03 +00:00
Tim Angus 151c9461c5 * Fixed a foul-up with the lcc Makefile 2005-10-05 21:07:47 +00:00
Tim Angus 260ca8d730 * A couple of small Makefile fixes 2005-10-05 18:13:34 +00:00
Tim Angus 490c84d907 * Applied q3asm-turbo patches from http://www.icculus.org/~phaethon/q3/q3asm-turbo/q3asm-turbo.html
* Added -m option to q3asm to write a map file (which is now disabled by default)
* q3asm now returns an error code on failure
2005-10-05 17:59:10 +00:00
Tim Angus 9d41e17e1f * Fixed some vm build warnings 2005-10-05 14:50:45 +00:00
Tim Angus 79ba2d974d * Fixes to the MinGW vm compiler
* General MinGW tweaks
2005-10-05 03:13:20 +00:00
Tim Angus 41cbd8c9fd * VM game modules now built from the main Makefile 2005-10-04 23:54:51 +00:00
Tim Angus 12b5f3bded * MinGW fixes to the tools Makefiles 2005-10-04 19:15:34 +00:00
Tim Angus e414f46c4d * Added install/uninstall rules to the lcc and q3asm Makefiles
* Moved the q3asm dir to asm so that is doesn't clash with the binary when
  installed
2005-10-04 18:34:21 +00:00
Tim Angus c3f30ff9a8 * Homogenised the game module build rules 2005-10-04 17:45:22 +00:00
Tim Angus ad118b9baf * Moved lcc and q3asm into code/tools 2005-10-04 15:18:22 +00:00
Tim Angus 6797dcc705 * Made the default SDL dma buffer larger 2005-09-30 22:30:22 +00:00
Tim Angus 52dcaa45fd * A better fix to the "doppler" bug 2005-09-29 22:53:31 +00:00
Tim Angus 24d3c6b2a2 * Fixed the bug where the "doppler" effect code could cause a temporary client lock up 2005-09-29 22:35:05 +00:00
Tim Angus de1840a23a * Most obscure bug EVAR. Seems a library that SDL depends on (specifically libgthread-2.0) defines a symbol g_log. qagamei386.so also defines such a symbol, but since it is dynamically loaded at runtime, no collision check is performed. When the code is relocated therefore, all instances of g_log in qagamei386.so end up refering to the g_log in the library... and bad things happen. s/g_log/g_logfile/g. 2005-09-29 14:00:03 +00:00
Zachary Slater 9e70b3e418 Spell checking, thanks to Han in irc.
Also, stop reading these logs and visit timedoctor.org!
2005-09-29 05:25:26 +00:00
Tim Angus a8e642fe63 * Added a - to the dependancies include line 2005-09-28 23:26:13 +00:00
Tim Angus 82f7989714 * Some game bug fixes from http://www.quake3world.com/ubb/Forum4/HTML/006208.html 2005-09-28 23:18:34 +00:00
Ludwig Nussel cc1fb807c2 fix (likely bogus) warning about uninitialized variables 2005-09-28 12:27:02 +00:00
Tim Angus 4f1b8a2dc8 * Assorted Makefile cleanups/cruft removal 2005-09-27 17:45:16 +00:00
Tim Angus 32a5a76d07 * The Makefile now sources Makefile.local, so you shouldn't need to change the Makefile itself any more
* The Makefile now inherits CFLAGS from the shell environment
* The Makefile now generates dependancies by default, it can be disabled by setting GENERATE_DEPENDANCIES=0 in Makefile.local
* Removed -Werror from the linux build since it's not GCC 4 clean yet. Again, it can be added back via Makefile.local
2005-09-27 16:35:25 +00:00
Tim Angus d0204def78 * Removed nonsensical "smells like demo data, continueing[sic] anyways" message 2005-09-26 22:26:13 +00:00
Ludwig Nussel d5fbff3f44 revert int->long change as it breaks on 64bit. Actually only
VM_CallInterpreted hurts as VM_CallCompiled is only used on 32bit. Use
same arg types for consistency nevertheless.
2005-09-26 22:23:46 +00:00
Tim Angus 534da92fc0 * Fix to MinGW build 2005-09-26 20:39:57 +00:00
Tim Angus d12b4d4d09 * Potential fix to ppc vm 2005-09-26 20:37:30 +00:00
Tim Angus 03a284b67e * Non SDL warning fix 2005-09-26 20:33:49 +00:00
Tim Angus 47d4c2bfe5 * 64 bit fix 2005-09-26 20:09:52 +00:00
Tim Angus 909e96e41b * Some FreeBSD cleanups
* Removed the remainder of the RPM stuff from the Makefile
2005-09-26 20:09:18 +00:00
Tim Angus cde9e9e93c * Fixed some long/int warnings, hopefully this doesn't disrupt the MSVC and/or 64bit builds 2005-09-26 16:13:14 +00:00
Tim Angus 429e59a53c * Reintroduced the copyfiles rule 2005-09-26 16:08:38 +00:00
Tim Angus 1ad7f9cff1 * Fix to broken win32 fix patch 2005-09-26 13:47:59 +00:00
Zachary Slater aff4d7d858 Hopefully this will fix win32 msvc.netsuperduper++220000 extra entropy edition
compilation, and I updated the readme a little apparently.
2005-09-26 02:36:52 +00:00
Tim Angus ae9fbe3288 * Don't link against X directly when building the SDL backend 2005-09-25 22:27:26 +00:00
Tim Angus 4bc5c29115 * FreeBSD fixes/updates from Andreas Kohn 2005-09-25 22:04:51 +00:00
Tim Angus 6ceb4a64e4 * Removed stray cons script 2005-09-25 21:46:55 +00:00
Tim Angus 198cb121d7 * Removed Makefile which spawned cons 2005-09-25 21:46:00 +00:00
Tim Angus e66a28dfeb * Removed cons based build system
* Removed some id specific shell/perl scripts
* Removed some unused asm files
* Removed prehistoric RPM build rules
2005-09-25 21:43:48 +00:00
Tim Angus 2897abe618 * Mostly selfish patch to work around what I believe is probably an nvidia and/or agpgart bug 2005-09-25 19:54:31 +00:00
Tim Angus f0bd20e00a * Removed the redundant "sound system is muted" message
* Moved printing of desired audiospec to before SDL_OpenAudio
* When the computed value for samples is not a power of 2, now pick the smallest power of 2 greater rather than the largest power of 2 smaller
2005-09-24 01:26:51 +00:00
Tim Angus fe14a45ad1 * Applied ajax's cleanup patch 2005-09-23 17:39:14 +00:00
Tim Angus 4c6f59c541 * Applied Thilo Schulz's MDR patch 2005-09-23 17:08:25 +00:00
Tim Angus 2b8395a4d0 * Replaced lots of __linux__ || __FreeBSD__ with __GNUC__
* MinGW port now uses asm versions of SnapVector and ftol
* Improved the handling of mangled symbols in vm_x86.c
2005-09-23 02:59:15 +00:00
Tim Angus fa9b864abe * Tidied up the makefile, mostly for whitespace
* Removed the q3static target
* Ported the nasm asm to gas asm, thus removing the nasm dependancy
2005-09-23 01:59:42 +00:00
Tim Angus fcaf343d7f * Port to MinGW 2005-09-22 03:21:33 +00:00
Tim Angus 50eb77ed1a * Removed the dependancy on perl for deriving the version number
* Moved `sdl-config --libs` from LDFLAGS to GLLDFLAGS to prevent needlessly linking against SDL when building the dedicated server
* Moved assignment of DEBUG_CFLAGS until after BASE_CFLAGS has been constructed
2005-09-19 20:43:35 +00:00
Tim Angus 33a48a0336 * Fix to multiple buffer overflow bugs in CL_Rcon_f
* Fix to COM_ParseExt 1 byte overwrite bug
* Fixed some missing calls to trap_FS_FCloseFile
* Fixed q3msgboom and q3infoboom bugs
* Fixed some qboolean type confusion
* Above fixes from http://www.quakesrc.org/forums/viewtopic.php?t=5374
2005-09-19 17:45:29 +00:00
Ludwig Nussel b185817285 more integer checks 2005-09-17 16:21:39 +00:00
Ludwig Nussel aa942839ce apply altivec fixes from Emanuel Steen (#2383) 2005-09-17 14:59:28 +00:00
Ludwig Nussel 18fc0fb5f5 fix crash when starting a TA CTF game with shared libs (#2367) 2005-09-17 14:20:22 +00:00
Zachary Slater 4bee7b4134 Patch from Tim Angus, to fix a longstanding bug
in the server, wherein running the server for
more than 24 hours would cause the game to
exhibit weirdness as described here:
http://forums.wireheadstudios.org/index.php?act=ST&f=11&t=2749

That page would also indicate that more work
needs to be done if the map isn't going to change
for more than 24 hours.
2005-09-17 01:36:38 +00:00
Ludwig Nussel 40592957b4 fix some integer overflows 2005-09-12 15:41:05 +00:00
Ludwig Nussel 4caa237d5f use r_ignorehwgamma cvar to allow user to disable gamma correction 2005-09-08 08:34:32 +00:00
Zachary Slater cda15d093a 8 bit jpeg support from Thilo Schulz
https://bugzilla.icculus.org/show_bug.cgi?id=2373
2005-09-07 20:42:43 +00:00
Ryan C. Gordon 62678a0215 Fixed buffer overflow in JPG decoder (thanks, Thilo Schulz!) 2005-09-07 18:29:03 +00:00
Ludwig Nussel cb753845ae fix parallel build - gnu make specific syntax? 2005-09-07 11:44:13 +00:00
Ryan C. Gordon 7b6c3a3f7c Possible fix for 16-bit displays (untested)...reset the gl red/green/blue
size to 4 bits unless we have a 24-bit framebuffer.
2005-09-07 06:03:42 +00:00
Ryan C. Gordon 752d393daa Tweak audio to reduce latency and allow user to override with cvars. 2005-09-04 19:36:36 +00:00
Ryan C. Gordon 9266fccf79 Fixed all lowercase input (Bugzilla #2364). 2005-09-04 16:40:55 +00:00
Ryan C. Gordon 0cf1494497 Removed some tab chars. 2005-09-04 15:30:26 +00:00
Six 54351a83c4 . 2005-09-04 05:45:05 +00:00
Six 38e3825516 Changed inline to __inline.
Visual C does not accept the inline keyword, only __inline.

Visual C does not recognize the #warning compiler directive
2005-09-04 05:19:58 +00:00
Zachary Slater 0a8f2fe25b More fixens. 2005-09-03 23:03:41 +00:00
Zachary Slater fe4add9920 Updates and fixens 2005-09-03 22:45:50 +00:00
Zachary Slater fe3c3f69ec https://bugzilla.icculus.org/show_bug.cgi?id=2362 2005-09-03 19:16:14 +00:00
Zachary Slater a4a6168e95 https://bugzilla.icculus.org/show_bug.cgi?id=2361 2005-09-03 18:30:59 +00:00
Ludwig Nussel 2e6d24d973 remove useless setuid code 2005-09-03 12:02:28 +00:00
Ludwig Nussel 4a5f66fbe3 don't make unaligned used of OP_BLOCK_COPY an error. The bytecode
compiler doesn't care either.
2005-09-03 12:01:51 +00:00
Zachary Slater 840ecd6483 More from pomac 2005-09-03 04:10:22 +00:00