Commit Graph

212 Commits

Author SHA1 Message Date
Chris Ison 69fd58944e moved slist loading into cl_slist.c 2001-03-08 23:53:03 +00:00
Bill Currie 645a791315 add pr_checkextentions as promised 2001-03-08 00:27:35 +00:00
Chris Ison 16bc4735b1 adding rising smoke 2001-03-07 23:24:53 +00:00
Bill Currie 53c9732303 add PF_checkextension for later use. The pr_checkextension cvar will come
when I've had some sleep.
2001-03-07 10:22:51 +00:00
Bill Currie 771648a5b4 forgot to remove the old prstring stuff 2001-03-06 16:10:28 +00:00
Bill Currie f40b361fb3 hash.[ch]:
slight api change: the getkey and free functions now take a user data
	parameter (which is an aditional parameter to Hash_New.
cmd.c, cvar.c, quakefs.c:
	clean up the resulting errors.
pr_edict.c:
	use hash tables for lookups of function, global and field definitions.
	should speed things up a bit, ESPECIALLY when type checking is enabled.
2001-03-05 05:11:26 +00:00
Bill Currie 09b58f7e5f merge math code into utils 2001-03-05 02:06:05 +00:00
Joseph Carter fb9f7a1ba4 Forest's COM_FileBase rewrite. Doubt this is faster, but it's sure a lot
easier on the eyes.
2001-03-04 10:09:59 +00:00
Bill Currie cf3629b3b3 merge in my progs work off the `taniwha' branch. This prigs us a few nice
thinks:
  o Full progs modularity
  o CSQC should now be just a matter of creating the builtin functions and
    loading the code.
  o total independence from progs globals, functions and entity field layouts
    on the conditoin that their definitions have not been stripped from the
    progs file.
  o optional (though currently forced on) type checking on access to progs
    entity fields from C
  o the progs engine is fully shared between nq and qw.
2001-03-04 06:30:30 +00:00
Joseph Carter b507853b18 A number of keys should bring up the menu in demo playback, they now bring
up the console.
2001-03-04 01:55:12 +00:00
Joseph Carter e4e80437df Escape is still unconditional, but rather than being unconditionally menu
(or now unconditionally nothing since I killed the menu), it works as the
console.  In the future, when the new menu is implemented, it will fall
back to console if there's a problem with the menu (like there isn't one.)
2001-03-03 12:30:48 +00:00
Joseph Carter d28e15d171 Software netgraph fixed. Probably not the same as it was before, someone
else is welcome to change it to their liking, optimize it, remove the box,
whatever..
2001-03-03 12:16:24 +00:00
Joseph Carter 9c39a00a54 Fixed the netgraph 2001-03-03 11:05:20 +00:00
Joseph Carter c057c27d9a Menu has been killed completely from qw. It's dead. I doubt anybody will
even notice, given that QW's menu was crippled to the point that it was
completely useless anyway.
2001-03-03 09:42:35 +00:00
Joseph Carter 168d47402a Mostly whitespace, these files are now identical and COULD be merged, if
they weren't about to get a rewrite first.
2001-03-03 06:51:18 +00:00
Chris Ison 8ad00b04c3 added sharepath search when loading server list 2001-03-03 06:01:57 +00:00
Chris Ison 050b49c479 fixing missing oss dev as shown by taniwha 2001-03-03 00:54:46 +00:00
Bill Currie 3c17a888be more cleanups. rocket/shotgun bug not found yet 2001-03-02 23:40:34 +00:00
Ragnvald Maartmann-Moe IV 6962f954ed gl_colorlights gone, replaced by gl_lightmap_components. Valid values are 1, 3, 4. 4 (RGBA) default. Significant speedup going from RGB to RGBA on some boards.
Thanks to LordHavoc for the idea, and much of the design.
2001-03-02 23:38:40 +00:00
Ragnvald Maartmann-Moe IV 09f7689a09 Tweaked lava splash. 2001-03-02 23:32:24 +00:00
Bill Currie 6c9de8061b fix the silly OP_STATE bug. also erradicate pr_offs.c and its contents (the
source of the bug)
2001-03-02 19:18:04 +00:00
Joseph Carter c7d74c6743 Minor cleanup to download draw function. More to do, this is just a good
checkpoint before I make changes that may not work.
2001-03-02 00:29:35 +00:00
Bill Currie be8f1cef7c just some temporary debug info 2001-03-01 23:30:55 +00:00
Bill Currie 10e6b7af84 edict field access type checking :) Currently forced on, but it will become a
configure option in the future
2001-03-01 21:11:35 +00:00
Bill Currie 68220d1fb0 fix up packet logging for the new msg stuff 2001-03-01 20:41:20 +00:00
Bill Currie ef38fd2e79 progsdef.h is now used only for the PROGHEADER_CRC def. Much of the protocol
still seems to be broken :(
2001-03-01 18:44:19 +00:00
Bill Currie ad18afaa3c really clean up global and function access. Unfortunatly, frames are still
borked, at least for the view entity.
2001-03-01 08:34:30 +00:00
Joseph Carter 1094e146da COM_SkipPath now uses strrchr, it's much more readable now. 2001-03-01 07:42:28 +00:00
Joseph Carter b2a53d4b46 The download bar is now seperate from Con_DrawConsole. This is currently
not really for the best, but it will be soon.
2001-03-01 02:51:51 +00:00
Bill Currie c2213f2366 must set the data field in ALL edicts, not just player edicts :) 2001-02-28 23:35:20 +00:00
Bill Currie 63b990cd30 qw-server builds, but dies a sad death. I REALLY REALLY NEED to clean up my
progs globals and edict fields accessors, but I'm not so sure that's the cause
of the run-time error:

SV_Error: SV_ModelIndex: model progs/player.mdl not precached
Fatal error: SV_Error: SV_ModelIndex: model progs/player.mdl not precached

I suspect I failed to find the spawn function.
2001-02-28 22:44:38 +00:00
Joseph Carter 9564680d58 NQ's console is now identical to QW's, except for QW's download bar, which
IMO doesn't belong there and will be moving.  Other things may be moving
too, but I'm still debating them.
2001-02-28 10:49:39 +00:00
Joseph Carter 823be45d9d Con_Print now does Sys_Printf and logging itself. There was exactly one
use of Con_Printf in the code and it was appropriate for logging anyway.
As a result, Con_DPrintf now uses Con_Print directly for a slight speedup
there having two layers of function calls and varargs parsing to get to
the console.  Also ran the file through indent while I'm at it.
2001-02-28 10:21:38 +00:00
Joseph Carter 9c1988280b Cleaned up output of server print 2001-02-28 10:18:25 +00:00
Bill Currie dfaf767890 libqfgamecode now builds. Now for the fun part: getting qw and nq to work using
the new setup.
2001-02-28 09:12:01 +00:00
Bill Currie e5543eb0a6 next step of the progs merge done. just need to sort out interdependencies,
fix PR_SetString, and a few other things.
2001-02-28 00:56:03 +00:00
Bill Currie 7e14a0fbf3 clean up RETURN_EDICT and RETURN_STRING definitions to be both easier to read
and more correct for aliasing (and int size dependence, too:).
2001-02-27 19:05:05 +00:00
Bill Currie ea464d5928 new operand handling from nq 2001-02-27 08:21:40 +00:00
Bill Currie f6d047712d all -snd* params and environment checking have been removed from the sound
subsystem in favor of Cvars*. These new cvars are:
 o  snd_device  defaults to "" which selects the default device of the system
    (eg, plug:0,0 for ALSA 0.9 or /dev/dsp for OSS)
 o  snd_rate    defaults to 0 which selects the system default rate.
 o  snd_bits    defaults to 0 which selects the system default bit depth.
 o  snd_stereo  defaults to 1 (0 is mono)

* actually, not that thorough: alsa and oss only. The rest have just ws :/
2001-02-26 17:39:32 +00:00
Ragnvald Maartmann-Moe IV 4723086242 More comment updates! Flee in terror! (Right into the maw of that shambler behind you!) 2001-02-24 08:38:47 +00:00
Bill Currie 2bfeed6820 looks like utils is more or less complete for now, except for some fixes in
nq for abyss etc (ie, the magical -<mod> args).
The interface to the message subsystem got a revamp and all the mods to the .c
files reflect this. currently a little ugly, but I plan on abstracting msg
further to clean it up and make it more oo.
2001-02-23 23:16:13 +00:00
Bill Currie 981d067000 merge qw's net_com.c and checksum.c (net_com.c was identitcle to nq's
checksum.c) and then move the resutlting checksum.c into libs/utils
ditching nq's. Due to net_com.c, qw's libqfnet.a will need to be deleted or
you will get duplicate symbol link errors. Also merge crc.[ch] and move
qfplits.[ch] to their final homes. Also, remove a slightly overzealous use
of "static" in qfplist.[ch].
2001-02-23 18:31:48 +00:00
Bill Currie 265680d2c2 snd_alsa_0_9.c now works on my cards. Hope it still works for Despair. 2001-02-23 06:36:19 +00:00
Bill Currie 7227f77fb6 as alsa 0.6 never came out, ditch it and add 0.9 support (thanks, Abramo) 2001-02-22 20:51:51 +00:00
Bill Currie 42e52a7093 %s/libutil.a/libqfutil.a/g due to name space clash found when linking SDL.
New naming convention, all libs will be libqf<subsys>.a (should we instead
use libQF<subsys>.a?). The .so libs, when we get to them, will have to be
sorted out then.
2001-02-22 16:53:15 +00:00
Bill Currie 7516666084 libutil.a is now used by both qw and nq 2001-02-22 08:12:13 +00:00
Bill Currie 9aa50a847c clean up the mess caused by attempting to merge cmd.[ch]. When taken further,
this might give us nice controlability of when cvars can be changed.
2001-02-22 04:46:59 +00:00
Joseph Carter 4537b2daaa GGI has been eradicated. It's broken and none of us use it, therefore
nobody's fixing it.  Given that without DGA it's not really much faster
than X11 anyway and the lack of a maintainer, it's deadwood.
2001-02-22 00:24:45 +00:00
Ragnvald Maartmann-Moe IV a0565418d9 Stomped out lots of typos and case inconsistencies. fixme, Fixme, FIXME! 2001-02-21 23:45:49 +00:00
Jeff Teunissen e4608744d2 str*cmp -> str*equal, where appropriate. 2001-02-21 22:38:58 +00:00
Bill Currie 505e27e445 clean this up for our new names 2001-02-21 22:29:37 +00:00
Bill Currie c9ab2f1e10 forgot about all the automake macros 2001-02-21 22:26:47 +00:00
Bill Currie 8fc799f81c we finally have a bin naming scheme acceptable by all :)
nq-*
nq-server
qw-client-*
qw-server
2001-02-21 22:22:32 +00:00
Bill Currie cd7fdf33d3 s/stricmp/strcasecmp/ 2001-02-21 22:00:52 +00:00
Jeff Teunissen de96c6c3b8 Configure updates. QSG_VERSION has completed its change to
{QW,NQ}_QSG_VERSION, because NQ and QW support differing versions.
2001-02-21 21:38:07 +00:00
Joseph Carter 9a47e3c92c A modification to the gun location hack code.. The QW HUD was supposed to
give you a little more screen real-estate.  It does, but you still have a
big gun blocking most of your screen in the center.  If you turned off the
HUD, you got more screen and less gun.  That now happens whenever the HUD
is displayed.

This is a temporary measure.  At a later point, the gun will always be at
the bottom of the view area regardless of fov.
2001-02-21 19:13:03 +00:00
Joseph Carter 23ed09f249 Slightly different gl_fires effect. taniwha may back this out if he hates
it, but I kinda like it.
2001-02-20 23:36:50 +00:00
Joseph Carter c2cea45217 NEWSTYLE is gone, sortof. The Cvar defaults for NEWSTYLE are now just the
defaults in non-win32 targets.  BASEDIR/SKINBASE are gone and the Cvars
which use them in the code are just given the oldstyle defaults now.  Use
of "base" is gone.  It was a half-assed solution to a problem that doesn't
exist yet.  When it finally does exist, we'll fix it right.
2001-02-20 23:06:48 +00:00
Zephaniah E. Hull a7b59259c1 New name scheme for generated bins.
cougar-(qw|nq)-cl-*
cougar-(qw|nq)-sv

If someone really wants to a S&R on cougar in configure.in and the two
Makefile.am files will change it to something else.
2001-02-20 13:46:04 +00:00
Zephaniah E. Hull 75618f96c9 Working on one common configure which lets nq and qw compile.
There, needs a little clean up though.
2001-02-20 03:10:06 +00:00
Bill Currie 5e7703d5fe missed these files. not bad considering the number of files involved :) 2001-02-19 21:17:47 +00:00
Bill Currie 87854e1a0c initial checkin of most recent newtree and nuq(?) source 2001-02-19 21:15:25 +00:00