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
Bill Currie
f37b007da2
nuke the memset in Hunk_HighAllocName
2001-04-12 23:39:23 +00:00
Bill Currie
6b3b94bafc
sound crashing bug fixes
...
snd_dma.c, {nq,qw}/source/cl_parse.c:
change the type of snd_worldmodel from * to ** and init snd_worldmodel
with the ADDRESS of cl.worldmodel so its changes get seen by snd_dma
snd_mixa.S:
picize
2001-04-12 06:53:07 +00:00
Bill Currie
f7d9c1e8fc
joy_win.c now builds, but very likely does not work AT ALL. also fix qw's
...
in_win.c for the new input api
2001-04-11 21:06:37 +00:00
Bill Currie
b025bb32e1
first steps
2001-04-11 19:56:01 +00:00
Bill Currie
99fd4ab464
libs/video/targets/Makefile.am:
...
out-of-tree compile fixes
nq/source/Makefile.am:
missed the -lqfsys
2001-04-11 16:47:08 +00:00
Bill Currie
ebb7b6310a
view.h:
...
it seems somebody forgot to commit this. just compied direct from qw
libs/video/targets/.gitignore:
better ignore rules
nq/source/Makefile.am:
libqfsys.a is dead :)
the rest:
gamma compile fixes
2001-04-11 16:19:08 +00:00
Ragnvald Maartmann-Moe IV
f789b61c56
Merged joystick code. Great deal of cleanup in input, reduced bizarre overuse of protocol.h...
...
Maimed joy_win.c, very likely to get odd behavior there, even if it compiles.
2001-04-11 07:57:08 +00:00
Bill Currie
4ae2ad2949
qw-client-wgl now builds (nq-wgl next)
2001-04-11 05:10:42 +00:00
Bill Currie
12c14bd71f
split up console like sys was
2001-04-11 05:10:04 +00:00
Bill Currie
fa936b1713
back out rhamph's premature commit
2001-04-11 04:17:55 +00:00
Bill Currie
09271f061a
somehow missed this earlier
2001-04-11 03:55:48 +00:00
Adam Olsen
c45a4d2550
fix harmless cut&paste error
2001-04-11 03:22:52 +00:00
Bill Currie
f36fa31ba2
build snd_mixa.S at all times. it does the right thing when no intel asm is
...
wanted.
2001-04-11 03:16:01 +00:00
Bill Currie
9cd83e178f
various fixes for out-of-srcdir building
...
configure.in:
foo/Makefile MUST come before foo/bar/Makefile or foo/bar will NOT be
created.
libs/*...*/Mkaefile.am: add INCLUDES so $(top_scrdir)/include gets searched
{qw,nq}/source/Makefile.am: fix fbset compiling (and cleaning for nq)
2001-04-11 03:09:24 +00:00
Adam Olsen
0f98bc01be
Forgot to edit the comments :)
2001-04-11 02:42:53 +00:00
Adam Olsen
320bd35f1e
Move common variables in snd_dma.c and snd_null.c into snd_common.c
2001-04-11 02:41:12 +00:00
Adam Olsen
2b4d8ecc97
Remove some extra files linked in with snd_null.c
2001-04-11 01:17:08 +00:00
Joseph Carter
75aa40276f
A few more. Also removed a couple inaccurate comments.
2001-04-11 00:10:19 +00:00
Joseph Carter
2bc55b7828
Cvar cleanups.. NULL is now used in place of 0 for callbacks, this should
...
make Cvar_Get's a lot easier to read.
2001-04-10 23:39:30 +00:00
Adam Olsen
b89fde285d
Make snd_null.c actually work.
...
add --disable-sound to configure, for no sound at all :)
2001-04-10 23:18:08 +00:00
Bill Currie
7f5d4cd7e9
clients now build (sdl, sgl, wgl), but don't link yet
2001-04-10 22:09:41 +00:00
Bill Currie
8e2d89c4c2
fix up a mis-understanding about api headers
...
*taniwha larts himself for not explaining things to Despair
2001-04-10 21:45:42 +00:00
Bill Currie
082c5ccae4
get qw-server to link in mingw
2001-04-10 21:43:57 +00:00
Bill Currie
e9fb7576da
oops, missed with the #ifdef
2001-04-10 20:15:52 +00:00
Ragnvald Maartmann-Moe IV
cbb4af711c
Remove duplicate sound.h, move some things down from include/QF to include.
...
Prepare for joystick merge...
2001-04-10 20:15:18 +00:00
Bill Currie
334b528a40
forgot some bits
2001-04-10 20:11:50 +00:00
Bill Currie
dfbfd9463c
mingw cross compile fixes. qw-server (only, so far) compiles but does not
...
yet link due to Sys_Error :/
2001-04-10 20:07:11 +00:00
Adam Olsen
5ebe111301
Probably want this :)
2001-04-10 09:53:00 +00:00
Adam Olsen
69022c7ffb
Move sound targets into a library. Still doesn't pick one at runtime though.
2001-04-10 09:40:09 +00:00
Joseph Carter
27d177f978
The cdrom code now uses strequal where appropriate. Also, playing track 0
...
now stops the CD from playing. CD track 0 is used this way already, even
by the Id-licensed mission packs.
2001-04-10 07:26:22 +00:00
Joseph Carter
b7a4c80b94
New Cvar in Linux: mus_cddevice, default is /dev/cdrom. Set it to none if
...
you don't want CD music. Can be changed in-game, in which case it will
stop the current CD if one is playing before changing devices. Note that
this is a blocking operation, don't do it in the heat of battle.
2001-04-10 05:41:21 +00:00
Adam Olsen
ed0b391dfb
Tweaked some comment indentation that made me itch ;)
2001-04-10 02:36:50 +00:00
Bill Currie
e2935cecb6
add .gitignore
2001-04-09 23:46:52 +00:00
Ragnvald Maartmann-Moe IV
d7eb585502
Merge cd. Doesn't dlopen different cd drivers or anything exciting... Yet.
2001-04-09 21:15:09 +00:00
Zephaniah E. Hull
a16b2c0070
Borrowed LH's VectorVectors.
...
Changed smoke trails a good bit.
2001-04-06 18:37:23 +00:00
Bill Currie
67368ffc5d
make the start calculation a little more accurate
2001-04-01 03:30:17 +00:00
Bill Currie
ccbae9bd5c
do Sys_Error the same way Con_Printf was done
2001-04-01 02:08:38 +00:00
Zephaniah E. Hull
8ef747124c
Fixed the weak Con_Print issue.
...
(Still need to thwap taniwha for doing an incomplete merge.)
2001-03-31 14:41:13 +00:00
Bill Currie
7cb6245efa
link libQFutil.so against libz so the clients (and tools) don't need to worry
...
about it
2001-03-31 03:51:25 +00:00
Bill Currie
e939ccc40a
cvars now sport a callback function that gets called whenever the cvar changes
...
or on initial get.
2001-03-31 01:02:52 +00:00
Bill Currie
4162243287
eliminate Cmd_ForwardToServer from cmd.c. Cmd_ForwardToServer still needs to
...
be removed from cmd.h, but that can wait a bit.
2001-03-31 00:35:08 +00:00
Bill Currie
ad9142ff3c
move Con_Printf, Con_DPrintf and Con_Print (weak) into libs/util/console.c.
...
Except for the cmd and cvar callbacks, libQFutil.so is now standalone.
2001-03-31 00:08:21 +00:00
Bill Currie
1e2e2f44c3
move the developer cvar into cvar.c
2001-03-30 23:35:48 +00:00
Bill Currie
99535102d7
bare bones sys stuff moved into libQFutil. unix stuff seems to work just fine,
...
but win32 is probably borked atm
2001-03-30 23:24:57 +00:00
Bill Currie
4f2e22bfb8
merge and move quakefs.c into libQFutil where it belongs. at long last
2001-03-30 00:44:35 +00:00
Bill Currie
80ee9eb8d1
merge and move quakeio.c into libQFutil
2001-03-29 21:16:16 +00:00
Bill Currie
95d116eac0
make makt.S pic friendly. The ELF abi is bent slightly as ebx was already used
...
and I didn't feel like subbing it for something else, so esi is the GOT access
register.
2001-03-29 09:10:35 +00:00
Jeff Teunissen
277c17cfd8
Shared library support. The util and gamecode libraries are now shared,
...
and this clears the way for an external API for utilities and
such. And yes, this means libtool is now used.
2001-03-29 09:07:44 +00:00
Bill Currie
cb5c262ffc
qtypes.h:
...
remove includes of qdefs.h and compat.h
pr_comp.h:
merge pr_comp.h from quake and qfcc, removing the copy in qfcc
cmdlib.[ch]:
nuke the endian code.
qendian.c:
initialise the LittleLong etc pointers at compile time rather than run
time
com.c (both nq and qw):
nuke the LittleLong etc init code
everything else:
fix up after the qtypes.h cleanup
2001-03-28 17:17:56 +00:00