Adam Olsen
ae133d0a90
Modify progs to add builtins at runtime. It should be trivial to
...
lookup functions by name, and make all our new QC builtins allocate
numbers automatically.
2001-08-03 06:40:28 +00:00
Bill Currie
0a4caac3c6
mingw compile fixes
2001-08-02 23:00:39 +00:00
Bill Currie
b455458629
exit cleanup. Sys_Error and Sys_Quit should be used whenever possible.
2001-08-02 17:16:12 +00:00
Ragnvald Maartmann-Moe IV
2887dd3950
Fix issue with gl_lightmap_components 4 and lightmap updates.
2001-08-02 04:12:26 +00:00
Bill Currie
4c23641759
print line and char number for the error
2001-08-02 02:49:14 +00:00
Ragnvald Maartmann-Moe IV
fd0c5aab36
Garbage comment removal.
2001-08-02 02:28:17 +00:00
Ragnvald Maartmann-Moe IV
6e9b51edfc
(Optionally) Use glTexSubImage2D for lightmap updates. Doesn't give as large a boost as I'd hoped, but will matter far more as other optimizations happen. New cvars gl_lightmap_align does nothing yet, and gl_lightmap_subimage only works in mode 0 and 1. Mode 2 (should be fastest mode on most cards) will eventully get implemented...
2001-08-02 02:18:04 +00:00
Bill Currie
8fa4bff0c4
_ is legal in an unquoted string and make PL_ObjectForKey return the correct
...
value
2001-08-01 16:07:39 +00:00
Bill Currie
2a96ffb19b
fix a couple of warnings
2001-08-01 07:05:28 +00:00
Jeff Teunissen
76385372f3
plist updates; PL_GetPropertyList now calls Sys_Error() on plist errors.
2001-08-01 07:03:46 +00:00
Bill Currie
b6ee3e72da
don't have blank SUBDIRS=, it hurts
2001-08-01 05:07:58 +00:00
Bill Currie
22339b712d
create fs_userdir if it's not "." rather than not FS_USERPATH
2001-07-31 21:52:52 +00:00
Bill Currie
fb26d8b18a
make Info_Set* take flags indicating wether funchars should be stripped or not
2001-07-31 18:27:49 +00:00
Bill Currie
6cb2cb5bdc
start making the rotated bounding box (really dynamic clipping huls) more
...
generice, and also more in line with the rest of quake's clipping system
(ie, support the entity size selected hulls). I'm not /entirly happy with
what's here, but it's a start, and the force fields in customtf work /much/
better :)
2001-07-30 04:33:59 +00:00
Adam Olsen
0219bcb4c8
Make the help command work with commands too. (moved to cmd.c while I
...
was at it)
2001-07-30 01:01:39 +00:00
Bill Currie
75f3f27a22
fix a silly mistake that caused configs not to be written
2001-07-24 03:22:54 +00:00
Bill Currie
c248372e20
Initial integer type support. qfcc /is/ partially broken when it comes to
...
integer constants and float function args/return values.
pr_comp.h:
o add the integer opcodes to pr_opcode_e
pr_edict.c:
o add "quaternion" and "integer" to type_name[]
o support quatnernion and integers types when printing values
o support the integer opcodes when bounds checking
pr_exec.c
o enable the integer opcodes
pr_opcode:
o add the integer opcodes to the opcode table
o logical operators all result in an integer rather than a value
expr.h:
o rename int_val to integer_val
qfcc.h:
o kill another magic number
expr.c:
o move the opcode to string conversion out of type_mismatch and into
get_op_string
o rename int_val to integer_val
o general integer type support.
o generate an internal comipiler error for null opcodes rather than
segging.
pr_imm.c:
o rename int_val to integer_val
o support integer constants, converting to float when needed.
pr_lex.c:
o magic number death and support quaternions and integers in type_size[]
qc-lex.l
o rename int_val to integer_val
o support quaternion and integer type keywords
qc-parse.y:
o rename int_val to integer_val
o use binary_expr instead of new_binary_expr for local initialized
variables
builtins.c:
o rename int_val to integer_val
o fix most (all?) of the INT related FIXMEs
defs.qc:
o use integer instead of float where it makes sense
main.c:
o read_result is now integer rather than float
main.qc:
o float -> integer where appropriate
o new test for int const to float arg
2001-07-23 01:31:22 +00:00
Bill Currie
22c9716b56
rename int_var to integer_var
2001-07-22 20:20:46 +00:00
Bill Currie
bad184b11b
change the results of the test instructions from float to int.
2001-07-22 19:58:17 +00:00
Bill Currie
67d20e0b70
remove all the _IF, _FI, _IV and _VI instructions (none yet enabled) as I don't
...
want to implement implicit integer <-> float `conversions'
2001-07-22 19:27:17 +00:00
Bill Currie
d6f82b6370
make Qwrite's buffer pointer const.
2001-07-22 18:38:59 +00:00
Ragnvald Maartmann-Moe IV
111dc205d5
whitespace and comment cleanups.
2001-07-22 05:40:34 +00:00
Bill Currie
56bb92a7f9
make gl_sky_clip 3 do as originally promises
2001-07-22 02:06:02 +00:00
Ragnvald Maartmann-Moe IV
54cda68878
Just a bit of whitespace and comment cleanup.
2001-07-21 23:18:59 +00:00
Ragnvald Maartmann-Moe IV
1461143371
Spiffed up scrag and hellknight missile particle trails. (Partly inspired by darkplaces, though not identical to LordHavoc's)
2001-07-21 20:32:45 +00:00
Bill Currie
c9626b42f0
Makefile.am:
...
build the client and server plugins
client.c:
get to build, though it's very crippled
server.c:
re-print the message to the buffer after re-sizing the buffer
2001-07-20 18:51:00 +00:00
Bill Currie
22dbc62c71
damn magic numbers. sdl didn't like the key num shift either
2001-07-20 05:18:46 +00:00
Bill Currie
9f09a6aa32
assigning > 255 into an unsigned char isn't too good
2001-07-20 01:45:19 +00:00
Bill Currie
bcbd1b953a
heh. close, so close. one mised const
2001-07-19 21:51:18 +00:00
Bill Currie
46176e1094
azerty kb patch from Filip Van Raemdonck <mechanix@digibel.org>. includes some
...
misc fixes, too
2001-07-19 21:46:34 +00:00
Bill Currie
edcc313501
debug info for local variables is now used. only works when tracing atm:/
2001-07-19 07:27:14 +00:00
Adam Olsen
a771b5bd6c
Make edicts command support a search string, so it only prints edicts
...
with matching classnames. Makes it easy to print out the type you want
for debugging :)
2001-07-19 03:18:11 +00:00
Bill Currie
2732797574
fix the undefined symbol error
2001-07-18 22:18:36 +00:00
Bill Currie
47a6f2c9b5
pr_debug.c:
...
capitolise CRC and add a \n to the message
sv_progs.c (both nq and qw):
don't bother checking the progdefs.h crc: it's just not needed any more
pr_imm.c:
use r instead of rep when checking the hash tables.
main.c (quaq):
make developer work and set com_filesize (otherwise, progs crc doesn't
get set properly (com_filesize, not developer:))
2001-07-18 21:28:41 +00:00
Bill Currie
33e506e943
make PR_RunError back up to the preceding source line if debug is availalbe
2001-07-18 20:52:12 +00:00
Bill Currie
5a86b66054
fix a typo
2001-07-18 20:49:57 +00:00
Bill Currie
882de10388
rename Con_CompleteCommandLine to Con_BasicCompleteCommandLine and make it
...
use inputline_t rather than the key_lines junk.
2001-07-18 18:29:38 +00:00
Bill Currie
f70e2e8296
cleanup
2001-07-18 18:22:13 +00:00
Bill Currie
02e021a958
get the progs /loader/ name and prototype sorted out properly
2001-07-18 02:21:57 +00:00
Bill Currie
ffd459c931
allow for total subversion of the fs code by utilities (or crazy users).
...
About the only thing that remains in effect is gzip support (not even paks
are searched).
2001-07-17 22:10:20 +00:00
Bill Currie
159bc6147c
create an "input line" object for the console so Con_ProcessInput can be used
...
in verious contexts
2001-07-17 16:46:51 +00:00
Adam Olsen
e6f846756e
console->pC_Init to general->p_Init, ditto for shutdown. I'm assuming
...
this is what taniwha meant. Shoulda test-built ;)
2001-07-17 00:21:56 +00:00
Bill Currie
a3c6cd8e29
the server console is now a plugin, though it doesn't get compiled yet (it
...
/does/ compiled, though). Input handling is currently ripped out.
2001-07-16 23:15:27 +00:00
Bill Currie
4c515d1bb6
more "throw it in cvs". doesn't even attempt to compile yet :)
2001-07-16 22:30:11 +00:00
Bill Currie
20fdc9b9e5
add the command line completion code (complete.c) and the client and server
...
plugins (though they're not built yet). Again, this /does not/ affect anybody
else, or shouldn't, anyway.
2001-07-16 21:39:50 +00:00
Bill Currie
104701a8c5
the beginnings of the console lib (using plugins for the client/server type
...
consoles). Currently, doesn't affect anybody other than the need to
re-bootstrap.
2001-07-16 20:41:10 +00:00
Bill Currie
0576dec1e2
split up PR_LoadProgs a bit
2001-07-16 07:13:10 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Bill Currie
3ab9ecd828
add this so it doesn't get lost. needs work.
2001-07-15 03:01:34 +00:00
Bill Currie
0cbb0bf396
add pr_source_path to specify where to look for the source files
2001-07-15 02:57:36 +00:00
Bill Currie
2771e6385c
oops, used the wrong function to look up .debug_file
2001-07-15 02:05:29 +00:00
Adam Olsen
ac46e5b49d
oops, sys_dump_core instead of sys_dumpcore
2001-07-15 01:45:03 +00:00
Bill Currie
66c8f00dc7
print out source line numbers when available
2001-07-14 23:53:59 +00:00
Bill Currie
f4976e8133
more const correctness
2001-07-14 23:50:18 +00:00
Bill Currie
d0d32b6a1a
I've really got to start testing with gcc 3.0
2001-07-14 04:12:48 +00:00
Adam Olsen
cb133ddf93
Add support for core dumping to X11 targets. set sys_dump_core to 1, and
...
ulimit -c to a sufficiently high value. (I get ~20 meg cores)
2001-07-14 03:15:14 +00:00
Bill Currie
2818d720c2
move the full info opcocde table from qfcc to gamecode (<KURGON>There can be
...
only one!</KURGON>:) and use the table in PR_PrintStatement. This means that
qfcc now links against libQFgamecode as well as libQFutil
2001-07-14 02:34:16 +00:00
Bill Currie
ecff96258f
cmd.[ch]:
...
api change: Cmd_Args () now takes a parameter inidcating which arg to
start at for grabbing the un-parsed command line
qw/source/sv_ccmds.c:
implement kk's tell command and user name matching (though # is used for
the wildcard and it's still case sensitive)
everything else:
adjust for the new Cmd_Args protype
2001-07-10 18:25:54 +00:00
Bill Currie
9aeef3f3d6
rename qfont_table to sys_char_map and make it global (and constant)
2001-07-10 15:59:25 +00:00
Bill Currie
0242c0352d
break the endian neutral file io out from qendian.c so qfcc can remain
...
independent of libz
2001-07-09 20:56:05 +00:00
Bill Currie
124dff1bd6
rework alias creation/deletion. Aliases are now sorted (like cvars and
...
commands), and the alias name length limit has been removed.
2001-07-06 17:45:32 +00:00
Bill Currie
6cda415f06
slight api change: Hash_Del now returns a pointer to the element deleted, or
...
null if the element was not found, rather than 0 and -1 respectively.
2001-07-06 17:43:47 +00:00
Bill Currie
62a4b86001
d'oh
2001-07-06 00:17:09 +00:00
Bill Currie
245d81420d
make sound blocking cvar controlled (in_snd_block, default off, archived) and
...
pause the cd as well.
2001-07-05 20:35:42 +00:00
Bill Currie
016563e77f
found the snd_pcm_playback_pause function for 0.5
2001-07-05 20:24:41 +00:00
Bill Currie
fc09d2b00f
port Bruce Momjian's patches from newtree with a less incestuous
...
implementation of his sound/focus patch. NOTE: only alsa 0.9 is tested
(Rhamph, can you test 0.5, please?) and only the alsa drivers stop the
hardware right ow.
WARNING!!! you /will/ have to re-install your plugins, or you will get
segfaults when the window gains/loses focus.
How do you tell if a window has focus on first mapping in X11?
2001-07-05 20:18:23 +00:00
Bill Currie
6f022f5d9f
well, that was interesting: turns out mingw provides mprotect and
...
getpagesize :/
2001-07-05 18:47:19 +00:00
Bill Currie
c38ca8e2f1
qfplist.h:
...
remove include of glob.h. not needed and causes win32 build to fail
plugin.c:
include compat.h and cast the return of GetProcAddress
gl_funcs.c:
fix parse error and type mismatch
qfgl_ext.c:
half re-write QFGL_ExtensionAddress to use QFGL_ProcAddress
vid_wgl.c:
fix for the new gl linking
2001-07-05 17:28:19 +00:00
Bill Currie
2e5b3b4a83
damn
2001-07-05 06:31:05 +00:00
Bill Currie
0862c8facd
I'ld love to know how that got though my testing :/
2001-07-05 06:29:53 +00:00
Bill Currie
e5e289e994
this brings back knghtbrd's Sys_Printf redirection, but in such a way that
...
Sys_Printf still has the format attribute. To redirect Sys_Printf, declare the
redrecting function as void (const char *, va_list) and call Sys_SetPrintf
with this function as its parameter.
2001-07-05 04:59:43 +00:00
Bill Currie
b4ac2446a1
Put knghtbrd's sys cleanup changes back in, but with Sys_MakeCodeWriteable
...
in sys/util.c rather than limbo (the crux of the problem that caused the
previous reversal). I'll look into his Sys_Printf changes next.
2001-07-05 03:28:40 +00:00
Bill Currie
e659c2a44f
revert kntbrds recent sys changes as they break sw static builds
2001-07-05 00:12:43 +00:00
Bill Currie
ce3eddb89c
move the node number validation out of RecursiveHullCheck and into the bsp
...
loader
2001-07-04 16:28:54 +00:00
Joseph Carter
eb71edb5d4
taniwha, please have a look at this to make sure I'm doing it the "right"
...
way.. Sys_Printf is now Sys_StdPrintf for now. Sys_Printf is a function
pointer and will end up replacing Con_Printf as well. Names will change
to something intelligent when I'm done. Win32 is not yet touched, but I
haven't forgotten it.
The reason for this is the assumption that Con_Printf and Sys_Printf do
not overlap. The new server console WILL change that, requiring that we
change how we handle both functions. The plan: Default to using stubs
and swap them for full-featured functions on Console init which do all
the things we expect. Will also do a stderr version later.
2001-07-02 18:11:34 +00:00
Joseph Carter
fb8d04eca2
Fix -sgl's glFlush
2001-07-01 00:11:24 +00:00
Joseph Carter
515f449a39
Sun-specific code is dead. Sun boxes should work fine with -x11 and -glx
...
as it is. Left snd_sun, which looks useful for something.
2001-06-29 08:01:12 +00:00
Joseph Carter
11257134c0
dos is dead, really. This has never worked, and would need a full rewrite
...
from scratch before it would anyway. That's not likely, so say goodbye!
2001-06-29 07:56:36 +00:00
Bill Currie
c350bb2b1b
a slight oopsie on the location of WriteFloat and friends :P plus nq is now
...
endian/size clean.
2001-06-29 06:50:29 +00:00
Chris Ison
9bb956b29c
libGL (mesa) now dynamic for -3dfx
2001-06-29 03:27:18 +00:00
Bill Currie
f61ca0e321
fix the persistent fires. For sanity's sake, the non-renderer specific parts
...
of gl_dyn_fires.c have been moved to r_main.c (for now).
2001-06-29 02:43:04 +00:00
Chris Ison
85d2176bb6
make -3dfx compile again, may need fixing for mesa specific functions listed in vid_3dfxsvga.c
2001-06-29 02:10:52 +00:00
Bill Currie
14ce770714
report statment addresses for current statement and branch destinations when
...
printing statements
2001-06-28 23:58:01 +00:00
Bill Currie
443196e66b
very nice command line tab completeion from Shawn Walker
...
<eviltypeguy@qeradiant.com>
2001-06-28 04:05:14 +00:00
Jeff Teunissen
76e28aeaaa
Portability fixes. plugin.c will, in all likelihood, work on Windows now.
2001-06-27 08:34:48 +00:00
Jeff Teunissen
06227cf37d
Portability fixes, also use the new ProcAddress setup.
2001-06-27 07:52:00 +00:00
Jeff Teunissen
aa7389e8b1
*** empty log message ***
2001-06-27 07:40:10 +00:00
Bill Currie
18ba72b544
shh!! :)
2001-06-27 04:18:39 +00:00
Jeff Teunissen
d485ca1fb1
Still broken, but apparently it works for Mercury.
2001-06-26 02:59:37 +00:00
Zephaniah E. Hull
908d265212
Clean up and repair of the run time linking, does NOT work until deek
...
commits his gl_funcs.c.
2001-06-26 02:26:46 +00:00
Bill Currie
3dbc913903
this is C, not C++ ;)
2001-06-25 15:42:05 +00:00
Jeff Teunissen
5e1de4c8a7
Clean up gl_funcs.c, it's actually readable now. Unfortunately, it sig11s
...
for me. This may be due to the NVIDIA libGL problem (which they claim is a
bug in libc), but it could very well be that Mercury was right and we
can't have the same names internally as the libGL names. Even so, this
code will probably work on Windows.
2001-06-25 09:32:08 +00:00
Jeff Teunissen
3fbfa27fcd
Woohoo. The QFGL_* function prefixes are gone again from the tree. It
...
might even work under Windows now, but don't get your hopes too high. :)
2001-06-25 06:17:07 +00:00
Joseph Carter
5184d64134
Fixed for very late OpenGL binding
2001-06-24 12:47:05 +00:00
Zephaniah E. Hull
3715430479
This is changing more then I wanted to at once, however.
...
The major change is that we no longer require libGL to even exist on the
system at compile time for the GL targets, we dynamicly link to the
libGL of choice at run time. (This probably breaks most non-linux
systems, and all GL targets except -glx, some fixup will be needed.)
(This also kills glquake, dead dead DEAD! GONE FOREVER! WHEE!)
Some gl_draw cleanup.
Commented out equake alias model occlusion test stuff, very experimental.
Added the .lo and .la patterns to the .gitignore files.
Some minor sbar cleanup. (We don't use the disc in use symbol for
anything.)
2001-06-24 09:25:55 +00:00
Bill Currie
560b475880
gcc 3.0 compile fixes
2001-06-19 22:05:13 +00:00
Jeff Teunissen
c0915106e3
Even more correctness fixes.
2001-06-19 02:29:41 +00:00
Jeff Teunissen
5111376b46
Correctness fixes, some whitespace.
2001-06-19 02:26:19 +00:00
Jeff Teunissen
118645fd51
Property list updates. Objects of type QFDictionary are now hash tables
...
(and thus have a new simpler PL_ObjectForKey() function to get a value for
a key). Also, you can now call PL_FreeItem() on a plitem_t to free a
property list item and all of its descendants (if it has any).
Binary plist values are still not supported.
2001-06-19 02:10:47 +00:00
Bill Currie
3a94567913
Make Hash_FlushTable loop safe and correct the copyright notices
2001-06-19 02:01:18 +00:00
Bill Currie
dda09dabd9
now compiles under mingw
2001-06-15 16:05:33 +00:00
Bill Currie
8c13809e9c
don't process .S files when not using asm (either --disable-asmopt or non-x86
...
platforms). Done by moving the asm objects into libasm.la (yes, there's one in
each dir that needs it) so that the Makefiles don't explode.
2001-06-14 19:52:38 +00:00
Bill Currie
340e104778
/D'OH/!!! How many /years/ have I been working with linked lists and free?
2001-06-11 22:42:05 +00:00
Bill Currie
dc5846948e
re-enable asm for static builds
2001-06-11 20:59:48 +00:00
Bill Currie
f4969d5d67
add some docs for the hash table api and move the include of stdlib.h to
...
hash.c (no longer needed in hash.h).
2001-06-11 19:37:25 +00:00
Bill Currie
75fbb80b96
make the hash table types opaque
2001-06-11 19:17:40 +00:00
Adam Olsen
9e19da13de
function name cleanup. the sound mixer stuff (snd_dma.c, snd_mix.c, etc) use the SND_ prefix now, and drivers (snd_oss.c) use SNDDMA_ as before.
2001-06-10 15:48:24 +00:00
Adam Olsen
2195a9296c
This thing was so far out of date, there's no point pretending it still exists in current cvs.
2001-06-10 15:01:07 +00:00
Adam Olsen
4486925f11
merge in the now obsolete snd_common.c
2001-06-10 14:25:19 +00:00
Bill Currie
bbc97079e0
pr_comp.h:
...
define PROG_ID_VERSION as 6 and redefine PROG_VERSION as 0x00fff001
(0.fff.001) for the new qc features.
pr_edict.c:
support version 6 and version 0.fff.001 progs
qfcc.h:
add version field to options_t
add min_version field to opcode_t
pr_opcode.c:
set the minumum version of each opcode (gee, that table is getting ugly)
filter out opcodes with too high a min_version when initializing the opcode
hash tables.
qfcc.c:
update help output.
accept --id to limit code generation to id compatable (ver 6) progs.
default progs generation to 0.fff.001
2001-06-09 06:25:33 +00:00
Joseph Carter
22e4ce887f
Include files for gib have been relocated out of include/
2001-06-08 18:46:26 +00:00
Bill Currie
b9f35283f4
make dist fixes + a --disable-asmopt fix for mingw
2001-06-08 02:47:30 +00:00
Bill Currie
62c783f47a
eval_t is no more: too many evil casts involved in using it (which can result
...
it bad code being generated by gcc).
2001-06-08 00:13:06 +00:00
Bill Currie
b2cd7c6c36
refine the test for compiling outb
2001-06-07 23:03:10 +00:00
Bill Currie
3009d0e0c8
fix up some overzelous s///
2001-06-07 22:15:37 +00:00
Bill Currie
521b86f56a
Massive clean up of progs accessors. Just the cleanup of the casts fixed the
...
CustomTF doors issue.
2001-06-07 21:59:24 +00:00
Bill Currie
2fa5437303
correct a comment
2001-06-07 17:11:34 +00:00
Bill Currie
3b2cf03b99
mingw compile fixes (vid_wgl.c isn't the right thing)
2001-06-07 16:44:22 +00:00
Bill Currie
e9c01870b3
provide outb for when not optimising
2001-06-07 16:12:21 +00:00
Bill Currie
ab9e025078
don't build cd or sound libs/plugins when not building clients
2001-06-07 03:37:05 +00:00
Bill Currie
2bc94ea66f
progs.h:
...
add no_exec_limit field. Set to 1 to disable the runaway loop check
for unlimited runs (eg, in qwaq)
pr_exec.c:
don't bother checking the profile counter if pr->no_exec_limit is set
pr_strings.c:
free unreferenced dynamic strings rather than referenced.
2001-06-06 18:10:47 +00:00
Bill Currie
22f465dabe
use field_offset to hide the nastyness
2001-06-06 16:10:28 +00:00
Bill Currie
37661f3cce
allow NUM_FOR_EDICT to work with a null edict no matter what (hopefully not a
...
bad thing)
2001-06-06 00:38:05 +00:00
Bill Currie
ce014fc5c7
use memcpy instead of ugly casts to transfer locals
2001-06-05 23:57:51 +00:00
Bill Currie
735a35b2f9
compile fixes from Artur Frysiak <wiget@pld.org.pl>
2001-06-05 17:23:03 +00:00
Joseph Carter
4a0d453b48
The gfx.wad error is now idiotproof!
2001-06-05 08:39:27 +00:00
Bill Currie
e339e82c01
hash.h is now const correct as is a lot of qfcc
2001-06-04 04:52:14 +00:00
Bill Currie
275e74161b
string comparison operators
2001-06-04 03:36:35 +00:00
Bill Currie
09118bc01e
pr_comp.h:
...
add OP_ADD_S. WARNING!!! this /will/ move.
progs.h:
add prototype for PR_PrintStatement
pr_edict.c:
add OP_ADD_S support in the progs checker
pr_exec.c:
implement OP_ADD_S
tools/qfcc/include/.gitignore:
add config.h.in
qfcc.h:
nuke PR_NameImmediate and change PR_ParseImmediate's prototype (see
pr_imm.c)
pr_comp.c:
add ADD_S, adjust for PR_ParseImmediate's prototype, make
PR_ParseExpression work with non-sequential opcodes (slow, will work on
that next). Fix up initialised global parsing.
pr_imm.c:
nuke PR_NameImmediate. didn't work well and wasn't such a good idea anyway.
PR_ParseImmediate now accepts a def_t * arg. if null, will allocate a
new global def, otherwise it will initialize the def passed in.
qwaq/main.c:
sports some debugging code (dumps info about the progs it's running)
qwaq/main.qc:
better ADD_S testing
2001-06-03 17:36:49 +00:00
Chris Ison
0ca5fc0c67
just some tidy up, thanx Deek
2001-06-03 12:15:06 +00:00
Adam Olsen
f7f6c460ce
change void to static void, so it compiles for me
2001-06-03 05:58:01 +00:00
Adam Olsen
d4df66570f
Add ED_FreeRefs, which searches for references to an entity. Not used yet.
2001-06-03 05:54:43 +00:00
Zephaniah E. Hull
380dcf5c9b
Some gl_draw cleanups for glpic.
...
Some sbar cleanups (still broken, suspect driver issues.).
Removal of pmodel and emodel infokeys, waste of info space.
For servers allow people downloading to hear people talking.
2001-06-02 20:39:54 +00:00
Chris Ison
3f47a8d0a7
-3dfx brightness changed int to float
2001-06-02 11:17:08 +00:00
Chris Ison
903482c923
-3dfx brightness +setrom tdfx_brighten #, 2 with gamma 2 is nice
2001-06-02 10:43:38 +00:00
Ragnvald Maartmann-Moe IV
4826c5dd0f
Change shm init to PROT_WRITE, instead of PROT_READ | PROT_WRITE.
...
This is required for mmap to succeed on my system. YMMV.
May cause a problem with incomplete shutdown.
2001-06-02 06:51:58 +00:00
Bill Currie
88d536933f
move the creation of the cd command to cd.c
2001-06-02 04:36:42 +00:00
Ragnvald Maartmann-Moe IV
85333a9f96
Convert cd audio libs to plugins. Windows untested, dos and sgi not converted yet.
2001-06-01 22:55:33 +00:00
Bill Currie
e699f6e888
if progsname is null, assume the progs are already loaded and just process
...
the data.
2001-06-01 21:14:50 +00:00
Bill Currie
7ad0f7ed2b
various compile fixes for mingw.
2001-06-01 00:39:31 +00:00
Adam Olsen
a187032ebf
add #include "QF/cvar.h" for snd_alsa_0_5.c
2001-06-01 00:12:25 +00:00
Bill Currie
06064ec390
compat.h:
...
create a field_offset macro that takes a structure type and a field and
returns the offset of the field within the structure
everything else:
use field_offset to calculate the size of variable sized structs
2001-05-31 18:11:05 +00:00
Chris Ison
ced128e572
fixed #includes in vid_3dfxsvga.c
2001-05-31 11:41:22 +00:00
Bill Currie
828019505e
/me mutters something about old installed headers and search paths
2001-05-31 05:40:25 +00:00
Bill Currie
323015b11a
include/QF header cleanup. including config.h (or any file from include) is
...
a nono because headers in include/QF get installed, but include don't and thus
would break quakeforge-dev.
2001-05-31 05:33:13 +00:00
Bill Currie
6bf58ab1af
no header includes cvar.h now
2001-05-31 03:41:35 +00:00
Bill Currie
940598f240
merge pcx.c, tga.c and wad.c. util seemed the most logical place, but LoadPCX
...
had to be modified to get away from vid.h (better designe now IMO anyway)
2001-05-30 20:56:53 +00:00
Joseph Carter
05adfd0e53
quakefs.h -> vfs.h
...
quakeio.h -> vfile.h
More diff reduction between trunk and my VFS code. Also took the time to
put some headers in order and fix a few #include's pointed out by moving
things around a bit.
2001-05-30 04:34:06 +00:00
Joseph Carter
186d577818
s/QFile/VFile/g - makes my diffs much smaller and more manageable for the
...
VFS work.
2001-05-30 03:21:19 +00:00
Bill Currie
47d95d245a
protect the cvar callback and description fields from being modified once
...
they have been set to non-defaults.
2001-05-30 02:41:30 +00:00
Bill Currie
f988572c4d
lighthalf and gl_lightmode, meet Mr. Chainsaw, he will be your playmate today.
2001-05-29 21:59:02 +00:00
Bill Currie
18fd21da77
merge the particle system
2001-05-29 19:58:35 +00:00
Bill Currie
f0cfc46cb7
model.h:
...
add a crc field to aliashdr_t
model_alias.c:
set it for all models
cl_parse.c:
set the pmodel and emodel info keys to the crcs of the player and eye
models
2001-05-29 17:37:48 +00:00
Bill Currie
5514f4870e
--with-plugin-path now controls where plugins are installed, not just where
...
to look for them.
2001-05-28 19:30:32 +00:00
Bill Currie
4c5b977902
move cl_math.S into renderer/sw/transform.S (never before realised it was
...
part of the renderer)
2001-05-26 03:33:09 +00:00
Bill Currie
48278f3a46
fix the spaces in the header
2001-05-25 20:48:51 +00:00
Chris Ison
14fc2d0b6c
added GPL comments and fixed missing include in gib_modules.c
2001-05-25 20:31:47 +00:00
Bill Currie
271b400318
finally got pic working. getting the address of a variable using pic seems
...
to be not so straight forward :/ Anyway, one down, 11 to go.
2001-05-25 20:17:22 +00:00
Bill Currie
f1730d7870
Move VID_ShiftPalette from all the driver files to vid_common_sw.c
...
Do the palette gamma correction inside VID_UpdateGamma (fixes sw palette gamma)
2001-05-25 16:42:49 +00:00
Joseph Carter
c5735d2f19
A little sanity in gib's header deps. Not much granted, but it's there.
2001-05-25 16:09:14 +00:00
Bill Currie
1038f88a64
disable asm in the software renderer for now. This will allow me to fix the
...
files one at a time and allow others to use software independent of asm usage
(even if a little slowly (~14% slower on my dual c450)).
2001-05-25 14:57:31 +00:00
Bill Currie
4b3e056429
fix silly typo
2001-05-25 04:06:51 +00:00
Bill Currie
a87c4bbd93
vid.c:
...
Don't bother checking vid_gamma for CVAR_ROM becuase it is impossible to
get to VID_UpdateGamma when it is set except for when the cvar is
initially created, and we /want/ the code to execute in that case.
vid.h:
add initialized to viddef_t
vid_common_gl.c:
actually /use/ gammatable (it tends to help)
vid_*.c:
clean up rendundant decls of gammatable, vid_initialized (now
vid.initialized) and make sure vid.initialized gets set.
gl_view.c:
remove gammatable decls
2001-05-25 04:03:47 +00:00
Bill Currie
991ee5090d
remove the last vestiges of VID_Gamma_f
2001-05-25 02:44:05 +00:00
Chris Ison
48ae5d5a44
fixed vid_gamma not working in 3dfx
2001-05-25 02:26:30 +00:00
Bill Currie
f83b9be0ba
remove redundant vid_gamma_avail decls
2001-05-24 23:49:28 +00:00
Bill Currie
bc8ae8fd37
whitespace
2001-05-24 20:11:34 +00:00
Bill Currie
3c18b50d9c
fixes for compiling without assembler
2001-05-24 20:04:39 +00:00
Bill Currie
73e6e1684f
FINALLY, the nq and qw renderers are merged. the view and particle subsystems
...
are not yet merged due to their dependence on the client, but that will come
soon.
2001-05-24 19:22:35 +00:00
Ragnvald Maartmann-Moe IV
964ec6425d
whitespace and comment cleanup.
2001-05-24 17:00:08 +00:00
Bill Currie
f21ad90ba4
total nukage of brighten, brightness and contrast.
2001-05-24 16:30:25 +00:00
Bill Currie
a3518d44ed
Nuke V_CheckGamma, moving its sole contribution to VID_UpdateGamma in vid.c
2001-05-24 15:48:39 +00:00
Bill Currie
fa6dd2a9f3
now works with autoconf 2.50
2001-05-23 03:01:03 +00:00
Ragnvald Maartmann-Moe IV
a83c3d3af5
Cleanups.
2001-05-22 20:34:03 +00:00
Bill Currie
e48307656a
fix for when building server only
2001-05-22 20:17:20 +00:00
Bill Currie
a8e1da5d99
make dist and compile fixes for mingw cross building
2001-05-22 19:13:23 +00:00
Bill Currie
c500fd7479
make dist fixups
2001-05-22 17:09:03 +00:00
Adam Olsen
abd7d79d6b
two little bugfixes :)
2001-05-22 15:11:54 +00:00
Zephaniah E. Hull
b264cdd28b
Make it actually work?
2001-05-22 12:44:53 +00:00
Ragnvald Maartmann-Moe IV
e7f25dc731
whitespace
2001-05-22 12:31:43 +00:00
Zephaniah E. Hull
5245f56012
Validate userinfo strings on connect. (Part of a nasty DOS fix.)
2001-05-22 12:00:45 +00:00
Jeff Teunissen
62f57f5f2a
Require vid_gamma_avail for gamma switching, not vidmode_avail
2001-05-22 06:14:57 +00:00
Jeff Teunissen
79bee4f773
GL_CheckBrightness() is redundant, don't call it
2001-05-22 06:13:44 +00:00
Adam Olsen
f732cd7932
move x_gamma and vidmode_avail definitions into #ifdef HAVE_VIDMODE.
...
patch from that kimpornqueen person :)
2001-05-22 05:24:05 +00:00
Bill Currie
a79ab3faf8
abandon the oss write only attempts.
2001-05-21 17:40:12 +00:00
Bill Currie
f38a233786
make snd_oss_rw affect the rest of the places it needs to
2001-05-21 01:12:07 +00:00
Ragnvald Maartmann-Moe IV
a140bd1d13
Whitespace. *grmbl*
2001-05-20 20:52:27 +00:00
Jeff Teunissen
2fa09aa68a
Restore hardware gamma on exit.
2001-05-20 00:56:09 +00:00
Jeff Teunissen
5569f04a88
whitespace
2001-05-19 23:24:57 +00:00
Bill Currie
5432983038
ignore generated files
2001-05-19 21:46:02 +00:00
Adam Olsen
aef4cd6da7
do shm = 0 after SNDDMA_Shutdown is called
2001-05-19 08:53:08 +00:00
Bill Currie
5fb17e384b
fix the installation location of the plugins
2001-05-19 04:38:03 +00:00
Bill Currie
1e84684f27
fix the alsa plugin building
2001-05-19 02:09:59 +00:00
Adam Olsen
9cc30959e4
Sound now uses runtime plugins. Much thanks to Deek for doing all the
...
thinking :)
set fs_pluginpath to point to the right dir, and set snd_plugin to pick a sound
plugin.
Current issues:
- alsa 0.5 won't build properly, dunno why
- segfault on exit. I think I know the cause of this, and how to fix it
- alsa 0.9, gus, sgi, sun, and win32 havn't been tested
2001-05-19 00:05:35 +00:00
Bill Currie
3e2a92af1c
allow the mouse to be freed when vid_fullscreen changes from 1 to 0
2001-05-18 17:11:30 +00:00
Adam Olsen
2e11cbb8a4
some sdl audio tweaks that made it work with artsc output
...
thought I commited these before.. (where have we heard that before?) ;)
2001-05-17 23:21:26 +00:00
Bill Currie
eb95bcae84
move the gib language out of nq and into its own dir (hehe, libQFgib:)
2001-05-17 21:45:56 +00:00
Bill Currie
4cd29c2ff8
don't go fullscreen when already fullcreen
2001-05-17 20:57:29 +00:00
Bill Currie
306d6db39b
if ... if -> if ... else if
2001-05-17 20:05:36 +00:00
Adam Olsen
c21f9d614a
removed "in thinger" :)
2001-05-17 10:08:00 +00:00
Bill Currie
749270a52a
vid_fullscreen toggling thanks to james411
2001-05-17 09:56:43 +00:00
Bill Currie
9bea21a930
first stab at doing vid_mode the right way, thanks to james111
...
(James Andariese - james@ja.ath.cx ) doesn't quite work properly for all
window managers, but NICE :)
2001-05-17 06:55:47 +00:00
Bill Currie
4606c6c63a
new automake conditionals: BUILD_GL and BUILD_SW for use in places where it
...
matters (eg, selecting whether to build the gl and or sw specific model code)
2001-05-17 03:48:31 +00:00
Bill Currie
d16dc87dfa
fix oss' device openning mode. defaults to write only, but read/write can be
...
selected by setting snd_oss_rw (need better name?) to non-zero
2001-05-16 18:59:31 +00:00
Bill Currie
8f4394de4f
various merge cleanups including moving the contents of R_Textures_Init into
...
Mod_Init
2001-05-16 17:08:56 +00:00
Bill Currie
879a133c19
forward port the x11 repeat fix
2001-05-14 05:37:47 +00:00
Bill Currie
44317f299e
merge gl_mesh.c into libQFmodels
2001-05-11 05:59:17 +00:00
Bill Currie
f5016790d4
forgot to compile test first :/
2001-05-10 15:34:29 +00:00
Bill Currie
d3d3a1c451
finish the model merge
2001-05-10 15:29:29 +00:00
Bill Currie
e12879c55b
fixup dependency checking
2001-05-10 06:05:54 +00:00
Bill Currie
2c07108c65
model loading code merge. dragged in smoe merges and cleanups of d_iface.h,
...
r_local.h, r_shared.h, client.h and render.h at the same time (couldn't get
away from that:/) verly likely to be lots of breakage (eg, player and eye
models are NOT checksummed atm), but everything builds
2001-05-10 06:01:11 +00:00
Bill Currie
e118a9136a
forgot these :P
2001-05-08 20:57:07 +00:00
Bill Currie
b5df1c816a
move fnmatch.c and dirent.c to libQFutil
2001-05-08 20:53:25 +00:00
Ragnvald Maartmann-Moe IV
b10ea42970
Update alsa support for most recent API changes. Old version temporarily left in as comments.
2001-05-08 17:16:49 +00:00
Bill Currie
330ff44eef
fix for older systems again :) (atleast means >= rather than > )
2001-05-07 16:31:19 +00:00
Bill Currie
cc68e1a12e
qf now links with NO optimisation (not even -O). R_CullBox has been moved from
...
glquake.h to mathlib.h (along with the declaration for frustum) and the
extern inline keyworws protected by an ifndef so that mathlib.c can cause
R_CullBox to be compiled publicly. The definition of frustrum has been moved
from its verious locations into mathlib.c.
2001-05-07 04:08:34 +00:00
Zephaniah E. Hull
8e40444434
Compile fix for the Debian sid SDL version compile.
2001-05-02 08:52:20 +00:00
Adam Olsen
0dee26397c
Make sdl audio work. And despite claims, it's not actually bad
...
(except for esd, but that's not sdl's fault).
I havn't tested it with other hardware or different config variables,
and I've experienced the occasional hang or segfault on exit, so
feedback is very welcome. :)
2001-04-27 07:41:47 +00:00
Bill Currie
58afc88122
link libQFutil.so against libdl
2001-04-25 20:53:09 +00:00
Jeff Teunissen
c364e1c3cf
The first version of the QF Plugin API. Version 1.0 supports input and
...
sound (digital audio, that is, not CD) plugins right now, more to come
later.
2001-04-24 22:19:42 +00:00
Bill Currie
0b117b7133
*sigh*, well, it turns out that even id's qc is borked when it comes to
...
unallocated entities, so make 0xdeadbeef optional (pr_deadbeef 1 to turn it
on).
2001-04-22 04:58:33 +00:00
Bill Currie
4be4e5ccf6
clear not-yet allocated entities to 0xdeadbeef
2001-04-20 17:51:57 +00:00
Bill Currie
1b972cb132
clear freed entities to 0xdeadbeaf instead of 0
2001-04-19 22:42:01 +00:00
Bill Currie
00e510b96e
--without-clients no longer builds client only libs
2001-04-18 18:04:22 +00:00
Bill Currie
527471a7de
*-wgl finally links (who knows if it works?:) and some more conceptual
...
cleanup
2001-04-17 15:55:33 +00:00
Adam Olsen
853fbb4242
Change commented out Con_Printf statements in Cache_Move into
...
Con_DPrintf statements, so they can be used in debugging without
recompiling. And no, there's no performance issue.
2001-04-17 08:39:44 +00:00
Bill Currie
dbca31519f
qw-client-wgl and nq-wgl get to (but fail) the link stage
2001-04-17 06:55:50 +00:00
Bill Currie
1dcaf3bb3f
fix the black pit of despair (sorry, Despair:) (same issue as vid_fbdev)
2001-04-17 06:21:40 +00:00
Bill Currie
0f98db9e5a
missed this one
2001-04-17 06:14:08 +00:00
Bill Currie
f5c01925d4
d_8to16table moved to vid_common_sw.c and fix vid_fbdev blackness (must call
...
VID_InitGamma before VID_SetPalette)
2001-04-17 06:13:51 +00:00
Chris Ison
4b19a1967d
fixed no mouse movement in in_svgalib.c
2001-04-17 06:05:30 +00:00
Chris Ison
ba1408d56d
fixed seg cause of uninitialized cvar in_freelook. Also remove double initialization of sensitivity and lookstrafe
2001-04-17 03:08:52 +00:00
Bill Currie
3e484da3b8
-x11 now works (qw, anyway)
2001-04-16 19:25:55 +00:00
Bill Currie
b5344adab4
fix "make install". the problem was caused by automake getting confused and
...
thinking the video libs were convenience libs because they weren't mentioned
directly on the lib_LTLIBRARIES line. Until automake is made a little smarter,
force the libs to be built properly.
2001-04-16 16:11:45 +00:00
Bill Currie
df386f31f9
compile fixes for older systems
2001-04-16 15:57:43 +00:00
Bill Currie
065649e488
rework VID_InitBuffers to use callback to init the draw buffers.
...
Unfortunatly, this means that VID_InitBuffers needs to be called twice during
startup (once in VID_Init, and once in D_Init).
2001-04-16 09:12:21 +00:00
Bill Currie
f9c9e4fba7
everything except *-3dfx (unknown status) now builds
2001-04-16 03:55:44 +00:00
Bill Currie
0b5b3b03a4
move GL_CheckBrightness into vid_common_gl.c
2001-04-15 21:19:05 +00:00
Bill Currie
6fcf8395ca
FBDEV GLX SVGAlib X11 all build, but nq-glx doesn't link yet due to some
...
changes between nq and qw (gl_mtexable, texture_mode and GL_CheckBrightness)
2001-04-15 21:11:41 +00:00
Bill Currie
36cbe70826
vid libs build but probably don't work yet (I KNOW x11 doesn't) lots of
...
build failures in the main source still
2001-04-15 08:04:15 +00:00
Bill Currie
7e67fd56f3
getting closer to building the vid libs.
...
in_common.c is the main input interface. in_x11 has been modified suitably
2001-04-15 07:18:04 +00:00
Ragnvald Maartmann-Moe IV
a4db2f0e5b
Damn the moles.
2001-04-15 06:43:11 +00:00
Bill Currie
ad8831fdb0
correct the vid target selection logic
2001-04-15 06:29:57 +00:00
Ragnvald Maartmann-Moe IV
6c65be497e
Hopefully fix attempts to compile video libs that aren't possible.
2001-04-15 06:04:02 +00:00
Ragnvald Maartmann-Moe IV
778f0c129c
Finish move of vid.c to libs, kill a few stragglers.
2001-04-15 05:36:56 +00:00
Bill Currie
5a80ce90f5
fix the -Wno-error issue and vid_fbdev.c is a little closer to compiling
2001-04-15 05:04:03 +00:00
Bill Currie
9d8c1d33c0
these are generated, so aren't needed in cvs
2001-04-15 04:36:27 +00:00
Ragnvald Maartmann-Moe IV
66fafd3e0e
First stage of video and input system merge. The city has collapsed, wreckage sifting ensues...
2001-04-15 04:18:22 +00:00
Bill Currie
c0507f5610
update for the lastest alsa pcm mmap api. not as bad as at first appearance
2001-04-14 02:30:30 +00:00
Bill Currie
475a0b0d4a
must not call snd_pcm_mmap_forward with a count of 0
...
this fixes the alsa assert at slower rates
2001-04-13 08:08:41 +00:00