Ragnvald Maartmann-Moe IV
a9c61bb6bf
Updated for OpenGL 1.4, plus whitespace.
2003-02-25 05:45:11 +00:00
Bill Currie
93834f2694
better source line tracking
2003-02-24 16:01:52 +00:00
Bill Currie
38d5c8c41a
better line search algorithm (not perfect yet, though)
2003-02-24 03:34:11 +00:00
Bill Currie
5c3892cbb2
make sure the string is valid before attempting to print it
2003-02-24 03:07:26 +00:00
Brian Koropoff
71a4ff6379
Use floor() or ceil() based on sign for 'trunc' GIB math function.
2003-02-23 22:53:36 +00:00
Brian Koropoff
6141bc35d0
Removed the 'random' GIB builtin and replaced it with the rand() math
...
function in the math evaluator. Added the trunc() math function as well.
2003-02-23 22:14:07 +00:00
Brian Koropoff
36774a612d
Use atof when checking truth values.
2003-02-23 21:14:33 +00:00
Ragnvald Maartmann-Moe IV
d9ed34a5fb
More video mode selection robustness improvements.
2003-02-23 20:21:06 +00:00
Ragnvald Maartmann-Moe IV
59c4290563
Fix handling of all non-RLE-compressed tga formats we supposedly support. Now
...
we work even if the first pixel isn't in lower left. ;)
Handling the RLE-compressed oddball cases would require a lot more code
duplication, will brute force that later if nobody beats me to it with a clean
solution.
2003-02-23 17:39:23 +00:00
Bill Currie
c026e61d22
make LittleLong and co defines rather than function pointers
2003-02-22 23:23:16 +00:00
Brian Koropoff
5acf0bbeda
Fixed a bug in the 'contains' GIB builtin and added more to the GIB docs.
2003-02-22 07:19:51 +00:00
Bill Currie
72e5221f06
minor debugging tweaks
2003-02-21 15:09:02 +00:00
Bill Currie
152538bf90
zap the Cmd_Return stuff as that's dead and burried
2003-02-20 20:33:03 +00:00
Bill Currie
bb5f5e0a0c
fix a couple of gcc 2.95 warnings
2003-02-19 21:41:37 +00:00
Ragnvald Maartmann-Moe IV
e3ea39e67b
QuakeForge now supports map specific textures in textures/mapname/
.
2003-02-19 17:41:16 +00:00
Bill Currie
d93fceea38
fix a snafu in SVC_DirectConnect related to info strings, make
...
Info_ParseString take (and pass on to Info_SetValueForStarKey) a flags arg
and simplify the flags handing in Info_SetValueForStarKey.
2003-02-19 17:39:21 +00:00
Bill Currie
b6a3bc8d1c
try to give line numbers in the traceback
2003-02-19 06:26:49 +00:00
Brian Koropoff
a9fa6c06d5
Remove some stupid hacks so that negation works again.
2003-02-17 20:33:56 +00:00
Brian Koropoff
00d71f13f6
Make %var expansion actually work.
2003-02-17 08:55:40 +00:00
Brian Koropoff
7eb2e42a3c
Made QFS_NextFilename use Qexpand_squiggle on fs_userpath so screenshots
...
are saved to sequential filenames correctly. This might be temporary if
taniwha has a better way of handling squiggle expansion in QFS in mind.
2003-02-16 22:43:06 +00:00
Brian Koropoff
f6da3baa1e
Temporarily fixed GIB filesystem access until I can work out a system that
...
better meshes with the new QFS. Fixed up some GIB scripts a bit.
2003-02-16 21:27:18 +00:00
Brian Koropoff
760210dc7b
GIB: Many bugfixes and cleanups. Added bitwise math operations, expansion
...
of leaf names in a stem variable via %var, the builtin functions 'count'
and 'contains', and an initial interface between qw-server and GIB to allow
querying of clients and their info strings. Also cleaned up the chat event
interface a bit. Renamed a few builtins.
2003-02-16 19:46:34 +00:00
Brian Koropoff
af520a373a
More cleanups and bug fixes. Added stem-and-leaf variables back in and
...
added the global::delete builtin.
2003-02-16 02:44:24 +00:00
Brian Koropoff
fc37941ca5
Tidied up some Sys_Printf()s that indent mangled.
2003-02-15 02:27:25 +00:00
Bill Currie
c91137e4db
run gib through indent
2003-02-14 22:42:11 +00:00
Bill Currie
851d203916
work towards a more secure qfs
2003-02-14 22:36:10 +00:00
Bill Currie
68d2167c9e
fix a sequence point issue that could cause index to be put on the stack
...
before being initialized
2003-02-14 20:36:15 +00:00
Bill Currie
6a687f5e45
rename all the globals in quakefs.[ch] to be QFS_* or qfs_*
2003-02-14 19:46:07 +00:00
Bill Currie
fd7636137d
implement a proper (and optionally secure) QFile interace for ruamoko.
2003-02-14 18:17:17 +00:00
Brian Koropoff
3c522a83bc
Various cleanups and bugfixes. Added proper line number reporting to
...
errors. A few new builtin functions, such as slice::find and thread::list.
2003-02-14 08:06:01 +00:00
Ragnvald Maartmann-Moe IV
a34980eda5
Fix easter_egg toggling.
2003-02-14 00:58:22 +00:00
Ragnvald Maartmann-Moe IV
6d6fade23a
Change mach64 test to only happen at particle system inits, rather than testing for every individual particle injection.
...
Mach64 now gets id particle effects. Disabling the majority of effects isn't the best method, IMO.
2003-02-13 21:48:28 +00:00
Ragnvald Maartmann-Moe IV
646f875a34
Add return value checking for in_grab. Also some dead code removal, dangling comment and white space cleanup.
2003-02-13 19:03:48 +00:00
Bill Currie
53d3252792
don't adjust the system gamma unless the window has focus. also quench an
...
internal warning (the event system can't handle shm events (doesn't seem to
need to anyway)).
2003-02-13 18:24:30 +00:00
Ragnvald Maartmann-Moe IV
af33733ce4
More x86-64 (AMD, not intel IA64, taniwha!) fixes.
...
Compile problems pointed out by Mike A. Harris. Thanks!
2003-02-12 23:41:20 +00:00
Bill Currie
aaa6c2a2b0
fix some warnings picked up by ia-64
2003-02-12 23:29:16 +00:00
Bill Currie
1051b8c748
missed a net.h -> netmain.h
2003-02-12 20:08:55 +00:00
Bill Currie
21d8b4f8dc
link in hw, move the qw and nq networking code into libs/net and make
...
hw-master use libnetchan. there are evil include hacks that will need to be
taken care of in net*.[ch]
2003-02-11 22:48:57 +00:00
Bill Currie
4bd1718475
re-arrange viewsize handling to fix the hud bug in glx
2003-02-11 21:24:27 +00:00
Bill Currie
d86b431860
fix a couple of warnings
2003-02-10 03:19:54 +00:00
Ragnvald Maartmann-Moe IV
83f0901c17
Cleaned up fisheye code which totally ignored QF coding style.
...
Also attempt to fix an init bug in R_InitFishEyeOnce (add gl_cube_map_capable = false to else).
2003-02-09 19:35:49 +00:00
Ragnvald Maartmann-Moe IV
76eb7917a7
More whitespace.
2003-02-09 10:18:43 +00:00
Ragnvald Maartmann-Moe IV
5466f33dff
Whitespace, while I'm in the area...
2003-02-09 10:17:20 +00:00
Ragnvald Maartmann-Moe IV
22641c40fc
Make -sgl video mode selection much more robust. Particularly needs testing with voodoo 1 & 2, and on windows.
...
If you have problems with input grabbing, try `+set vid_fullscreen 1` or `+set in_grab 1` on the command line.
2003-02-09 10:15:20 +00:00
Bill Currie
137b56892f
move menu.dat to its new home :)
2003-02-07 20:18:59 +00:00
Bill Currie
3ab4eb6545
Arkadi's mach64 patch
2003-02-06 21:47:33 +00:00
Bill Currie
06dc22af3d
make "wait" work again.
2003-02-03 16:05:53 +00:00
Bill Currie
963fa8ef98
fix non-vorbis compile
2003-02-02 04:54:40 +00:00
Bill Currie
3fcc6ae176
a bit more cleanup with more _null deaths
2003-01-31 23:16:28 +00:00
Bill Currie
e6a6f7099b
don't need this any more
2003-01-31 22:34:47 +00:00
Brian Koropoff
5870c2cbce
Nuked some code obsoleted by reference counting.
2003-01-31 21:47:16 +00:00
Bill Currie
05fb5f9fb2
partial cleanup. more to come later :)
2003-01-31 20:51:04 +00:00
Brian Koropoff
48c3e5a6c3
Fixed a stupid, stupid bug.
2003-01-31 20:36:39 +00:00
Bill Currie
93b767d4e0
reduce the heavy pointer dereferencing needed to access the sound plugins
2003-01-31 20:19:42 +00:00
Bill Currie
c103d77157
make SND_ClearBuffer get called directly by Block/UnblockSound and remove
...
S_ClearBuffer from the api
2003-01-31 19:55:21 +00:00
Bill Currie
881e7918c2
cut some overhead on sound rendering
2003-01-31 19:14:12 +00:00
Bill Currie
570a72497f
patches from the FreeBSD ports that are still applicable
2003-01-31 18:19:55 +00:00
Bill Currie
c788a2ea57
remove a redundant call to S_Init_Cvars and call S_ClearBuffer when sound
...
is blocked and unblocked.
2003-01-31 17:56:05 +00:00
Brian Koropoff
b0e6f46b7e
GIB: Even more bugfixes.
2003-01-31 05:22:20 +00:00
Bill Currie
3e693cbce5
change the default of sys_dead_sleep to 0
2003-01-31 04:51:35 +00:00
Bill Currie
fdb74e1aba
win32 doesn't like random
2003-01-31 04:40:40 +00:00
Brian Koropoff
47d35f3e2d
GIB: Added ifnot, fixed several bugs, updated zoom.gib yet again.
2003-01-31 03:43:56 +00:00
Brian Koropoff
580ca17546
GIB: Added proper reference counting on parse trees, got threads working
...
again, added a few new builtins and renamed some others, made misc. fixes
and enhancements.
2003-01-30 23:26:43 +00:00
Brian Koropoff
4ee0c42dcc
Made GIB var substitution use cvars as a last resort.
2003-01-30 20:43:57 +00:00
Brian Koropoff
15687970b3
Fix a braino that caused COM_execute_sets to work improperly.
2003-01-29 22:46:24 +00:00
Bill Currie
8a9cd78072
fix up a couple of error cases (and catch them!)
2003-01-29 20:32:44 +00:00
Brian Koropoff
1f5cabcba9
A few GIB bugfixes, cleanups, and enhancements. Still more to come.
2003-01-29 04:34:23 +00:00
Brian Koropoff
06cd013fc6
Fix for older compilers that only allow variables to be declared at the top
...
of a program block.
2003-01-28 23:55:21 +00:00
Brian Koropoff
1668dd5c1a
Whoops, missed these.
2003-01-28 22:37:34 +00:00
Ragnvald Maartmann-Moe IV
979ee7b2f8
Fix misleading comment and cvar documentation.
2003-01-28 21:31:55 +00:00
Brian Koropoff
59fbd48a81
Overhauled GIB to parse scripts in advance, among other design and language
...
changes. There still remains some bugs to be squashed, a feature or two to
add, and some polishing to be done. However, it seems to be in a workable
state.
2003-01-28 21:16:21 +00:00
Bill Currie
ba12255550
get the qfs variable substitution more-or-less working
2003-01-27 21:56:30 +00:00
Bill Currie
fd5695eb03
hash.[ch]:
...
add Hash_Free to ease freeing of hash table entries.
quakefs.c:
beginnings of proper variable subtitution in qfs. not yet working but
it compiles.
2003-01-27 18:16:15 +00:00
Bill Currie
55bec57b18
get -game working again (well enough for "nq-x11 -game slide" to work,
...
anwyay:)
2003-01-22 20:00:46 +00:00
Bill Currie
1342533234
make the PF_Find search field error more informative
2003-01-20 21:28:36 +00:00
Bill Currie
c5eb7d6e94
bring back the screen saver code
2003-01-16 21:44:42 +00:00
Bill Currie
341b6a1d68
this /should/ fix the windows server input problems. based on Timmmm's fix.
2003-01-16 16:11:28 +00:00
Bill Currie
d63cde4103
import the GL_ARB_texture_cube_map defines
2003-01-15 18:26:58 +00:00
Bill Currie
0ea15c3f82
sw and gl fisheye patches from Arkadi Shishlov (arkadi@it.lv). I don't
...
think /I/ can play that way (dizzy:)
2003-01-15 16:53:34 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
a4dfef63c3
make all files with rcsid include config.h
2003-01-14 20:18:29 +00:00
Bill Currie
9323f359db
move the default GameCode definitions from qw:* and nq:* to QuakeWorld and
...
Quake as that seems to be a more logical place for them.
2003-01-13 17:32:00 +00:00
Bill Currie
c9204e3237
forgot the path for nq games
2003-01-13 16:46:13 +00:00
Ragnvald Maartmann-Moe IV
e2d199cfb2
Try to open graphics at desktop bit depth, rather than 8bpp. Might explain some very grainy windows screenshots...
2003-01-12 16:58:31 +00:00
Bill Currie
3b9e7db882
fix the skins dowload location issue (not really to my satisfaction, but it
...
will do for now)
2003-01-10 23:07:04 +00:00
Bill Currie
2e0ed3377c
basic (very!) implementation of the new filesystem directory struture code.
...
All the details of game directories will be fully configurable (search
paths and gamecode file name currently supported). Downloading of skins to
qw/skins only currently broken (will download to $gamedir/skins for now).
2003-01-10 22:47:18 +00:00
Bill Currie
f8eda03b63
fix a const correctness issue
2003-01-09 17:06:27 +00:00
Bill Currie
0926ab64ec
make the plugin cvars rom rather than archive
2003-01-08 22:42:55 +00:00
Ragnvald Maartmann-Moe IV
34d4483424
white noise, er space.
2003-01-08 01:46:28 +00:00
Ragnvald Maartmann-Moe IV
d2820cd857
Reduce code duplication, kill a function used by only one caller.
...
Also disables a workaround for "interpolation seams" that I believe to be an old DRI bug. If anyone has skybox (not dome!) seams, try altering the ftc `if 0` to `if 1`.
2003-01-07 22:12:54 +00:00
Bill Currie
9538e009b7
small bit of cleanup
2003-01-07 20:02:30 +00:00
Bill Currie
e7d138e727
string const correctness
2003-01-06 21:41:46 +00:00
Bill Currie
ca720c26a5
blah, forgot about no-asm :P
2003-01-06 19:05:51 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
6b705adc31
fix a missed libasm -> libvid_asm change
2003-01-04 03:08:32 +00:00
Brian Koropoff
c522970a88
Added a GIB event system for registering GIB callback functions to be
...
started when a named event occurs. Added a few test events to the qw
client and server. Cleaned up the range GIB builtin a bit.
2003-01-03 04:30:38 +00:00
Brian Koropoff
79a638198d
Fix a memory leak.
2003-01-03 04:15:32 +00:00
Brian Koropoff
091e9d3f3d
A few cleanups, and made assignment/incremement/decrement operations
...
return a value.
2003-01-03 04:10:50 +00:00
Bill Currie
8a2fbf43a7
alphageek's crosshair patch modified so it's crosshair 3 (need to port this
...
to the sw renderer's:/)
2003-01-03 03:36:45 +00:00
Bill Currie
f75c88b247
work around a gcc (GCC) 3.1 20020420 (prerelease) bug in darwin (ppc?)
2002-12-20 23:49:11 +00:00
Bill Currie
dbd5b16883
rename the convenience libs to avoid problems with libx11 vs libX11 on
...
darwin (damn case insensitive file systems :P)
2002-12-20 23:40:47 +00:00
Bill Currie
1130eed85a
make the "no mouse" error message a little more informative
2002-12-19 16:58:44 +00:00
Bill Currie
c85fd3bd56
fix a potential underflow and plug a memory leak
2002-12-18 20:53:49 +00:00
Bill Currie
637de7b687
chage PL_ObjectForKey to take a plitem directly and typecheck the item
2002-12-18 16:09:47 +00:00
Brian Koropoff
f03cc28b7d
Fixed dsvprintf to work with different implementations of vsnprintf.
2002-12-17 22:35:14 +00:00
Bill Currie
a84b6bba5d
make stuff static that can be and nuke some useless stuff
2002-12-16 23:26:14 +00:00
Bill Currie
ee868367d5
we don't currently support scitech's mgl
2002-12-16 21:57:36 +00:00
Bill Currie
d332a9f5ae
remove useless file
2002-12-16 21:09:25 +00:00
Bill Currie
86ed9e1130
add some missing ()s
2002-12-16 19:39:02 +00:00
Bill Currie
1c4b40c291
similar cleanups to vid_svgalib.c
2002-12-16 19:36:46 +00:00
Bill Currie
80146121dc
require an 8 bpp mode
2002-12-16 19:36:14 +00:00
Ragnvald Maartmann-Moe IV
4b32916298
Legibility. Whitespace. Stuff like that.
2002-12-16 19:26:53 +00:00
Bill Currie
e381d2a0fc
remove vid_mode and the mode description commands
2002-12-16 19:23:41 +00:00
Bill Currie
1311773a90
make -svga mode selection consistent with -x11 etc and also fix the mode
...
matching algo so it actually works
2002-12-16 18:50:09 +00:00
Ragnvald Maartmann-Moe IV
f053f3b70f
Whitespace. Grr.
2002-12-16 17:59:45 +00:00
Brian Koropoff
2c643cde47
Reworked _dvsprintf a bit to make it cleaner and fix a segfault when
...
appending to large strings.
2002-12-15 07:01:50 +00:00
Brian Koropoff
19ac57dafc
Fixed a bug with aliases and updated cb.gib a bit.
2002-12-14 20:34:20 +00:00
Bill Currie
b8216807fe
fix a warning
2002-12-14 01:56:37 +00:00
Brian Koropoff
32e5e6ef0b
Numerous GIB bug fixes and optimizations. Fixed/updated some GIB scripts
...
as well.
2002-12-13 23:36:05 +00:00
Bill Currie
31969b67ad
a couple of missed cleanups from the screen merge
2002-12-12 05:12:09 +00:00
Bill Currie
37c5bb6ec6
merge the bulk of the three screen files into r_screen.c so all common code
...
is shared.
2002-12-11 17:34:48 +00:00
Bill Currie
bf3fa3dc76
remove some dead code and a lot of unnecessary diffs
2002-12-11 16:45:40 +00:00
Bill Currie
ca55210c6e
remove some redundant steps
2002-12-11 05:46:42 +00:00
Bill Currie
88f7b9ae84
it's rgb, not rbg
2002-12-11 05:33:54 +00:00
Bill Currie
15655c23cd
get snaps working properly
2002-12-10 18:24:38 +00:00
Bill Currie
c158f0028b
fix gl_stub so it works again and also get the gl functions being looked up
...
properly
2002-12-10 15:30:16 +00:00
Bill Currie
7da551d044
the output is rather mangled but the client no longer crashes
2002-12-10 05:04:30 +00:00
Brian Koropoff
74ee0cfd0e
Changed the behavior of field::get with a null field separator to match
...
that of for loops. Added support for var++, var--, var += foo, var -= foo,
var *= foo, and var /= foo.
2002-12-10 00:04:15 +00:00
Bill Currie
de7299a64f
don't crash when doing a remote screenshot
2002-12-09 17:47:12 +00:00
Brian Koropoff
91266619f3
Added the sqrt and abs math functions and the continue GIB builtin. I
...
changed where a loop program gets copied back into its buffer so that the
continue builtin would work.
2002-12-08 20:55:40 +00:00
Brian Koropoff
0a8ff6a8cf
In addition to .gib files, anything exec'ed from within a GIB buffer is now
...
put in a new buffer on the stack and stripped of comments. Fixed an
instance of a function name that I forgot to change in cb.gib.
2002-12-03 05:54:13 +00:00
Ragnvald Maartmann-Moe IV
46a093faba
Change sv_use_curses default to 0, until curses has scrollback support.
2002-12-02 20:03:12 +00:00
Bill Currie
92ea1de504
apply Kaare Slettnes' key name extention patch ( Closes : #62 )
2002-12-02 16:26:18 +00:00
Brian Koropoff
714f2ced4c
Fixed several GIB bugs, optimized Cbuf_Execute_Stack a bit, changed QW
...
clients to use a separate buffer for stufftext commands.
2002-12-01 07:22:42 +00:00
Brian Koropoff
f1279be1e5
Fixed a segfault with very high resolutions.
2002-11-23 05:47:17 +00:00
Brian Koropoff
a62a92c1be
Fixed regex::extract to start at the correct argument when setting the
...
value of variables.
2002-11-21 00:20:39 +00:00
Bill Currie
ee30860cef
fix a bunch of ;; typos
2002-11-20 21:44:04 +00:00
Bill Currie
d78f34e795
fix some spelling errors
2002-11-20 21:21:22 +00:00
Bill Currie
261dcfe2a3
FreeBSD patch from q (see what happens for the other BSDs)
2002-11-20 17:20:52 +00:00
Brian Koropoff
854f6d9054
Created gib_regex.[ch] to manage regular expressions in GIB. Regexs are
...
now cached and only recompiled when compile flags change. Changed regex
builtins to take an options string argument after the regular expression.
2002-11-19 06:24:29 +00:00
Bill Currie
1251cbda9e
gee, you'ld think gnu would get pointer <-> int portability right :P
2002-11-19 05:40:04 +00:00
Bill Currie
a17673bb69
fix some warnings
2002-11-19 04:34:44 +00:00
Brian Koropoff
0e0d8bd542
Added support for enclosing embedded commands in $() and cleaned up the
...
parser a bit to accomodate this. Backslashes in double quotes are now only
removed if they escape a character that can't be written normally, or
another backslash. Removed start position support from string::findsub
since variable slices can be used instead. Added support for regular
expressions in the form of regex::match, regex::replace, and
regex::extract. Checked in regex.c from GNU regex 0.12 for platforms that
do not have regex functions in their standard library. Two minor changes
were made to this file to fix gcc warnings. Prepared the path transform
function for a change to a filesystem rooted at fs_userpath instead of the
current gamedir, but these changes are commented out pending security
considerations.
2002-11-19 04:15:36 +00:00
Brian Koropoff
acbd838b09
Fixed a format string and added a cast to some pointer arithmetic. This
...
fix compile problems on non-intel archs.
2002-11-17 00:12:14 +00:00
Brian Koropoff
d4b1c74866
Added the string::findsub builtin. Added a reset function to the cbuf
...
interpreter struct so that custom cbuf data can be reset after an error.
This fixes a bug where GIB would think it was still waiting for a return
value after an error occurred in an embedded command.
2002-11-16 20:56:04 +00:00
Brian Koropoff
ac8169ba54
Changed file::find to take the path and glob as one argument. Made some
...
miscellaneous file access cleanups.
2002-11-16 03:52:07 +00:00
Bill Currie
f26ec7377c
fix an uninitialized variable
2002-11-16 02:03:39 +00:00
Brian Koropoff
78785a90f8
Added a primitive interactive mode to carne and modified the file::read
...
GIB builtin to use Qopen instead of COM_LoadHunkFile. This makes it work
properly in carne.
2002-11-15 23:27:07 +00:00
Bill Currie
06df342655
fix a stray ;
2002-11-15 14:56:57 +00:00
Bill Currie
2ad18a404b
don't double print Sys_Error messages when the print function is still
...
the default
2002-11-14 22:17:25 +00:00