Mark Olsen
b7a5f90f8a
Subtracting pointers of different types isn't valid C. Boo.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3064 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-14 16:49:26 +00:00
Mark Olsen
dee0c9d6cf
Protect against multiple inclusion.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3063 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-14 16:48:23 +00:00
Mark Olsen
eda9cfded4
Added #error for invalid C code that SMVC happily compiles.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3062 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-14 16:46:30 +00:00
Mark Olsen
fc60c486e8
Marked CL_CheckModelResources() as static. Prototyped the function to make compilation of broken code fail on SMVC too.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3061 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-14 16:43:28 +00:00
Spoike
1a8690e104
IPX only if ipx is supported by the system.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3060 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-13 08:55:41 +00:00
Mark Olsen
a6e7171f30
A bit closer to actually compiling.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3059 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-13 05:39:50 +00:00
Lance
41a92be8b2
Defined GL_BGRA_EXT so morphos and macosx crosscompilers can do the OpenGL targets again
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3058 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-12 12:05:29 +00:00
Spoike
c41148705c
nexuiz support: menu cvar_defstring = #89
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3057 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-12 04:23:13 +00:00
Spoike
498173e878
It has come to light that I suck. This incorporates the fixes already made to sys_linux since my huge commit. Again, these have not been tested. But they are more likely to work properly... As in the syntax errors are fixed.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3056 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-12 04:19:22 +00:00
Mark Olsen
308962afa9
Since this code doesn't even compile, I guess it is fair to assume that it hasn't been tested o:)
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3055 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-11 12:20:46 +00:00
Spoike
e8c6d25fe1
Should compile now.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3054 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-11 10:09:41 +00:00
Spoike
0b792a6355
Made the boolean type consistently int or float, without using conversions.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3053 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-09 23:29:13 +00:00
Spoike
c6aca04939
Track special modelindexes.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3052 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-09 23:10:28 +00:00
Spoike
dce284811e
Minor update...
...
Q3 clients can connect to q1 gamecode (sv_listen_q3).
hacked support for SendFlags. It'll work compatibly, just not efficiently.
Unified shared qc builtins.
fteqcc supports int |= float, more params in macros, &~= operator.
Additional recent DP QC extensions.
Particle system abstraction. 'r_particlesystem classic' (vs null or script) will revert to truly classic particles.
Nexuiz might run again.
Network address revamp (sv_port and sv_port_ipv6 can both be used to specify an ipv4 address:port and both corrently accept clients). localhost now properly favours ipv4 (use ::1 for ipv6 localhost).
Download system revamp.
Numerous other changes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3051 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-09 22:29:28 +00:00
Spoike
bf8eed727e
Reject double dots in macro names (fred.4 is allowed but fred..4 is not). This allows Hexen2 code to compile again.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3050 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-30 11:10:58 +00:00
Spoike
98ce1d689d
Fixed fullspawndata.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3049 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-23 20:56:15 +00:00
Spoike
81a86449ef
Might as well make it generate -TFTE if its not going to work in DP anyway.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3048 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-22 00:04:15 +00:00
Spoike
819d541362
local float blob = someformula; works now.
...
added support for -TDP (and #pragma TARGET DP). It is identical to -TFTE except for the instructions used. To be used with Blub's patch when he commits it for DP. It should allow more, this is a first-version.
#if defined(A) && defined(B) will also work as expected. Careful with nesting however, as complex formulas will not. Please use only a single operator.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3047 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-16 23:04:36 +00:00
Spoike
e7aa21bf29
Stripped some prints.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3046 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-16 22:02:39 +00:00
Spoike
baff3de5af
Initial commit. Needs work. Mostly functional though.
...
Requires a cutting edge version of fteqcc... Older versions have bugs and stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3045 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-16 22:00:54 +00:00
Spoike
99c6152b4e
Support for DP_SV_SPAWNFUNC_PREFIX in the .ent/bspent loader thingie. I'll add the extension name when I get around to fixing up and committing that chunk of code.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3044 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-13 09:25:51 +00:00
Spoike
0629d013b5
Fixed bug causing parameter conflict in statements like func(array[idx], func2(blah))
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3043 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-13 09:17:47 +00:00
Spoike
600f27876c
Fixed Z_FreeTags. Yes. Really.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3042 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-08 19:18:12 +00:00
Mark Olsen
bfee598a7a
Yeah, so sue me!
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3041 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-06 05:38:19 +00:00
Mark Olsen
0896e57367
Send a f_qtv command to the client on first connect.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3040 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 16:18:17 +00:00
Spoike
9f5fb267c3
Makes nexuiz's csqc work ever so slightly better (pics with size 0*0 now mean to draw at the natural size, instead of 64*64...).
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3039 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:58:22 +00:00
Spoike
a44068f9b4
Slightly better handling of .qtv files.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3038 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:56:11 +00:00
Spoike
0a4c047eec
Greater internal control over which variables are saved. Fixed a bug regarding temps and array references, which a couple of the nexuiz people found but didn't report (personally I found it was needed to be able to fire, but whatever).
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3037 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:55:01 +00:00
Spoike
880a70837c
DP_SV_SPAWNFUNC_PREFIX support
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3036 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:51:41 +00:00
Mark Olsen
b7fd77c403
Blind, untested fix of Z_FreeTags().
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3035 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-18 18:25:39 +00:00
Molgrum
c932cfbfab
Add include paths and symbols to fix syntax error in Eclipse.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3034 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-12 00:22:22 +00:00
Mark Olsen
2540c0bf74
Fixed Z_TagMalloc() to correctly link the double-linked list. Fixed Z_TagFree() to correctly unlink entries from the tree. Fixes various crashes.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3033 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-12 00:17:32 +00:00
TimeServ
fcbfb0e22c
change registry entry for win32 dedicated for future use
...
misc sound fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3032 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-11 03:39:34 +00:00
Mark Olsen
704fb438c9
Another SNAFU fixed. This should be the end of superbloated entity updates.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3031 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-10 13:11:46 +00:00
Mark Olsen
0159d7a211
Spike, you suck. Always diff before commit :/. Delta updates are there for a reason.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3030 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-09-10 08:56:03 +00:00
Mark Olsen
24e178bc37
Buffer overflows are bad for you, m'kay?
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3029 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-08-23 19:17:19 +00:00
TimeServ
828b3e99ab
fix a few casting issues allowing maps such as warpa, etc. to load (probably not done here)
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3028 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-08-06 12:11:27 +00:00
Spoike
8af647d7d4
Blub\0's latest patch. This one fixes up for arguments.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3027 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-27 02:48:59 +00:00
Spoike
7c6f37c4ae
Yes Blub, I suck.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3026 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-17 07:41:59 +00:00
Spoike
c29cf3db99
Framerate will be more stable when picking up items/getting shot/etc.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3025 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-16 00:19:33 +00:00
Spoike
887a278bce
patch from Blub\0 to fix issues with compiling:
...
b = min(a, b);
with -TFTE active.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3024 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-10 20:38:17 +00:00
Spoike
a8ad49db87
Fixed http url markup, courtesy of Cokeman.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3023 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-10 08:18:50 +00:00
Molgrum
603e2677f5
Well why not.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3022 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-08 18:55:48 +00:00
Spoike
9741aacb98
Fix a crash which qqshka reported, and fixed up some C style.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3021 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-07 20:39:21 +00:00
Molgrum
8278f53e15
Patch from Spike, change droptofloor() to take entity number as argument instead to comply with QVM mods.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3020 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-29 11:17:46 +00:00
Molgrum
eec8fcb78b
Add G_MOVETOGOAL builtin for KTX.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3019 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-27 20:26:33 +00:00
Molgrum
d71843d2e4
Redefine snprintf for Windows.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3018 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-27 19:16:15 +00:00
Spoike
64c9a31e6b
There. Happy now?
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3017 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-25 08:29:14 +00:00
Spoike
4dfdca03f5
Fixed handling of header fields. This is a major security bug fix (omission bug). Added some additional measures to prevent client exploitation also (clients should do this themselves too). Used some snprintfs instead of sprintfs due to paranoia, but these will fix nothing as it currently stands.
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3016 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-25 07:13:47 +00:00
Spoike
2c2560eef4
The buffer is not meant to be terminated by a null terminator, but instead has a length. (it is always null terminated despite this)
...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3015 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-25 07:09:39 +00:00