Bill Currie
55cdde81da
rename clmodel to model
2002-08-19 04:15:46 +00:00
Bill Currie
b1a180b25e
move the view model check for min_light into the model loader (checks for
...
progs/v_*)
2002-08-19 04:05:02 +00:00
Bill Currie
2b1fd8e8c0
fix the menu keybinding not working bug
2002-08-19 02:48:38 +00:00
Bill Currie
451eaba2e1
change the value type for MSG_Write(Byte|Short|Long) from unsigned int to
...
int to avoid float -> unsigned int conversion problems
2002-08-19 01:58:01 +00:00
Bill Currie
3431b7ce82
float -> unsigned int needs to pass though int otherwise we lose the negative
...
range on the ps2 (nasal demons:)
2002-08-19 00:05:51 +00:00
Bill Currie
c1c6c05cf5
pr_obj.c:
...
delay class fixups so order doesn't matter
class.c:
write out the class and category diffs properly
2002-08-16 22:53:37 +00:00
Bill Currie
c1f5659977
bi_inputline.c:
...
add InputLine_SetUserData
pr_resolve.c:
report the correct missing symbol (self instead of time)
2002-08-16 21:52:37 +00:00
Bill Currie
4b1ceb9795
hopefully take care of glGetProcAddress type once and for all :)
2002-08-16 18:29:21 +00:00
Ragnvald Maartmann-Moe IV
3b65cbc35d
Raorn's SDL_GL_GetProc support. Makes -sgl targets work again, hopefully on windows as well as linux.
...
Now just need to get key repeat, focus handling and sound blocking on focus loss working like x11 input system does, and sdl support will be in pretty good shape. And clean out all the stupid #ifdefs...
2002-08-16 07:53:11 +00:00
Bill Currie
f753dd82ae
put \n on some error messages
2002-08-15 19:06:21 +00:00
Bill Currie
141df55965
zap some FIXMEs
2002-08-14 20:01:23 +00:00
Bill Currie
8adad57941
Make the cbuf api use a supplied cbuf rather than allocating its own. Kills
...
a FIXME and (Closes : #32 )
2002-08-14 18:45:09 +00:00
Bill Currie
1a0cf8d1f4
remove some redundant/incorrect code
2002-08-14 06:28:38 +00:00
Bill Currie
7ed7938b1c
get colored lighting working reasonably well
2002-08-14 05:45:50 +00:00
Brian Koropoff
513b5737f9
Got indexing into variables working and cleaned up variables a bit.
...
Partially translated zoom.gib into the new language, but it isn't done yet.
2002-08-14 05:28:07 +00:00
Jeff Teunissen
87fd1adadb
Enable compiling the null plugin by default.
2002-08-14 05:16:11 +00:00
Jeff Teunissen
2037db210c
whitespace.
2002-08-14 05:12:57 +00:00
Bill Currie
2abaf27cdc
attempt to fix the dark models at centers of dlights
2002-08-12 15:36:52 +00:00
Bill Currie
8e97d6279a
first stab at colored alias model lighting
2002-08-12 06:14:55 +00:00
Bill Currie
1afd2d95b2
break out the 1 vs 3 lightmap components code into separate functions and
...
do preliminary support for colored alias model lighting
2002-08-12 04:42:29 +00:00
Bill Currie
7e4e294089
fix the unlit models in full light bug
2002-08-12 02:05:45 +00:00
Bill Currie
4123d74e5e
don't segfault when a surface uses the `null' texture (r_notexture_mip)
2002-08-09 06:07:25 +00:00
Bill Currie
ff8ea15c09
solaris compile fixes
2002-08-09 04:06:17 +00:00
Brian Koropoff
0390fe22ce
Added tree variables (blah.1, blah.2, blah.1.foobar, etc), global variables,
...
made var substitution more robust, and began adding proper comments to
the code.
2002-08-08 09:20:00 +00:00
Ragnvald Maartmann-Moe IV
30012cc753
Fix K_RCTRL handling.
2002-08-08 05:53:58 +00:00
Bill Currie
cbde41c669
damnit!
2002-08-08 04:41:41 +00:00
Bill Currie
3baec9e856
clean out the dead mtex code
2002-08-08 04:27:49 +00:00
Bill Currie
0963c2476d
improved server logging. "logfile" is gone from qw-server to be replaced
...
with "sv_logfile" and thus giving nq-server logging as well.
2002-08-07 18:46:53 +00:00
Bill Currie
c05db51069
add Qputs
2002-08-07 18:43:35 +00:00
Bill Currie
ca92e5885f
part of the macroizing
2002-08-07 18:21:36 +00:00
Bill Currie
e171146582
Make Sys_Error repeat it's message to stderr to increase the changes of the
...
error being seen. (Closes : #39 )
2002-08-07 15:31:56 +00:00
Brian Koropoff
5c60be3a49
If and while now work, and embedded commands use backticks instead of <> now
...
to prevent conflicts with math expressions. All clients and servers are set
to create buffers with the normal parser. However, scripts ending in .gib
are now executed in a GIB buffer, and the export command can be used to
make specific GIB functions available to normal command buffers (i.e. the
console).
2002-08-07 06:17:50 +00:00
Brian Koropoff
666c3fce07
Embedded commands now work without any bugs I can detect. Next up are
...
loops, branching, and getting the tokenizer to give special treatment
to certain builtin functions. But first I should get some sleep :)
2002-08-06 08:15:20 +00:00
Brian Koropoff
bdd0f69f17
Declared variable in the wrong spot. Don't know why gcc 3 accepted it.
2002-08-05 05:58:17 +00:00
Brian Koropoff
87f0f480e4
Local variables work, preparing to get embedded commands done.
2002-08-05 00:01:06 +00:00
Ragnvald Maartmann-Moe IV
f773e1fa36
Minor alias model rendering speedup.
2002-08-03 07:07:23 +00:00
Ragnvald Maartmann-Moe IV
10c3f91a24
Revert taniwha's broken-radeon workaround.
2002-08-03 07:07:00 +00:00
Bill Currie
9c08f5b169
fix a typo that caused weirdness with the lerping
2002-08-03 06:13:35 +00:00
Brian Koropoff
cf48363c6e
More of GIB done: builtins, functions, various cleanups, math, etc.
2002-08-03 06:04:00 +00:00
Bill Currie
c5192540c8
remove an accidental commit
2002-08-03 01:29:26 +00:00
Chris Ison
c6217dc7a7
fix bug where -commands where executed and command buffer could be filled when key repeated
2002-08-03 00:19:41 +00:00
Ragnvald Maartmann-Moe IV
97d6f46f75
Speed up 16bit coord alias models a bit. (only one VectorScale per vertex now)
2002-08-02 18:07:53 +00:00
Brian Koropoff
3c3844d2ac
Checked in the beginnings of GIB mark III and modified qw-server to use
...
it for its console.
2002-08-02 04:07:25 +00:00
Bill Currie
4bd940e619
d'oh
2002-08-02 03:26:55 +00:00
Bill Currie
5f4c21d796
casting from (signed) char to int does not one whit of good towards avoiding
...
the problems associated with signed chars being used to index arrays. must
cast to usigned char so the bit expansion is done on an unsigned value to
avoid the sign extension.
2002-08-02 03:22:32 +00:00
Bill Currie
2ce0f2ded2
we now require modern autoconf (2.52+), automake (1.6+) and libtool (1.4+).
...
This gives us a bunch more flexibility. plugins no longer have the "lib"
prefix or the version suffix, they're now installed in
$fs_sharepath/QFplugins,, builds should take much less time (in general,
only one of pic or non-pic versions are build), bins and libs can have
individual CFLAGS
2002-08-01 19:49:10 +00:00
Bill Currie
612f5c2a31
attempt to fix the win32 server input
2002-08-01 04:49:16 +00:00
Brian Koropoff
4e85063b52
Added support for execution stacks, misc. cleanups.
2002-08-01 02:42:19 +00:00
Brian Koropoff
439f9838d3
Whoops, missed some stuff that needed to be in idparse.h
2002-07-31 22:13:15 +00:00
Brian Koropoff
a93b221272
Split off the old console parser into idparse.[ch] and prepared the cbuf
...
struct and support functions for GIB mark III.
Oh yeah, I'm back.
2002-07-31 22:03:53 +00:00
Bill Currie
4b9382d4a8
nuke GGI_CFLAGS (never set)
2002-07-31 18:51:34 +00:00
Bill Currie
0bb6769204
fix the non-parsing of quakeforge.conf
2002-07-31 06:06:44 +00:00
Bill Currie
ad6e025a91
take cmd.[ch] back to basics. the gib code is temporarily gone pending
...
renovations. cmd_source handling is a little hacky in nq, but it's working.
2002-07-31 05:19:03 +00:00
Bill Currie
021decc7bd
start on the cleanup of cmd.c. these aren't used yet, but the parsing is
...
working
2002-07-30 17:08:53 +00:00
Bill Currie
46ee46fdc6
dead code removal
2002-07-30 04:55:33 +00:00
Bill Currie
b9d364d7b7
whitespace clean up
2002-07-30 02:06:37 +00:00
Bill Currie
e0aa405e76
remove some dead code
2002-07-30 01:56:07 +00:00
Bill Currie
5fd916a0da
looped oggs now work so long as they have a CUEPOINT= comment
2002-07-29 22:25:32 +00:00
Bill Currie
d00ed9619f
give dstring_adjust a prototype and fix up some whitespace
2002-07-29 19:52:19 +00:00
Bill Currie
0514d37458
don't accept absurdly large vertex arrays
2002-07-27 16:46:58 +00:00
Bill Currie
d04eeb3ba2
get -wgl working again
2002-07-27 06:43:28 +00:00
Bill Currie
01228a8be0
set the file mode before seeking
2002-07-27 06:42:52 +00:00
Bill Currie
b3d6875e61
_vsnprintf doesn't like a null pointer in windows
2002-07-27 02:00:06 +00:00
Bill Currie
587ac5670b
using R_FLOAT for setting individual fields of the return vector ain't so
...
good a thing to do.
2002-07-25 14:58:02 +00:00
Ragnvald Maartmann-Moe IV
587de27849
Another step towards QSG2 compliance.
2002-07-25 14:43:36 +00:00
Ragnvald Maartmann-Moe IV
3c7d65a798
Whitespace.
2002-07-25 14:42:41 +00:00
Ragnvald Maartmann-Moe IV
4ed68266ea
Speedup when r_waterripple = 0, and small speedup to texture coordinate calculation.
2002-07-25 14:01:36 +00:00
Bill Currie
2f57f95783
don't show the single player menu line
2002-07-25 05:33:16 +00:00
Bill Currie
51e4cad3fe
get Draw_SubImage doing transparencies
2002-07-25 05:04:22 +00:00
Bill Currie
51b189f56a
make Draw_SubPic do transparent pics
2002-07-25 04:30:50 +00:00
Bill Currie
de22355371
use P_* for params and R_* for return values in builtins code
2002-07-24 21:42:33 +00:00
Bill Currie
defcedec49
give access to Draw_SubPic
2002-07-24 21:39:03 +00:00
Ragnvald Maartmann-Moe IV
d3fc8c5fb6
No need for function pointers on R_AddDynamicLights_*, they are never called from outside the R_BuildLightMaps_* function that matches them.
...
Nice spotting, taniwha!
2002-07-24 15:30:28 +00:00
Ragnvald Maartmann-Moe IV
85c7e43aef
Split lightmaps off from surface drawing.
2002-07-23 19:57:47 +00:00
Ragnvald Maartmann-Moe IV
227da6afba
Change pr_boundscheck default to 0. *grmbl*
2002-07-21 23:35:36 +00:00
Bill Currie
acf9ce392c
move pakfile.[ch] into libQFutil and make quakefs.c use it instead of its
...
own code. This also removes the evil pak file count limit :)
2002-07-21 06:11:28 +00:00
Bill Currie
bff6291bfb
don't need to force developer now
2002-07-16 22:06:52 +00:00
Bill Currie
ac1392eb74
object.r:
...
define __obj_exec_class, obj_msgSend and obj_msgSend_super for the way
qfcc now handles these defs
pr_edict.c:
PR_ValueString now checks that the function is valid before trying to
print its name.
class.c:
__obj_exec_class is now extern
linker.c:
fix more mangled relocs
method.c:
obj_msgSend and obj_msgSend_super are now extern
qfcc.c:
fixes so obj_module_t doesn't get zapped
type.c:
fixes so obj_module_t doesn't get zapped
2002-07-16 19:03:56 +00:00
Bill Currie
35d224f1da
a little more info and force developer on for now
2002-07-16 15:39:49 +00:00
Bill Currie
34fa421638
whitespace
2002-07-13 03:41:33 +00:00
Ragnvald Maartmann-Moe IV
1f8a1d613f
Fix r_particles_nearclip being forced to max.
2002-07-08 00:05:33 +00:00
Ragnvald Maartmann-Moe IV
d297c2b3a3
Colormod & alpha for brushmodels, excluding skypoly emittors.
2002-07-07 06:15:36 +00:00
Ragnvald Maartmann-Moe IV
edc4e27124
Minor order fixup.
2002-07-07 02:34:48 +00:00
Bill Currie
1337b8bd3d
be a little more verbose with the "Bad surface extents" error.
2002-07-03 21:03:49 +00:00
Jeff Teunissen
065ec7ff39
Clean up the "fxMesa" error message so it makes more sense, and so most people
...
will actually see it if they need it.
2002-07-03 06:31:03 +00:00
Ragnvald Maartmann-Moe IV
e1854315ac
Clean out DDActive, except from -mgl, which isn't supported ATM. Clean up vid_mgl.c comments and dead code a bit.
2002-07-02 20:34:51 +00:00
Bill Currie
91dc5b20db
nuke MSG_ReadChar. Other than the sign extention, it's redundant and nothing
...
a suitable typecast can't take care of.
2002-07-02 19:15:29 +00:00
Ragnvald Maartmann-Moe IV
5e5fdb7bc2
Kill MSG_WriteChar.
2002-07-02 19:13:53 +00:00
Bill Currie
e5d8781150
win32 compile fixes. still have problems with DDActive, but Despair's going
...
to look at that.
2002-07-02 18:45:50 +00:00
Ragnvald Maartmann-Moe IV
a49177c605
Merge a few more lines into queue_character, and prepare for optimizing gl Draw_nString.
2002-06-28 17:47:26 +00:00
Bill Currie
1828cbff5a
get the type for getProcAddress right
2002-06-28 17:15:49 +00:00
Ragnvald Maartmann-Moe IV
a6d999dfa4
Speed up most of the MSG_Write* functions by reducing the number of times SZ_GetSpace gets called.
2002-06-28 04:48:07 +00:00
Ragnvald Maartmann-Moe IV
4e467ac8df
Whitespace.
2002-06-27 18:50:26 +00:00
Bill Currie
e77d730054
windows really sucks
2002-06-27 16:37:16 +00:00
Ragnvald Maartmann-Moe IV
fd1ded5c4a
Add r_nearclip and r_particles_nearclip. Also put some limits on r_farclip. And fix id's insane max and min float, and some minor improvements in frustum setup in GL.
2002-06-26 22:20:12 +00:00
Ragnvald Maartmann-Moe IV
e6e11af426
Move the contents of gl_funcs.c out of the renderer, and into targets where they belong. Also some cleanups. -sgl target is temporarily broken, all others should work.
2002-06-24 21:35:37 +00:00
Chris Ison
70d8026067
Removing -3dfx's dependancy on clide
2002-06-24 15:56:01 +00:00
Ragnvald Maartmann-Moe IV
c8bc5dfb4c
QSG2 glows almost working. Plus lots of typos killed.
2002-06-18 21:41:24 +00:00
Ragnvald Maartmann-Moe IV
c25cfe6c9e
A couple extra glFinishes a frame just aren't good for performance, even if they are a handy workaround for taniwha's text rendering bug...
2002-06-18 15:40:30 +00:00
Bill Currie
1486c97b8f
move the vertex setup and va flushing code into inline functions, killing a
...
lot of duplicate code. Performance is not harmed :)
also some whitespace
2002-06-18 04:13:46 +00:00
Bill Currie
717127e0d8
don't print ! on uninitialized global defs that are the correct type for
...
the instruction
2002-06-17 05:31:08 +00:00
Bill Currie
59dba829f2
fix an out-by-one error caused by over-optimisation of floats.
2002-06-17 00:26:13 +00:00
Bill Currie
2264c28310
pr_strings:
...
remove a bogus 0x which caused confusion in an error message
def.c:
vector fields still need an extra 3 globals for their component fields
2002-06-16 05:24:58 +00:00
Bill Currie
76704e9daf
the other part of the rename
2002-06-16 04:22:51 +00:00
Ragnvald Maartmann-Moe IV
00f5d82a86
Make wizard spike hits visible, plus a couple minor cleanups.
2002-06-15 10:54:26 +00:00
Ragnvald Maartmann-Moe IV
2a4f2a77fb
Whitespace.
2002-06-15 10:52:14 +00:00
Bill Currie
930ba48862
other than sounds that are ment to loop not looping (due to losing that info
...
when converting to ogg (I've got some ideas on that)), ogg/vorbis support is
working. Doesn't seem to be too much of a load-time hit.
2002-06-15 05:43:56 +00:00
Bill Currie
ddf4f257f4
*sigh*, sometimes I hate automake
2002-06-15 03:20:59 +00:00
Bill Currie
9f1e6f9c82
make the vorbis support mostly work. qf segs in Cache_TryAlloc when loading
...
a map, but I think that's related to some of our other sound resample bugs.
2002-06-14 22:55:57 +00:00
Bill Currie
f2f6041e05
at long last, vorbis support :) load time only, though, so not yet suitable
...
for huge samples.
Also, change the file search order so that .gz is checked before the
requested file.
2002-06-14 20:36:28 +00:00
Bill Currie
b65c96ad99
don't call draw_z_sky_polys for modes that don't need it
2002-06-14 19:25:32 +00:00
Ragnvald Maartmann-Moe IV
df55030fa8
Fix alias bounding box sizes, so that large critters don't disappear when at edge of view frustrum...
...
(Taken and debugged from tutorial on quakesrc.org)
2002-06-14 09:33:37 +00:00
Ragnvald Maartmann-Moe IV
eaf0f90c2f
Undo thinko.
2002-06-14 06:23:11 +00:00
Ragnvald Maartmann-Moe IV
c7432caf2e
Fixes to shadow rendering, plus get QSG scale working for alias models. Which breaks viewmodel rendering until we figure out how that is escaping getting scale set.
2002-06-14 06:08:45 +00:00
Ragnvald Maartmann-Moe IV
f12af8a3d4
Minor cleanup/optimization of sprite model rendering.
2002-06-14 06:06:38 +00:00
Ragnvald Maartmann-Moe IV
463ac44d9f
Minor optimization for shadows, and make translucent objects have shadows matching their alpha.
2002-06-14 04:14:52 +00:00
Ragnvald Maartmann-Moe IV
942bf55c06
Flush console text before rendering menus, and a tiny optimization to fullscreen blend rendering in GL.
2002-06-13 22:51:43 +00:00
Bill Currie
e774943f24
va.[ch]:
...
new va function: nva which returns a strduped buffer
expr.c options.c:
use nva instead of strdup (va (...
struct.c type.c:
make type encoding work properly for structs
2002-06-13 16:39:33 +00:00
Brian Koropoff
0d2bd0ca77
Finally added a file_read command.
2002-06-13 05:58:48 +00:00
Ragnvald Maartmann-Moe IV
10d7d17fcc
Use vertex arrays for text. Another 1-3% speedup.
2002-06-13 05:24:52 +00:00
Bill Currie
88fc0be127
arrays are /almost/ working again
2002-06-12 22:37:18 +00:00
Ragnvald Maartmann-Moe IV
87741d2b90
Tweak r_firecolor to reduce haloing on rocket dlights.
2002-06-12 04:37:33 +00:00
Bill Currie
0b1d1ade73
qfprogs can now read the debug data
2002-06-11 17:24:37 +00:00
Brian Koropoff
fe48995a0c
Fixed some error messages and a small bug in list.gib
2002-06-11 06:08:31 +00:00
Bill Currie
74597018ec
heh, forgot to ifdef the call to R_InitVars
2002-06-10 22:52:13 +00:00
Bill Currie
3551b82a50
compile fix for when vidmode isn't available
2002-06-10 22:30:30 +00:00
Brian Koropoff
b70ffbf871
Fixed a warning message. Changed writefile to file_write. Added file_find
...
which searches a directory for files matching a pattern and returns a \n-
separated list.
2002-06-10 22:03:51 +00:00
Bill Currie
a7f1e1185b
Patch to get oss sound working in BSD thanks to Alexander Leidinger
...
<Alexander@Leidinger.net>
2002-06-10 15:36:33 +00:00
Bill Currie
a4b06b1074
blah, enums and switch... (at least gcc 3.1 is warning about that again:)
2002-06-09 16:31:08 +00:00
Ragnvald Maartmann-Moe IV
9bca381c41
Remove R_Init_Entity. Never used, and probably doesn't belong in the renderer.
2002-06-07 23:38:53 +00:00
Bill Currie
5c943d4ca9
this should speed up progs a little bit
2002-06-07 19:41:13 +00:00
Bill Currie
3de07df3d2
*sigh*, I'm having a real problem this morning :P
2002-06-07 15:11:59 +00:00
Bill Currie
c0888ae8e4
I really hate the way cvs won't let you undo a poorly thought out removal
2002-06-07 15:09:57 +00:00
Bill Currie
ebfdbd9285
the fpu manipulation stuff seems to be better off in the one place that
...
actually uses it...
2002-06-07 15:09:20 +00:00
Bill Currie
4e07810f0d
a little cleanup of unneeded lines
2002-06-07 14:44:02 +00:00
Ragnvald Maartmann-Moe IV
ceb73449bb
Order of operations cleanup, QSG2 alpha is now colormod[3] in entities.
2002-06-07 11:25:47 +00:00
Ragnvald Maartmann-Moe IV
46949068a2
Check return value on R_AllocDlight. Small optimization, people cutting r_dlight_max heavily should like it.
2002-06-05 22:07:38 +00:00
Ragnvald Maartmann-Moe IV
0552d31b0b
Minor optimization.
2002-06-05 06:46:21 +00:00
Ragnvald Maartmann-Moe IV
0bce2d0f2e
Add QSG2 colormod, alpha, and scale for sprites. Probably not used by anything, but there you go.
2002-06-05 05:56:13 +00:00
Bill Currie
0f9adc182d
win32 compile fixes
2002-06-04 16:17:10 +00:00
Jeff Teunissen
1ba994fd13
This is a test hack, to see if chopping off some of the integer realtime's
...
data helps in lengthening the amount of time a server can be up without Weird
Stuff(tm) happening.
2002-06-03 23:29:34 +00:00
Bill Currie
4039452297
more sys cleanup. server consoles may be broken for non-curses.
2002-06-03 19:11:48 +00:00
Bill Currie
0f94fd64e7
blah, forgot to #ifdef them :P
2002-06-03 17:26:09 +00:00
Bill Currie
54b299a7e2
set the type and size of the fpu control word vars
2002-06-03 17:04:47 +00:00
Bill Currie
d7c7ac7891
don't add -version-info for static plugins
2002-06-03 16:34:46 +00:00
Bill Currie
b4e8e0750c
well, that's one way to confuse anybody
...
fixes the floating point exception
2002-06-03 07:23:41 +00:00
Bill Currie
ad08ff7492
there, finally got it right. ugh
2002-06-03 06:01:19 +00:00
Bill Currie
3ffec9e8c1
d'oh, forgot to set up my GOT base register in all the functions :P
2002-06-03 04:58:42 +00:00
Bill Currie
07c7c05f64
finish making sys_ia32.S PIC friendly
2002-06-03 04:06:25 +00:00
Bill Currie
f00e892d4e
mingw gcc 3.1 is freaking weird
2002-06-02 05:27:32 +00:00