Bill Currie
ef81af9245
the "two birds with one stone" commit
...
1) when /not/ building static plugins, the plugin info name is, once again,
PluginInfo, but is still type_name_PluginInfo for static plugins. This
allows plugins to be symlinked (highly desirable for the debian packages,
and likely others). This also requires plugins to /not/ be loaded with
RTLD_GLOBAL.
2) because of 1, snd_alsa_0_9 has to explicitly load libasound itself. This
just happens to fix my segfault on shutdown in RedHat 6.2.
2002-04-19 20:08:54 +00:00
Bill Currie
e34ab5541c
munmap the sound buffer when closing the device. This might help with some
...
hangs on shutdown.
2002-04-17 21:15:19 +00:00
Brian Koropoff
4cb89c69b2
Moved commands from bound keys into a separate buffer, changed the syntax
...
of for loops to be like that of C, changed math expressions to be
enclosed in #{} instead of #().
2002-04-17 07:05:43 +00:00
Brian Koropoff
fafb014bbe
Oops. Fixed a stupid bug that broke having more than one embedded command
...
in a token.
2002-04-17 01:15:10 +00:00
Brian Koropoff
cb79de3584
Completely redid the way embedded functions are subroutines in general are
...
handled, meaning that execution can be paused at any time without a hitch.
Warning: This is a major change to the architecture (or lack thereof) of
GIB. Please test for bugs! Also, there are a few ugly bits of code that
need to be cleaned up, but that work for now.
2002-04-16 23:56:21 +00:00
Jeff Teunissen
a4f3973ef1
Add multitexture support for Alias models, and disable the multitexture
...
support for BSP models, until they can be fixed. gl_multitexture should now
actually be a speedup!
NOTE: Some OpenGL implementations have trouble with the texture function
used. 3Dfx Voodoo 1/2 are known to have this trouble. I don't know how to fix
this, or even if it can be fixed. :/
2002-04-16 16:51:35 +00:00
Bill Currie
55a5c39187
Turns out that on PPC, va_list is an array (effectivly typedef struct
...
__va_list_tag va_list[1];) which causes grief when attempting to reuse
va_list variables (eg, in vsnprintf retry loops). This is the reason for
MisterP's crashes as the pointers in va_list no longer point to valid data.
acinclude.m4:
shamelessly steal the va_list, va_copy and __va_copy macros from
cdda2wav but modified so AC_DEFINE includes the description (so
acconfig.h can remain gone)
configure.ac:
use AC_TYPE_VA_LIST, AC_FUNC_VA_COPY and AC_FUNC_VA__COPY
dstring.c:
stash the incoming va_list args in a temp var before calling vsnprintf
then restore them each time before retrying, but only if va_list is an
array (hopefully this is ok for when va_list is a structure)
2002-04-15 22:17:02 +00:00
Chris Ison
347cdc5e33
some small performance optimizations with textures and animations
2002-04-15 03:26:08 +00:00
Bill Currie
49deaf2661
that wasn't meant to get checked in. it came from an aborted change to
...
how commands get register.
2002-04-14 22:52:52 +00:00
Brian Koropoff
c3da90fce0
You can now assign to local variables with var = value. You can also
...
index into variables in either substitution (i.e. $bob[25]) or assignment
(i.e. bob[25] = 'q') When using assignment into an index of a var, the
current character is removed and replace with the new value. That means
that if the new value is longer than one character, the string will grow.
A feature that may be done in the future is indexing between two values
to get a substring, ie bob[25..30] = newstr.
2002-04-14 22:35:56 +00:00
Bill Currie
403af77038
give qc access to Cmd_Return
2002-04-14 01:25:24 +00:00
Brian Koropoff
503dab1aee
The tokenizer will now not break tokens appart within quotes or braces.
...
This means things like echo ~{somefunc arg1 arg2} will get parsed properly
without having to enclose it in quotes. Exported the Cmd_Return function
so that anything can return values to GIB (such as quakec).
2002-04-14 01:12:19 +00:00
Bill Currie
b4c8546169
add the keyhelp command. think xev
2002-04-13 04:56:00 +00:00
Bill Currie
8220ddd83d
and the command api to csqc and use it to bind menu_load and menu_save. F2
...
and F3 now work in nq :)
2002-04-12 17:19:49 +00:00
Bill Currie
a974eb2333
move buildnum.c to util and make nq and qw init more similar
2002-04-11 18:42:55 +00:00
Bill Currie
ba9ad15ebd
it he's if I understand that Draw_CachePic puts the pic into the cache...
2002-04-10 06:56:25 +00:00
Bill Currie
0855e018dd
d'oh, bloody gcc 2.95 builtin prototypes
2002-04-10 01:38:21 +00:00
Bill Currie
15e17acc1c
the draw api now uses a `real' qpic_t rather than loading the pic every time
2002-04-09 21:38:41 +00:00
Bill Currie
76d004f9cf
fix confim_quit
2002-04-09 17:00:39 +00:00
Bill Currie
47a94ed6af
clear out the string hash resources completely
2002-04-09 16:21:27 +00:00
Bill Currie
8588d2d1cd
fix a silly braino in the resources code that was causing the resource
...
structs to not get linked into the chain
2002-04-09 16:06:05 +00:00
Bill Currie
9dd7deb798
better catching of invalid inputline pointers
2002-04-09 15:29:48 +00:00
Bill Currie
4f65a313fd
oops :)
2002-04-07 04:57:42 +00:00
Bill Currie
197db0aca7
more signed char indeces
2002-04-07 04:54:19 +00:00
Bill Currie
ea9c1fc4ac
setenv isn't as portable as one could wish...
2002-04-07 04:45:02 +00:00
Bill Currie
9885aa5916
fix some signed char index warnings
2002-04-07 03:41:10 +00:00
Bill Currie
db75da7733
this should fix compiling snd_sun on solaris
2002-04-07 03:24:29 +00:00
Bill Currie
b322835767
fix a missing \n
2002-04-03 18:50:36 +00:00
Brian Koropoff
93c9f96416
Added embedded commands with ~{} and the return command, created a token
...
structure to help tidy the command buffer struct up a bit, fixed a few
bugs and probably created 100 more. A lot of things were changed to
allow embedded commands:
- Old buffers on the stack are left alone for Cbuf_ExecuteStack to
clean up. This is so return values can be extracted from them.
- The imperative flag has been added. An imperative buffer and all buffers
following it can not be paused with the wait command.
- The returning flag and retval dstring have been added. If a buffer
returned something, the flag will be set.
- The return command was added so there was something to use in the
substitution. Return nukes all loop buffers since they don't really count
as independent functions, sets the return value on the top buffer, and
clears it.
- Who knows what else.
2002-03-29 07:43:02 +00:00
Brian Koropoff
676bf39d9d
Beautified GIB, improved looping and backtraces slightly. Old buffers are
...
now recycled, not freed. Fixed some bugs in exp.c. Ready to add embeded
functions (read: function calls with return values) and for loops.
Probably some other misc. fixes, I tend to go on debugging streaks.
2002-03-27 06:24:19 +00:00
Brian Koropoff
807e7de22e
Fixed a bug with comments that don't have a newline after them.
2002-03-24 06:55:52 +00:00
Brian Koropoff
7c4cecd700
Fixed a stupid bug in Cmd_Exec_f that was causing map commands inside
...
executed files to crash the server.
2002-03-23 23:13:15 +00:00
Brian Koropoff
73f32465c5
Fixed a double free in exp.c, and made math error reports slightly more
...
useful.
2002-03-22 07:11:05 +00:00
Brian Koropoff
e1b61d2116
Changed how looping works, fixed echo to work with taniwha's Cmd_Args
...
changes, added the != operator for math evaluation, added break command
to break out of loops early, added ifnot command, and who knows what else.
2002-03-22 00:22:03 +00:00
Bill Currie
961a716942
minor oops
2002-03-21 21:56:59 +00:00
Bill Currie
5a30278e77
whitespace
2002-03-21 21:56:22 +00:00
Bill Currie
d00d6a539a
add dstring_insertsubstr
2002-03-21 21:53:52 +00:00
Bill Currie
619a77b2f7
fix a couple of brainos that broke quotes entirely
2002-03-21 21:45:00 +00:00
Bill Currie
c1deee9955
rework cmd_buffer_t->line and cmd_buffer_t->args building so quotes are
...
preseved
2002-03-21 21:17:31 +00:00
Bill Currie
b7fc784718
add dstring_appendsubstr
2002-03-21 21:16:26 +00:00
Bill Currie
6f1b68aeb4
sys.h:
...
define SYS_CHECKMEM macro to ease memory allocation failure detection
cmd.c:
loads of whitespace
2002-03-21 19:47:31 +00:00
Brian Koropoff
388ff7b597
Some bug fixes and memory leak fixes. Local variables break randomly,
...
probably due to my misuse of hash tables. Anyone have any ideas?
2002-03-20 22:57:26 +00:00
Brian Koropoff
d5fad096c0
Added local variables and replaced %-substitution with local variables.
...
Made variable substitution recursive, so ${${foo}} will be the value of
the variable whose name is contained in foo. Added setl command to
manipulate local variables. The only other place they can be used is in
variable substitution.
2002-03-20 04:24:31 +00:00
Robin Redeker
18082533d5
Fixed some memory problems in my string-hashes.
2002-03-19 18:08:07 +00:00
Robin Redeker
489bc7291a
Playermenu working now fine.
...
Added some api-functions to complete playermenu.
(Playermenu isn't still finished)
2002-03-19 17:07:56 +00:00
Bill Currie
504ee0014f
and another one :/
2002-03-19 17:03:52 +00:00
Bill Currie
7816644fc3
missed a place for enter_hook
2002-03-19 16:59:25 +00:00
Brian Koropoff
1683633042
Changed to an execution stack system for aliases and config files, and
...
added error backtraces.
2002-03-18 23:39:03 +00:00
Bill Currie
b01cda716f
callback hooks for entering/leaving menus
2002-03-18 20:20:56 +00:00
Bill Currie
5f2dea43f6
break the dependency between cmd.h and dstring.h
2002-03-18 16:47:04 +00:00
Brian Koropoff
46cc4ac9dd
Fixed some bugs and generalized the command buffer interface. Allowed for
...
buffers to be linked into execution stacks and changed aliases and script
files to be run in a new stack frame. Cbuf_Execute executes the stack from
the top down, so wait commands are handled properly.
2002-03-18 04:12:09 +00:00
Brian Koropoff
f4180e7ad8
Added math evaluation, the ability for commands to span multiple lines
...
within braces, and put support for comments back in (oops). To use math
evaluation, put a math expression inside $(). If you have spaces in your
expression, you'll need to enclose the entire thing in quotes so it doesn't
get split up into multiple tokens.
2002-03-17 06:57:03 +00:00
Brian Koropoff
aa00b7742c
Changed the token finder to be recursive, added if and while commands, and
...
allow tokens within braces to continue across newlines.
2002-03-17 03:31:03 +00:00
Brian Koropoff
e9ca911e34
Added the ability to use curly braces to enclose tokens. Tokens in braces
...
won't be processed except for escape characters, so that escaped braces
can be used within. If an uneven number of curly braces are within a
token, it will be misparsed, so escaped braces are important if you
don't want them to be considered in the parsing of the token. Ideally,
braces within quotes within braces should not need to be escaped, but this
would require a redesign of the parser to be recursive. Maybe I will do
this later.
2002-03-16 21:17:01 +00:00
Robin Redeker
adca50e52b
Did further working on the menu code.
...
Added a _unfinished_ Player options-submenu, for setting
the name, top-/bottomcolor.
Added Draw_Fill and such to the progs api.
Added some comments.
2002-03-16 20:22:01 +00:00
Robin Redeker
757556022b
1. general menu code cleanup
...
2. added lots of comments to my menu code
3. wrote a string hash api (key -> value assignment list)
Hm, nothing else afaik. ;)
2002-03-16 15:52:17 +00:00
Bill Currie
51805ebd92
nothing much, just give wildcode a 30% speed boost. Basicly, stop binding
...
a texture for every single brush poly: due to texsort, they will come in
batches.
2002-03-16 09:25:06 +00:00
Brian Koropoff
2a3e1869ac
Bug fixes! Fixed escape character detection, use of str = dstr->str
...
without considering that realloc could result in dstr->str being
changed. Also made variable substitution of non-existant variables be
replaced with a null string rather than being left alone, to prevent
errors in scripts from causing weirdness as strings get passed through
the parser several times.
2002-03-16 06:31:59 +00:00
Brian Koropoff
0a90ddc51f
Fixed an error in extract line that caused escaped quotes to be parsed as
...
normal quotes and made it so executed files are always inserted into the
console buffer so that class config files in TF can use the new parser
features, even though the exec command is run in the legacy buffer
2002-03-15 01:45:15 +00:00
Bill Currie
180c517771
signal handling improvements
2002-03-13 19:20:57 +00:00
Bill Currie
6cefb63e2e
get back to work on creating a good command line pak file util. currently
...
only dumps the file names/sizes and segs if it's used incorrectly, but it's
a start.
2002-03-12 23:45:36 +00:00
Bill Currie
f0609f04f3
forgot about the need for the proto itself
2002-03-12 17:44:45 +00:00
Bill Currie
adbb59c5dd
fix missing prototype for fnmatch on some systems
2002-03-12 17:36:17 +00:00
Bill Currie
1d420edcd0
start work on instrumenting GLstub.so
2002-03-11 23:55:50 +00:00
Bill Currie
d5fe4e3130
make file open a little more secure
2002-03-11 19:01:13 +00:00
Bill Currie
5a2538faaf
dstring.[ch]:
...
create dsprintf and dvsprintf to do formated prints to dynamic strings.
rest
Use the new functions :)
2002-03-08 23:11:42 +00:00
Bill Currie
538515bee6
forgot to nuke this
2002-03-06 04:17:50 +00:00
Bill Currie
8f7f646d19
white space
2002-03-05 22:36:04 +00:00
Brian Koropoff
e0e9084ad7
Merged in the new command parser. No major bugs or incompatibilities could
...
be found.
2002-03-05 21:51:12 +00:00
Bill Currie
544ca8118a
"gib" never got all that useful, and with the new command parser coming in
...
and csqc, it's pretty obsolete, too.
2002-03-05 21:47:03 +00:00
Brian Koropoff
066c2c8a02
The final checkin before merging. Hopefully no showstopping bugs remain.
2002-03-05 21:26:37 +00:00
Brian Koropoff
669ca72e4f
Added a bonus feature: %i evaluation in aliases. Just put %i in an alias
...
and it will get replaced with the ith argument to the alias, 0 being the
name of the alias itself. %% will get replaced by %, out of range
numbers will simply be removed, and non-numbers will be ignored.
2002-03-04 02:37:40 +00:00
Brian Koropoff
7241d69036
Fixes to echo, correct use of cmd_source and src_command, and change nq to
...
use cmd_legacybuffer for stufftext.
2002-03-04 01:11:05 +00:00
Brian Koropoff
8d124f9c2b
Implemented variable substitution and did various cleanups to the parser.
...
Changed Cmd_TokenizeString to accept a flag that controls the application
of filters (tags, variables, escape characters) to the tokens and modified
a few places in the source that called it. Added a secondary command
buffer that is parsed without filters for legacy command support.
Currently, it is only used for commands stuffed into the console from the
server. It is hacky, and I hope to eventually generalize the console
interface to support any number of buffers and audit the rest of the code
to recognize it. For now, the legacy buffer at least keeps escape
character parsing from destroying info strings.
2002-03-03 23:28:57 +00:00
Brian Koropoff
f78ec56975
Added escape characters, the <i> tag to ignore tags enclosed within it, and
...
generally cleaned the parser up. If a line begins with |, it will be
stripped off by the tokenizer and no tags or escape characters will be
processed. Commands stuffed into the console from the server are prepended
with | to ensure backward compatibility. This can also be used anywhere
backward compatibility is needed, such as where info strings are stuffed
into the console, or as an alternative to using escape characters in the
entire string.
2002-03-03 08:29:28 +00:00
Bill Currie
26d7463be7
the majority of raptor's sgi build patch. I'll look at the last two bits
...
(server.c and vid_sdl.c) later.
2002-03-03 06:03:51 +00:00
Brian Koropoff
4a7f3b3189
This commit fixes up cmd_args to rebuild a string from the processed
...
tokens and adds support for comments.
2002-03-03 06:00:44 +00:00
Bill Currie
119731e90e
fix a buffer overflow snax found
2002-03-03 04:42:32 +00:00
Brian Koropoff
6936615fdf
HTML-like tags are more or less done. Next up is variable substitution
...
and escape characters.
2002-03-03 04:26:37 +00:00
Brian Koropoff
557846b220
This is the first commit to the newcmd branch, which is a mostly-rewritten
...
console command parser. It will eventually include html-like tags for
modifying text (gold numbers, brown characters, etc) and escaped characters.
The major differences so far are that dynamic strings are now used instead
of static buffers, and single quotes can be used to enclose tokens as
well as double quotes.
2002-03-03 03:36:27 +00:00
Bill Currie
a384870e4b
cl_chatmode works again
2002-02-28 04:12:20 +00:00
Bill Currie
009e6346fe
now, so long as ulimit allows it, we can always get a core dump. Looks a
...
little odd:
Received signal 11, exiting...
IN_Shutdown
IN_LL_Shutdown
VID_Shutdown
Segmentation fault (core dumped)
but the core file does accurately show the error
2002-02-27 06:55:21 +00:00
Bill Currie
2f62b744fa
After an interesting discussion with Lordhavoc, make the GPU do more work in
...
the background. This is achieved by doing only a (qf)glFlush at the end of
the frame, doing the inter rendering-frame processing (ie, client frame
processing), glFinish, glXSwapBuffers, then starting the next frame. I've
changed the glFinish call in SCR_UpdateScreen to glFlush and the glFlush
call in GL_EndRendering to glFinish because there's no point in calling
glFinish followed by glFlush. Also, SwapBuffers should always be precedded
by glFinish rather than just glFlush (in Lordhavoc's experience). The
GL_EndRendering at the end of SCR_UpdateScreen got moved to the beginning.
2002-02-27 05:22:21 +00:00
Bill Currie
cfb6c1db0a
first stab at hardware gamma support for windows. WILL screw up system gamma :)
2002-02-26 00:14:16 +00:00
Bill Currie
9ea013888b
eliminate GetEdictFieldValue, mostly merge SV_AddGravity, and clean up
...
some whitespace in sv_phys.c
2002-02-25 07:44:17 +00:00
Bill Currie
9d0d8c49e7
win32 compile fix
2002-02-23 17:43:41 +00:00
Jeff Teunissen
ae2303c18d
Hide the reason for a plugin load failure unless developer is set.
2002-02-22 11:17:20 +00:00
Bill Currie
29706477d4
gl_driver default is now configurable
2002-02-22 08:55:24 +00:00
Bill Currie
972bd8852b
rewrite QFGL_ExtensionAddress to just use QFGL_ProcAddress and be done with
...
it. hopefully this will fix raorn's crash.
2002-02-21 07:56:27 +00:00
Bill Currie
8ee5acb208
redo Sys_Error so it's more usable throughout quake
2002-02-20 19:22:52 +00:00
Bill Currie
b6c331736a
give nq host_mem_size so -mem can be a cvar (similar to sv_mem_size and
...
cl_mem_size in qw).
2002-02-19 20:47:45 +00:00
Chris Ison
dcd4ec19c5
fixed up positioning of say_team input, also fixed length of say and say_team, thanx taniwha
2002-02-16 04:21:03 +00:00
Bill Currie
af663488c8
print out the error string when failing to get shared memory
2002-02-13 08:35:46 +00:00
Bill Currie
814e2ddfe9
hopefully a more correct implementation
2002-02-13 00:57:00 +00:00
Bill Currie
42ba67eb4b
*sigh*, getting this right is proving to be a pain :P
2002-02-12 21:34:28 +00:00
Bill Currie
01882919a2
get it right this time :/
2002-02-12 21:26:34 +00:00
Bill Currie
befc4113b8
fix a braino for vsnprintf return code handling
2002-02-12 20:39:11 +00:00
Bill Currie
b4000200e3
move the getopt files from qfcc/source to libs/util, link qw-master against
...
libQFutil and enable the option parsting in qw-master for win32.
2002-02-12 17:44:41 +00:00
Bill Currie
799cfa58af
fix the recent win32 crash bug
...
Q_vsnprintfz should return -1 when size is 0. also make client.c's C_Print
use vsnprintf correctly
2002-02-12 04:29:44 +00:00
Bill Currie
b5c2c0e14e
clean up a fixme. this doesn't fix serplord's out-of-bounds problem, but
...
that's because his qc compiler is doing weird stuff.
2002-02-11 19:36:36 +00:00
Robin Redeker
67d53f4e56
Added some QC-API functions: String_Cut, String_Len, Key_CountBindings.
2002-02-02 09:38:19 +00:00
Robin Redeker
60e99d724b
Fixed a bug with callback-calling in Menu_KeyEvent
2002-02-01 18:50:56 +00:00
Bill Currie
cf2f42ea6a
make it so menu items can get called for any keypress. this is optionally
...
done by setting the allkeys param to 1. when this is the case, if the menu
item function returns 0, normal processing is done, otherwise processing
stops.
2002-02-01 17:32:40 +00:00
Robin Redeker
fa575a3475
Added a start for the QC-Keys-API
2002-01-31 21:08:45 +00:00
Bill Currie
72bd704d13
BSD compile fixes
2002-01-31 07:37:56 +00:00
Bill Currie
03ae513559
compile fixes. we've finally got a sun sound user
2002-01-31 06:50:18 +00:00
Bill Currie
681950cf26
print [val] for pointers
2002-01-30 22:14:13 +00:00
Bill Currie
40e987c071
provide InputLine_SetWidth so the drawn width can be set
2002-01-30 21:25:00 +00:00
Bill Currie
d1460f6166
rename the width parameter to lsize as it's the size of the input line, not
...
the drawn width
2002-01-30 21:23:46 +00:00
Bill Currie
6d63d1d55b
implement comparisons and not for pointers
2002-01-30 21:20:12 +00:00
Bill Currie
e1abe4c44b
finalize the crc of the progs file
2002-01-30 21:13:57 +00:00
Bill Currie
7ef4426775
inputline api `done'. now just to get it working
2002-01-30 08:41:18 +00:00
Bill Currie
ee3f51f13b
"" to <> for system headers
2002-01-30 08:34:44 +00:00
Bill Currie
c76f7d88ce
fix an API snafu (oops:)
2002-01-30 08:09:53 +00:00
Bill Currie
8561dfa93a
basic resource management system for the VM
2002-01-30 06:21:20 +00:00
Bill Currie
9c6def5c7d
fade the screen when drawing the menus (this is optional per menu)
2002-01-29 22:32:56 +00:00
Bill Currie
0ea713eda4
redo the progs loader to allocate all the memory needed for progs in one
...
shot, allowing for caller specified alloc and edicts and zone memory sizes.
(progs + edicts + zone).
2002-01-29 20:53:44 +00:00
Bill Currie
0906ac5694
get the positioning correct for Draw_CenterPic
2002-01-29 18:44:31 +00:00
Bill Currie
b64693a332
get the param order correct for the menu item callback
2002-01-29 18:16:49 +00:00
Bill Currie
6f29bcb238
break the loop from CRC_Block into CRC_ProcessBlock so that crcs can be
...
caclulated over multiple blocks.
2002-01-28 18:00:48 +00:00
Bill Currie
21b6e68a8c
break out the non-edict code into sensible locations
2002-01-28 17:15:36 +00:00
Bill Currie
750100b3e3
obsolete declaration cleanup and const correctness for Key_GetBinding
2002-01-25 00:01:05 +00:00
Bill Currie
08210bc93f
fix an accidental double byteswap that broke progs for big-endian machines
2002-01-24 04:43:47 +00:00
Bill Currie
316386b542
mod->textures can legitimatly have null textures, so be on the lookout for
...
them. This fixes the client crash on certain levels.
2002-01-24 02:44:19 +00:00
Bill Currie
85588c8fcb
start implementing the api for input lines and clean up a couple csqc
...
prototype issues.
2002-01-23 22:37:44 +00:00
Bill Currie
68637eea9e
start implementing dynamic memory for progs
2002-01-23 22:35:48 +00:00
Bill Currie
16cc0c22c9
forgot to implement store.p
2002-01-23 22:33:22 +00:00
Bill Currie
ed91b16f45
add Menu_GetIndex
2002-01-23 21:07:38 +00:00
Bill Currie
eb2c7824f8
don't bail out of Menu_Draw if the qc draw function returns 0. this allows
...
for combined C/QC drawing.
2002-01-23 00:48:03 +00:00
Bill Currie
5450fdb692
don't seg on menus with no items
2002-01-21 21:38:34 +00:00
Bill Currie
ec0b3d8940
make Menu_SelectMenu(NIL) do the right thing and handle qc code that clears
...
the current menu but forgets to return 1 in keyevent
2002-01-21 19:40:45 +00:00
Bill Currie
d5fb0f5a68
fix some .. path compression bugs
2002-01-21 17:36:22 +00:00
Bill Currie
9833b7009d
oops, forgot to remove the debug code
2002-01-21 16:48:08 +00:00
Bill Currie
f3efed94e5
.0 isn't valid for integer formats
2002-01-21 16:47:50 +00:00
Bill Currie
5b0e6dc342
add file and string modules to csqc. the file nodule is rather parnoid
...
about the path it's handed (need to get even more paranoid, though). the
string module just has char replacement so far. Add Draw_CenterPic to
r_progs.c, but this will only last till qpic_t is supported in qc.
the load menu almost works: just need to add key handling and fix a bug in
PF_sprintf
2002-01-21 07:24:51 +00:00
Bill Currie
d59e7d3da4
you can now start a new single player game via the menus
2002-01-20 04:11:08 +00:00
Bill Currie
1168f1aa86
libQFcsqc (I'm not adverse to renaming it) is born. so far, only provides
...
Cbuf builtins.
2002-01-20 04:09:36 +00:00
Bill Currie
14ac3acc17
add a builtin (gametype) for detecting the, well, game type (ie, netquake
...
or quakeworld) which just returns the apprproate string. the single player
menu is now acessable in nq but not qw :)
2002-01-20 03:09:03 +00:00
Bill Currie
db7a2264c0
bring in the standard builtins and randomize the quit message
2002-01-20 01:39:06 +00:00
Bill Currie
9f67e81049
don't handle key presses if there's no callback and no items
2002-01-20 00:47:01 +00:00
Bill Currie
95e200a9e0
fix console command line quit
2002-01-20 00:32:14 +00:00
Bill Currie
35de51ee31
the quit menu works now. however, quit from the console doesn't
2002-01-20 00:06:08 +00:00
Bill Currie
bb82e48ab1
add Draw_String to csqc
2002-01-20 00:03:34 +00:00
Bill Currie
84636f20cb
make sure r_progs gets linked in when using the .a lib
2002-01-19 22:53:00 +00:00
Bill Currie
6767d6bfa0
win32 compile fixes
2002-01-19 20:45:45 +00:00
Bill Currie
9181ddaa4c
don't go to game when leaving menus when there's no game. doesn't actually
...
work properly, but I think that's a bug in the main client code.
2002-01-19 07:40:35 +00:00
Bill Currie
b73851d5aa
the menu cursor can now be moved up and down using the mouse wheel
2002-01-19 07:19:39 +00:00
Bill Currie
29c19ca243
Menu_CenterPic now centers the pic (horizontally) as intended
2002-01-19 06:18:52 +00:00
Bill Currie
b1b848ae4a
finally get the damn spinner working (not in the right place, though)
2002-01-19 05:56:25 +00:00
Bill Currie
a78ea1464b
provide stubs for the client-only functions (they might prove useful in the
...
server later anyway). this fixes nq-server's segs
2002-01-19 04:37:47 +00:00
Bill Currie
6af9a5d8e6
make the builtins an array of pointers so the hash table doesn't get royally
...
screwed up
2002-01-19 03:31:51 +00:00
Bill Currie
6ab3329b94
bring back togglemenu
2002-01-19 03:28:52 +00:00
Bill Currie
15e7e35a57
make K_ESCAPE bindable
2002-01-19 02:29:29 +00:00
Bill Currie
7def88668a
fix a goof with the progs loader for the server interface
2002-01-18 23:53:51 +00:00
Bill Currie
fcc9cbf3b7
the main menu page now displays and can be entered/left. K_ESCAPE is now
...
handled exclusively by the console.
2002-01-18 23:45:28 +00:00
Bill Currie
10acad1ee4
first tie-in for the renderer (Draw_Pic: the interface will likely change
...
to better match the real interface, but this will do for now)
2002-01-18 22:35:46 +00:00
Bill Currie
ac71d101d2
menu code now gets initialized (menu_init in the progs).
2002-01-18 22:02:59 +00:00
Bill Currie
bb96a5b736
first use of client side QuakeC :) (and having more than one progs instance
...
seems to work, too). The menu code gets loaded, but is currently otherwise
unused as of yet.
2002-01-18 19:19:33 +00:00
Chris Ison
e3b2bfb81a
clear key states on game start
2002-01-17 22:04:58 +00:00
Bill Currie
c3b2533803
fix shifted key input
2002-01-17 21:49:47 +00:00
Bill Currie
7093c05587
console scrolling works again, and even better than before :)
2002-01-17 21:27:31 +00:00
Bill Currie
d69762facd
integer() and float() casts seem to work
2002-01-17 19:32:04 +00:00
Seth Galbraith
31a98f0f80
only load tgas for texture names that end in backslash
2002-01-17 16:31:34 +00:00
Bill Currie
303581b798
oops?
2002-01-17 02:47:22 +00:00
Bill Currie
c998c63746
make all of the input lines use the same rendering code
2002-01-17 02:27:53 +00:00
Bill Currie
e090f8dc09
finally get the say scroller working
2002-01-17 02:10:36 +00:00
Bill Currie
6dbdfc0464
yeah, it's an icky global, but it's actually the right way to get at the
...
model header in the model loader.
2002-01-17 02:10:06 +00:00
Bill Currie
f67f021713
don't need those anymore
2002-01-17 02:06:49 +00:00
Bill Currie
9329d15218
more chat improvements
2002-01-17 00:05:30 +00:00
Bill Currie
9e5c7da8e6
move the chat code from keys.c to client.c.
...
oops, chat just got input history, dear me
2002-01-16 23:06:28 +00:00
Bill Currie
ceec1a87e2
fix some installing issues for dynamic plugins
2002-01-16 22:09:41 +00:00
Bill Currie
c86c5a78bf
finally, the client console is merged
2002-01-16 21:53:42 +00:00
Seth Galbraith
778af4276e
external tga skin loading, doesn't work for players (teamcolor stuff)
2002-01-16 20:32:39 +00:00
Bill Currie
9dedd21158
start getting the shared console code working
2002-01-16 16:27:56 +00:00
Seth Galbraith
0dcfc6dfb4
load tga versions of .lmp files if present
2002-01-16 01:59:05 +00:00
Seth Galbraith
93116bc827
external mip texture loading
2002-01-16 01:02:50 +00:00
Seth Galbraith
9c1969146c
cleanup, implemented tga loading for gfx.wad files
2002-01-15 21:05:34 +00:00
Bill Currie
9d59d953bd
more cleanups
2002-01-12 05:32:21 +00:00
Bill Currie
6637f3fba5
more FIXME and whitespace cleanups
2002-01-12 04:46:15 +00:00
Bill Currie
630aa80dc4
various cleanups including TODOs and FIXMEs and rewrite va to use a dynamic
...
buffer.
2002-01-12 04:34:53 +00:00
Seth Galbraith
3b6c2c8d0d
pretty 32 bit color sprite tga loading - e.g progs/s_light.spr_0.tga
2002-01-11 04:20:41 +00:00
Seth Galbraith
5f4c7ee7bd
implemented VP_PARALLEL_UPRIGHT - ask about my Mighty Oak
2002-01-11 03:00:32 +00:00
Seth Galbraith
7dc5b587f8
also try to load skies from gfx/env as darkplaces does
2002-01-11 01:26:21 +00:00
Ragnvald Maartmann-Moe IV
38acbd9c0b
Whitespace. Grr.
2002-01-10 21:22:51 +00:00
Bill Currie
6132049bf4
gl_draw.c: whitespace
...
draw.c: (both sw and sw32) fix Draw_nString to be similar to gl_draw.c
2002-01-10 20:19:22 +00:00
Chris Ison
859c18dc07
tidy up Draw_String calls and switched to Draw_nString were needed
2002-01-10 03:54:00 +00:00
Chris Ison
6073ff8d58
added Draw_nString for displaying a non \0 terminated string
2002-01-09 21:20:22 +00:00
Bill Currie
96c7159f66
keep track of the times of the last event (for those events that report time)
...
and use that instead of CurrentTime in the X selection code (as recommended
by the ICCCM)
2002-01-08 20:07:19 +00:00
Bill Currie
6633ea0273
correct a typo in a comment
2002-01-08 19:38:36 +00:00
Bill Currie
c84e5b2ac0
re-write the X selections support to be more ICCCM compliant (selections in
...
xchat can now be pasted to qf)
2002-01-08 19:33:42 +00:00
Bill Currie
9ba80eb4d9
use Hunk_TempAlloc instead of realloc for the alias model verts
2002-01-07 16:43:47 +00:00
Bill Currie
c1c76f7058
whitespace
2002-01-07 06:50:41 +00:00
Bill Currie
72d6f34dc8
first step to using a saner internal represnetation for the high precietion
...
models.
2002-01-07 06:32:46 +00:00
Bill Currie
14fb289f2f
duplicate GL_GetAliasFrameVerts so 16 bit alias models don't cost so much
...
even when they aren't being used.
2002-01-07 03:46:56 +00:00
Bill Currie
b582a02aff
fix the broken lighting for unlerped verteces
2002-01-07 01:05:44 +00:00
Ragnvald Maartmann-Moe IV
f8daa09bcb
Fix software scrag missile trails, and add a minor optimization to them and hell knight's fire wave trails.
2002-01-06 23:12:09 +00:00
Ragnvald Maartmann-Moe IV
097ff0006f
Rearrange vertex order in quads.
2002-01-06 22:43:51 +00:00
Seth Galbraith
0a7ddae612
move high precision check out of loop to optimize sw model rendering
2002-01-05 20:00:50 +00:00
Ragnvald Maartmann-Moe IV
aa36ebf6e4
Little bit of whitespace cleanup.
2002-01-05 19:03:36 +00:00
Seth Galbraith
1e57bcdca2
no more hardcoded MAXALIASVERTS limit
2002-01-05 17:56:33 +00:00
Seth Galbraith
cb6ef3e225
putting if outside the for loop should speed things up
2002-01-05 16:53:43 +00:00
Seth Galbraith
ac5b6823c6
high precision model rendering in GL
2002-01-05 16:20:38 +00:00
Ragnvald Maartmann-Moe IV
a18fdbca68
Minor clarification in pt_fire ramp aging, plus reduce VectorScale use in fixed distance trails from once per particle to once per trail.
2002-01-05 07:23:23 +00:00
Seth Galbraith
42456845f0
high precision software mdl rendering
2002-01-05 03:21:02 +00:00
Seth Galbraith
6ec47e6be6
slaying hardcoded mdl vertex and triangle limit
2002-01-04 07:40:00 +00:00
Bill Currie
36bb62c3c5
rewrite CrossProduct so memory is accessed more linearly. should provide
...
a tiny speedup for servers and clipped skyboxes
2002-01-04 06:13:50 +00:00
Bill Currie
df947a8843
pt_color is now an int so don't convert it
2002-01-04 04:12:10 +00:00
Ragnvald Maartmann-Moe IV
b13efc3a83
Particle updates. Some cleanups, small speedups, and reimplement id's effects. r_particle_styles 0 to see id's effects.
2002-01-04 03:32:59 +00:00
Ragnvald Maartmann-Moe IV
07fb841a49
Whitespace, mark a 1 line function as inline.
2002-01-04 03:25:30 +00:00
Bill Currie
3c6f64b26b
_snprintf and _vsnprintf are not guaranteed to write the trailing '\0'
2002-01-03 23:24:47 +00:00
Bill Currie
522f64bce1
remove an extra ;
2002-01-03 23:24:20 +00:00
Bill Currie
9312681182
some more const correctness (in gl_sky_clip.c) and make the sky poly debug
...
drawing avialable via the gl_sky_debug cvar.
2002-01-03 18:18:45 +00:00
Bill Currie
013f503738
start getting const-correct on vec3_t params
2002-01-03 05:29:38 +00:00
Bill Currie
c68da1f299
o split up GL_DrawAliasFrame so it's normal (ie, not fullbright) pass only
...
creating GL_DrawAliasFrame_fb to do the fullbright pass. This removes
the if (fb) tests.
o move the DepthMask setting for modelalpha != 1.0 out of
GL_DrawAliasFrame* into R_DrawAliasModel to reduce potential GL state
changes.
o minor comment cleanup/corrections
2002-01-02 19:23:09 +00:00
Ragnvald Maartmann-Moe IV
29b48c594e
More tweaks to joystick code. amp settings have a far greater effect now...
2001-12-30 06:08:24 +00:00
Bill Currie
3cfd2c0a8e
make GL_DrawAliasShadow use the data calculated by GL_GetAliasFraveVerts so
...
shadows don't cost as much when lerping is enabled.
2001-12-30 04:16:25 +00:00
Seth Galbraith
d570f0905f
high precision model loading
2001-12-30 02:30:26 +00:00
Ragnvald Maartmann-Moe IV
c523671606
Joystick updates. Now support 8 joystick axes (since I have a 7-axis gamepad I'm testing with). Also adds swimup/swimdown as axis 5. And ability to invert axes by assigning them as negative numbers (set joyaxis1 "-1"). Joystick handling is liable to change radically as it improves, though, don't count on these as stable interfaces...
2001-12-28 18:02:33 +00:00
Bill Currie
0f2f58754b
this is just causing confusion. if we ever need it, it's still in cvs
2001-12-21 22:39:14 +00:00
Bill Currie
ee9ed0c395
minor cleanups
2001-12-21 21:52:03 +00:00
Ragnvald Maartmann-Moe IV
daa68ac7ce
Minor pcx loader cleanup.
2001-12-21 21:12:01 +00:00
Bill Currie
7f9e5755fb
go back to my clever code (with the bug fixed this time:P). Hey, if it's
...
still broken, we can always revert it again ;) (NOT!)
2001-12-21 20:56:54 +00:00
Bill Currie
168d3aa308
tiny speedup to texture uploads
2001-12-21 20:12:51 +00:00
Bill Currie
858bb55bcc
kill some dead code
2001-12-21 19:38:49 +00:00
Ragnvald Maartmann-Moe IV
b5e93ffd6c
Minor speedup (*foo++, dammit!), some whitespace.
2001-12-21 16:08:56 +00:00
Bill Currie
825b02ad87
minor speedup to skybox loading ;)
2001-12-21 06:07:30 +00:00
Bill Currie
b4de52eb5c
some readability (and speed?) improvments for LoadTGA
2001-12-21 05:29:33 +00:00
Ragnvald Maartmann-Moe IV
010ca032a5
Allow arbitrary power of 2 sizes for tga texture loads, reduce memory footprint needed to load rgb tgas. Speed load of non-RLE tgas.
...
Some slight code sanity improvements.
2001-12-21 01:41:19 +00:00
Bill Currie
aaf9b953a4
make the no shutdown warning developer only (does the user realy need to
...
see it?)
2001-12-20 23:55:49 +00:00
Bill Currie
ec44f037c1
remove the obsolete z buffer prototype code
2001-12-20 05:16:59 +00:00
Ragnvald Maartmann-Moe IV
018481b1ac
Might as well allow gl_affinemodels to affect the viewmodel as well...
2001-12-19 20:15:38 +00:00
Ragnvald Maartmann-Moe IV
e78bdb3ea6
Fix failure to free cache for non-shadowed stuff (lightning, grenades, etc).
...
Also a minor speedup (only mess with glHints once per frame, instead of dozens of times).
2001-12-19 18:32:26 +00:00
Ragnvald Maartmann-Moe IV
c764ddc64a
Just a massive speedup to gl particles. Enjoy.
...
(Thanks to LordHavoc for prodding me to use glDrawElements, and munge all the particle textures into 1. Code mine, suggestions his)
2001-12-19 04:03:57 +00:00
Bill Currie
5d643c2483
tiny optimisation to GL_GetAliasFrameVerts
2001-12-18 05:50:57 +00:00
Chris Ison
73f9c3aaa5
some minor tidy/speed up
2001-12-18 03:59:37 +00:00
Chris Ison
1c26723864
changed int to an unsigned int
2001-12-17 23:41:58 +00:00
Chris Ison
db71398238
removed row and col usage from Draw_Character
2001-12-17 23:10:00 +00:00
Bill Currie
3dafbebf10
fix up #0 builtin functions at runtime. not done automaticly (need to call
...
PR_RelocateBuiltins) and fix a bug with profiling and unlimited execution
counts
2001-12-14 08:15:04 +00:00
Bill Currie
9b4e21a914
minor prototype cleanups
2001-12-14 00:06:58 +00:00
Bill Currie
69e1a9aab5
bah, installed headers made my compile tests fail
2001-12-13 22:56:43 +00:00
Bill Currie
218554d60a
move include/QF/string.h to include/qstring.h and include it automaticly if
...
needed in compat.h
2001-12-13 20:44:32 +00:00
Bill Currie
b3843f7f5b
draw.h:
...
remove dead Draw_TransPic prototype
draw.c:
really don't draw spaces in Draw_AltString
2001-12-13 19:13:22 +00:00
Ragnvald Maartmann-Moe IV
2db08923e8
MSG_(Read|Write)(Coord|Angle|CoordAngle)V. Cleanups, and preparation for use of vector ops in msg.c.
2001-12-12 21:56:09 +00:00
Bill Currie
8ddce20949
pr_*: add storep.p so pointers can be stored into entities
...
emit.c: convert & (address) to . in unary .
rewrite emit_assign_expr
expr.c: remove debug code and make unary . less agressive on address calcs
also convert & (address) to . for lvals
2001-12-12 20:35:58 +00:00
Bill Currie
f9149a0d6c
finally get around to renaming type_name to pr_type_name
2001-12-12 17:15:09 +00:00
Bill Currie
cc34e5954f
lots of work on better array/pointer/struct handline. doesn't quite work yet
2001-12-12 08:39:47 +00:00
Ragnvald Maartmann-Moe IV
f66b7a93e5
Major particle interface cleanup, several bugfixes, and minor performance improvements. Oh, check out "/help easter_eggs" (gl-only, at the moment).
2001-12-11 22:37:30 +00:00
Ragnvald Maartmann-Moe IV
e9690c8ee9
Whitespace.
2001-12-11 20:36:23 +00:00
Ragnvald Maartmann-Moe IV
489e23357e
Change sound default. Null is a useless default. SDL default in windows, oss in linux.
2001-12-11 20:31:18 +00:00
Ragnvald Maartmann-Moe IV
d4a8224d9b
Change hudswap to use a callback, and instead of passing a swap variable to 10 functions, where only 2 use it, use a global variable. Make a few scr functions static inline, too. Got a totally unexpected ~0.45fps speedup.
2001-12-09 14:05:30 +00:00
Ragnvald Maartmann-Moe IV
f9d3f9f017
Remove dead cvar.
2001-12-09 07:43:58 +00:00
Bill Currie
d344aea51f
store.p so pointers can be moved around
2001-12-08 21:43:44 +00:00
Bill Currie
b52606aed2
*sigh* Turns out id didn't feel like fixing the bugs in progs so don't blat
...
out frame errors under normal circumstances.
2001-12-08 20:58:09 +00:00
Bill Currie
00b2a45ecd
change the operator for "address" from "." to "&" so load.p can be implement.
...
this makes it so pointers in entities work.
2001-12-08 20:17:20 +00:00
Bill Currie
b03a1bee42
ok, structures seem to generate correct code now
2001-12-08 08:19:48 +00:00
Bill Currie
028f8a116d
immidiate indexed pointer access and some whitespace + reorg
2001-12-07 20:07:38 +00:00
Bill Currie
6039c210a7
compile fix for mandrake
2001-12-06 20:34:58 +00:00
Bill Currie
b8df7c0e9e
alpha compile fixes (bah, bloody size_t:P)
2001-12-06 20:18:24 +00:00
Bill Currie
37028cbbc8
fix a bit of sillyness pointed out by Dwayne C. Litzenberger
2001-12-05 16:29:09 +00:00
Adam Olsen
7c6765df60
buf[sizeof(buf)] = 0; is bad. buf[sizeof(buf) - 1] = 0; is good.
2001-12-05 09:24:19 +00:00
Bill Currie
52b0c8f3fc
how me a repeatable bug and I'll show you a dead bug }:>
...
(this fixes the "Cache_Free: not allocated" crash)
2001-12-04 17:46:42 +00:00
Bill Currie
e782153743
must make sure \0 doesn't get into the command buffer :P
2001-12-04 03:43:47 +00:00
Bill Currie
8be15a16e6
heh, turned out that didn't hurt overkill as much as I thought, but this
...
gives it a tiny boost (and will help more in the more alias heavy mods).
2001-12-04 03:13:02 +00:00
Bill Currie
3c06cd5620
another jump prediction optimisation
2001-12-03 23:40:22 +00:00
Bill Currie
21686adf10
remove redundant prototype
2001-12-03 23:40:07 +00:00
Bill Currie
68adae46b9
whitespace
2001-12-03 22:56:34 +00:00
Bill Currie
c130d38c6c
fix more bugs caused by the Hunk_TempAlloc changes and do some more jump
...
prediction fixes for msg_t and sizebuf_t
2001-12-03 22:11:21 +00:00
Bill Currie
610feb9fc6
properly terminate the string created by Info_MakeString (this was the source
...
of the absurd connect messages)
2001-12-03 21:24:48 +00:00
Bill Currie
650d682d2c
fix some nasty security holes causes by oversized connection strings. slows
...
down overkill slightly :/
2001-12-03 21:06:57 +00:00
Ragnvald Maartmann-Moe IV
20690b71e0
Argh! Try #2 .
2001-12-03 11:46:30 +00:00
Ragnvald Maartmann-Moe IV
43b31965a2
Back out local changes that shouldn't have been committed along with the rename to r_particles_max.
2001-12-03 11:08:10 +00:00
Ragnvald Maartmann-Moe IV
29a8d84806
cl_maxparticles to r_particles_max. annoying, but makes cl_ tab-completion less so.
2001-12-03 08:55:46 +00:00
Bill Currie
9bf575d081
several little tweaks that more than make up for the reversion of low-copy
2001-12-03 08:46:56 +00:00
Bill Currie
a619739bab
fix the server console for static builds (hmm, non-curses only?)
2001-12-02 20:11:21 +00:00
Bill Currie
ce9e2e62e3
whitespace
2001-12-02 17:29:14 +00:00
Bill Currie
4f2f686834
r_netgraph_alpha works again
2001-11-30 03:51:43 +00:00
Bill Currie
12a0a10d33
more alpha portability fixes
2001-11-29 19:35:25 +00:00
Bill Currie
72e2e871f8
goodbye PARANOID :P
2001-11-29 06:58:15 +00:00
Bill Currie
4689350283
fix qport
2001-11-27 04:50:41 +00:00
Bill Currie
67fde0c492
remove some debug code I accidently committed
2001-11-26 17:25:16 +00:00
Ragnvald Maartmann-Moe IV
dea0a2c08d
Whitespace.
2001-11-25 08:00:16 +00:00
Bill Currie
1cdf7fa55f
clean up the math for id skys a little. doesn't fix the sillyness, but that's
...
caused by the deliberate texuture wrapping and I think gl isn't coping well
with that when the texture coords wind up getting swapped due to the wrap.
2001-11-25 07:41:17 +00:00
Bill Currie
e99b422628
extinguish gl_fires. it's semi-broken, generally nasty (code wise) and
...
kinda tacky. also results in a slight speed boost:)
2001-11-25 06:24:26 +00:00
Adam Olsen
82095df9cf
- make Cache_Flush catch errors before Cache_Flush, and hopefully
...
print useful debugging info
2001-11-25 03:16:15 +00:00
Adam Olsen
b7cbc15508
- remove the unused DYNAMIC_SIZE define
2001-11-24 16:32:39 +00:00
Ragnvald Maartmann-Moe IV
4d406337b6
Move gl_fires into gl, where it belongs.
...
Also some small cleanups in particles.
Brighten grenade smoke a tiny bit, so it's not so invisible in the typically dark quake areas.
And some minor cleanups to water rendering.
2001-11-24 08:21:07 +00:00
Ragnvald Maartmann-Moe IV
405e8fffc9
Whitespace.
2001-11-24 08:16:43 +00:00
Ragnvald Maartmann-Moe IV
2c8d802935
Whitespace.
2001-11-24 08:08:44 +00:00
Ragnvald Maartmann-Moe IV
eabfbd6c98
Remove ugly ifdef (and coincidentally support for early ALSA 0.9).
2001-11-24 08:05:44 +00:00
Bill Currie
bd0ac4a38a
merge Mod_LoadSpriteFrame from gl and sw back into the common sprite loader
...
pulling the gl specific code (the loading of the texture into GL) into
a separate function (Mod_SpriteLoadTexture), which is just a stub in sw
2001-11-22 05:31:44 +00:00
Bill Currie
8826bdd9dc
nuke the d_subdiv16 cvar as its sole user got nuked in the previous commit
2001-11-21 19:24:57 +00:00
Bill Currie
0be2a31f2e
lots of code cleanup. Merge Mod_LoadAllSkins, merge the sw32 model loading
...
code into the sw model loading code, remove all refs to r_pixbytes from the
sw renderer (it was never anything but 1), kill libQFmodels_sw32, remove
all the 16 bit code from the 8 bit sw renderer.
2001-11-21 19:13:53 +00:00
Bill Currie
61382f4967
make absolutely certain skin->fb_texture is 0 if there are no fb pixels in
...
the skin texture.
2001-11-21 08:26:21 +00:00
Bill Currie
7d14013041
fix many, many bugs in the alias skin loading, transforming and rendering
...
code. This fixes blather's `melted models' (sw), the nq alt player model
skins (gl), the arbitrary limits on skins and skin groups in gl, and the
incorrect timing of group skins (animated) in gl.
2001-11-21 08:14:05 +00:00
Chris Ison
3e34fc83e4
-3dfx re-enabled
2001-11-21 02:36:48 +00:00
Bill Currie
bc95116825
fix a defined but not used warning
2001-11-20 23:22:19 +00:00
Chris Ison
5e05df417d
fix \n order in alias expansion
2001-11-20 20:07:15 +00:00
Bill Currie
712aecb1a2
use the Hash_*Element functions for opcodes to avoid the silliness of trying
...
to use strings for numeric keys
2001-11-20 18:54:15 +00:00
Ragnvald Maartmann-Moe IV
3f79367865
Minor rendering cleanup, also may help rendering speed when r_wateralpha = 1, by playing with draw order.
2001-11-20 09:41:15 +00:00
Bill Currie
ec75b71711
don't bother with fullbright skins for models that are allways fullbright and
...
clean up a misplaced function prototype
2001-11-20 08:45:26 +00:00
Ragnvald Maartmann-Moe IV
b836566a3d
Fix particle physics bug with blob2 particles.
...
(thanks to taniwha for pointing out half of the fix I was missing)
2001-11-20 08:31:27 +00:00
Bill Currie
5dab7ccaf7
precalculate smoe model specific info (wether the whole model is fullbright,
...
if it should have shadows, whether it should be scaled/translated (gl eyes),
and the minimum lighting (player)). give a 1.9% speedup in null renderer.
2001-11-20 08:02:35 +00:00
Ragnvald Maartmann-Moe IV
b69e372589
Whitespace.
2001-11-20 06:57:31 +00:00
Bill Currie
025d520522
remove some dead code
2001-11-20 04:48:04 +00:00
Bill Currie
4c628d0c04
fbdev stuff is now warnings clean, so all -Werror for it
2001-11-20 03:40:57 +00:00
Bill Currie
8d208ac3aa
make float != 0 tests work on alpha for when the value is actually an integer
...
(works fine on intel, but on alpha the denormals either produce an exception
or true zero: not quite desirable:)
2001-11-19 17:51:31 +00:00
Bill Currie
9d0320cc89
various portability improvements
2001-11-18 23:40:01 +00:00
Bill Currie
f0c03f8331
minor cleanups of Sys_ConsoleInput. Cleaning it up properly will take more
...
work, but this removes most of the redundant instantces. nq-sdl (or -sgl)
-dedicated won't have console input, nor will dedicated servers that don't
load a console plugin.
2001-11-18 22:08:24 +00:00
Bill Currie
46835e79fe
more quakeforge compiling on alpha patches
2001-11-17 05:26:30 +00:00
Bill Currie
cda6923ffa
this seems to be all that's needed to make progs 64 bit clean (minus issues
...
with sizeof (int) != 4, but that's not the case on alpha)
2001-11-17 04:32:00 +00:00
Bill Currie
cc66577f1c
fixes for building on alpha (linux)
2001-11-16 01:09:17 +00:00
Chris Ison
5c26b54697
remove smoke I added thismorning
2001-11-15 23:36:14 +00:00
Chris Ison
0e5262c2ea
colored explosion smoke
2001-11-15 20:53:23 +00:00
Bill Currie
288ec4251c
various fractional speedups
2001-11-15 19:37:29 +00:00
Bill Currie
598c82352f
fix printing of op_c for storeb
2001-11-15 19:36:40 +00:00
Bill Currie
267e51eaaf
while cute, cl_surprise is just way too expensive when gains are measured in
...
fractions of a percent, and a loss is 3%.
I hate doing this sort of thing :(
2001-11-15 01:37:57 +00:00
Chris Ison
8d50c8ea47
added cl_surprise cvar for easter eggs
2001-11-14 21:46:50 +00:00
Chris Ison
c72e2ef324
re-enable 8bit textures
2001-11-14 21:01:10 +00:00
Bill Currie
39401592d4
use malloc/free instead of Hunk_TempAlloc in Cmd_Exec_File so it can be called before Memory_Init
2001-11-14 20:16:57 +00:00
Bill Currie
e91180cccf
this should take care of wildcode's 8 bit issues
2001-11-14 16:36:42 +00:00
Bill Currie
42b5a5d150
reformat the output of "alias" so that capturing it is useful for config
...
scripts
2001-11-13 23:51:21 +00:00
Bill Currie
7888f1cb93
fix a couple of branch offset bugs
2001-11-13 19:52:03 +00:00
Bill Currie
4af2b18703
support printing uinteger values
2001-11-13 18:04:55 +00:00
Bill Currie
07b59d2f07
pr_comp.h:
...
o add OP_JUMPB
o OP_JUMPB renumberd some opcodes, so up PROG_VERSION
pr_edict.c:
o make the version error reporting more informative
pr_exec.c:
o implement OP_JUMPB (goto *(ptr + index))
pr_opcode.c: (libs/gamecode/engine)
o add OP_JUMPB to the table
expr.h:
o ex_uinteger support
o some const correctness
o prototype new_label_expr
qfcc.h:
o uinteger ussport
o add pointers for op_jump and op_jumpb
o prototype PR_GetArray
emit.c:
o general uinteger support
o new reference/reloc type 3: absolute statement address
o jumpb support (binary goto)
expr.c:
o uinteger support
o break the label name creation out of new_label_expr into
new_label_name
o some const correctness
pr_def.c:
o add PR_GetArray to allocate an array in global space
o factor out some code common to PR_GetDef and PR_GetArray that would
otherwise be duplicated
pr_imm.c:
o some const correctness
o uinteger support
pr_lex.c:
o uinteger support
pr_opcode.c: (tools/qfcc/source)
o support jump and jumpb
switch.c:
o rewrite the binary search code to support ranges.
2001-11-13 08:58:54 +00:00
Bill Currie
d27cd9cc21
s/type_size/pr_type_size/
...
remove the redundant type_size from qfcc
2001-11-12 23:56:46 +00:00
Bill Currie
50f2d46398
various cleanups
2001-11-12 20:58:06 +00:00
Bill Currie
d168a3daee
this should remove the requirement for gmake on bsd systems
2001-11-12 16:23:41 +00:00
Bill Currie
e71a788509
shink the cmd and alias hash table sback down (that got in by mistake) and
...
disable the cmd_hash_stats command (not needed for general use)
2001-11-12 03:47:30 +00:00
Bill Currie
e4fd746f71
this adds some stats to hash tables and a command to get at them for commands
...
and aliases
2001-11-10 01:13:29 +00:00
Ragnvald Maartmann-Moe IV
1dfd2d4eaf
More use of mathlib, and some small optimizations.
2001-11-09 18:51:33 +00:00
Ragnvald Maartmann-Moe IV
3d572df460
Bug fix (we weren't removing particles from the list until the frame after they died, which caused particle slots to be wasted).
...
Fix for a bug in particle trail pre-aging (sometimes created some 0 age particles).
And a couple small optimizations.
2001-11-09 12:09:46 +00:00
Bill Currie
4be5c86f36
forgot to add "uinteger" to the array of type name strings
2001-11-09 01:03:35 +00:00
Bill Currie
928d343295
pr_comp.h:
...
o add ev_uniteger to the types enum
o add opcodes for ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
progs.h:
o add uinteger accessors
pr_exec.c:
o implement ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
pr_opcode.c:
o add opcodes for ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
expr.h:
o prototype inc_users
qfcc.h:
o add externs for op_ifbe, op_ifb, op_ifae and op_ifa
emit.c:
o don't bother emiting an assignment to a temp def that's only used once
(ie, it's never read, only written to)
o support the new if* instructions
expr.c:
o support the new if* insructions
o dectect expression loops in append_expr
o support unsigned integers
o re-work temp def usage counting
pr_def.c
o debugging for temp def usage counts
pr_opcode.c:
o support the new if* instructions
qc-parse.y:
o provide defines for IFBE IFB IFAE IFA
switch.c:
o do binary searches for strings, floats and ints if there are more than
8 cases in a switch. Strings need more testing.
2001-11-09 00:58:16 +00:00
Ragnvald Maartmann-Moe IV
f60c39e0bc
Whitespace.
2001-11-07 06:59:10 +00:00
Ragnvald Maartmann-Moe IV
14aa428871
Switch to dot texture for sparks, and drop particle size. A little less cartoony effect.
2001-11-07 06:57:34 +00:00
Bill Currie
ae8c255eb0
re-anable the sorting. I guess snax was testing other things and forgot about
...
it.
2001-11-06 21:37:33 +00:00
Bill Currie
f3fcfea62a
fully specify the type for the comparison opcodes
2001-11-06 21:29:53 +00:00
Ragnvald Maartmann-Moe IV
f2f8513141
Reduce number of rand() calls in teleport and lava splash effects. Also preserves entropy, and we all know how important that is!
2001-11-06 21:02:18 +00:00
Bill Currie
469fd1b023
more mathlib usage
2001-11-06 20:36:20 +00:00
Brian Koropoff
ccd665e80c
This commit removes maplist.c and replaces it with filelist.c, which
...
contains general functions for creating lists of a type of file and
provides the commands maplist, skinlist, skyboxlist, and demolist.
2001-11-06 07:14:29 +00:00
Ragnvald Maartmann-Moe IV
ceb307aead
Cleanups, whitespace, convert some ints to unsigned int. Whee!
2001-11-06 05:06:37 +00:00
Ragnvald Maartmann-Moe IV
1c5701f51f
Fix a few minor quirks with particle trails.
2001-11-06 04:42:17 +00:00
Bill Currie
15b381909e
move maplist from quakefs.c to console/maplist.c. Unfortunatly, until the
...
client console plugin is usable, this means the clients link maplist.o
directly.
2001-11-05 22:24:16 +00:00
Bill Currie
460b53e9ee
rework the maplist code to use Con_DisplayList. this results in both
...
prettier code and prettier output.
2001-11-05 21:30:53 +00:00
Adam Olsen
ded1b4c057
- add some missing boundschecking to CDAudio_Play's track remap (in
...
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
maxspeed, entgravity, and setpause on the client. Can you say all
that in one breath? :)
2001-11-05 16:17:45 +00:00
Ragnvald Maartmann-Moe IV
6af4eae1e5
Couple of cleanups (remove unused variables) and a small optimization.
2001-11-05 14:59:05 +00:00
Ragnvald Maartmann-Moe IV
069ad1bfb1
Change r_lightmap_components default to 3. Looks like Nvidia fixed that horrid slowdown for 3 component texture uploads. :)
2001-11-05 10:11:21 +00:00
Brian Koropoff
008b59b777
The beginnings of an f_* reply system have been added. f_version works
...
like normal, f_skins reports the average percent fullbright for all loaded
skins, and f_skins skinname reports the fullbright percent for a signle
skin. cl_freply controls the time in seconds before another query can be
made. Set it to 0 to disable them. More queries will be added later.
The table for accessing special characters from the console has been
tweaked a bit. Expect it to get tweaked more in the future.
2001-11-05 07:23:51 +00:00
Bill Currie
dc779acdb5
build the texture chains such that they get rendered front to back. seems to
...
only get about 0.17% speedup in overkill (with just about every thing off),
but it might make more of a difference in-game.
2001-11-05 06:20:35 +00:00
Bill Currie
9f4a565523
rename some get_key functions so they're all uniqely named (matters only for
...
profiling purposes thanks to static:)
2001-11-05 03:21:42 +00:00