Commit Graph

928 Commits

Author SHA1 Message Date
Jeff Teunissen c757f969c4 sw_view.c: whitespace
gl_screen.c: Some whitespace, some optimization. Still looking for the
culprit killing contrast in GL.
2000-10-24 02:22:29 +00:00
Jeff Teunissen ae76d79b40 Corrected algorithm, optimized code, and reversed the order of
brightness/contrast operations... brightness is applied first, then
contrast. A contrast of 0 is now /always/ solid medium grey.
2000-10-24 01:43:35 +00:00
Bill Currie b4a29a6766 forgot to remove some code 2000-10-23 15:29:20 +00:00
Bill Currie ac4d76b52a make vid_sdl.c use the new window size code and the vid_fullscreen cvar instead
of the -fullscreen command line arg (eww:). Also, doc vid_fullscreen in
vid_sgl.c
2000-10-23 15:27:10 +00:00
Bill Currie 66bc30c2a8 gl_polyblend: RIP 2000-10-23 14:58:15 +00:00
Jeff Teunissen f7f968daeb -gamma removal 2000-10-23 10:26:43 +00:00
Jeff Teunissen 17f9704978 -gamma parameter is _gone_. Colors are now almost exactly what they are in
software. If you want to hack the colors, use the cvars.
2000-10-23 09:35:54 +00:00
Bill Currie 1abb6fe74c fix the misaligned fullscreen window once and for all (fingers crossed:) 2000-10-22 07:14:47 +00:00
Bill Currie c43b9161c5 fix for linux 2.2.17. Hopfully works for earlier kernels still 2000-10-22 01:30:34 +00:00
Bill Currie f28f087ddc width and height name issues 2000-10-21 21:17:51 +00:00
Bill Currie 5c92b35c6e fix width and height name issues 2000-10-21 21:14:12 +00:00
Bill Currie 499eaa2a7d cvar.c:
%g is no good :/
menu.c screen.c:
	float -> int cleanup for scr_viewsize
vid_glx.c:
	remove unused vid_mode cvar
2000-10-21 21:08:04 +00:00
Bill Currie 0e950c65f5 change %f to %g in Cvar_SetValue so 1.0 gets printed as 1 2000-10-21 07:47:14 +00:00
Bill Currie d295f183ba remove va from commdef.h and fix the consequences 2000-10-21 07:34:56 +00:00
Bill Currie 63fc732758 clean up the includes ov vid.c and bring over va.h from nuq 2000-10-21 07:20:57 +00:00
Bill Currie dcd1201131 create VID_GetWindowSize in vid.c and use it elsewhere for window size
selection.  in_x11.c just had refs to scr_width and scr_height removed.
2000-10-21 07:15:30 +00:00
Jeff Teunissen afae879d2e dga_check.h: DGA and VidMode check functions return qboolean, not
int. Cleaned up prototypes to not include variable names.

dga_check.c: Fix bug in DGA detection that lead to segfault.

in_x11.c: Better DGA input support for X targets; The -nodga parameter is
gone, it is now the in_dga Cvar, which is dependant on the _windowed_mouse
Cvar. in_dga is archived.
2000-10-21 05:30:34 +00:00
Bill Currie f0c35d7f9d o rcon now prints (hidden) instead of the rcon password
* taniwha  drops a 900lb security manual on zoid's head
	 <taniwha> nah, make that kg :)
 o  fix a potential buffer overflow
2000-10-20 18:03:26 +00:00
Jeff Teunissen ea766e6203 Fix the VID_SetCaption () bug here too 2000-10-19 18:07:00 +00:00
Bill Currie f837616025 locs.c:
handle dos line endings. COM_FOpenFile /always/ opens files in binary
	mode in Windows (and *nix is effectively binary only anyway) and the
	\r characters being left in the location description strings was
	causing %l to print a blank line. Makes for unhappy users :/
teamplay.c:
	handle %%. this seams to have been missed.
2000-10-18 17:06:44 +00:00
Jeff Teunissen 17ea696c0d One of the biggest things keeping -mem/-heapsize numbers up is the video
memory in software mode. This is now taken care of, the memory is now
grabbed using calloc.

On Unix systems and all systems using SDL, the default video memory is now
8MB. This should now be enough for almost everybody, unless you have some
truly huge maps and boatloads of sounds. The minimum memory allowable is
now down to 4MB, but complex maps and/or models can cause the game to quit
-- not like this wasn't a problem already with the old 5.3MB lower limit,
but there it is.
2000-10-18 10:16:11 +00:00
Bill Currie 2682888425 the big cvar value -> int_val audit. seems to work ok 2000-10-17 03:17:42 +00:00
Bill Currie 4478b82af4 add some more *cap flags to the definition list (those mared with a * are not
yet implemented). Also add the p and t flags to the *cap string.
2000-10-16 20:41:06 +00:00
Bill Currie a4ccdad288 include string.h and or strings.h 2000-10-16 15:34:53 +00:00
Anton E. Gavrilov 9698c439dc This hopefully fixes the problem with feigning spies in TF staying visible when cl_deadbodyfilter is on. 2000-10-16 08:15:22 +00:00
Bill Currie cf8afd73a3 vid_fullscreen cvar cleanup 2000-10-16 04:49:12 +00:00
Bill Currie 6868542519 add some cvar discriptions 2000-10-16 03:29:42 +00:00
Bill Currie 8e7499cb1b fix a nasty buffer overflow giving a potential remote access to the system via
the client. Could be especially nasty if the client is running as root and
stuffcmds can come from anywhere. exploit details:

stuffcmds rcon_password <long password>
stuffcmds rcon <long command>
2000-10-16 03:18:37 +00:00
Bill Currie e60ae3b48c fix the paused message swaparoo 2000-10-16 03:12:03 +00:00
Bill Currie c808bf155e Clean up SV_Serverinfo_f a bit where it sets the cvar corresponding to the
server info key.
2000-10-15 04:31:32 +00:00
Bill Currie 1dd0f7ed0f Conditionally disable bunny hopping (speed jumping). To disable bunny hopping
on your server, put `serverinfo no_pogo_stick 1' into your server.cfg. It's
called no_pogo_stick for two reasons: the effect is called "pogo stick" in the
source code in a comment from the original id source code and also as a minor
(and very week:/) obfustication for `cheaters' trying to set it in their
clients. However, the client checks for no_pogo_stick in the server info and
forces it on when appropriate and having them in disagreement would only make
prediction a little screwy anyway :). BTW, when enabled this actually fixes the
original bug that allowed bunny hopping in the first place (though you still
get a jump grunt when you try to bunny hop; minor bug).
2000-10-15 04:26:09 +00:00
Bill Currie 9dc1c00a16 whitespace 2000-10-14 17:05:13 +00:00
Thad Ward 17f1b3b1e6 add locs.c to the vc6 projects
change the name of the server bin in vc6 to qf-server.exe
2000-10-14 07:48:30 +00:00
Jeff Teunissen e0a53aa9a2 cl_main.c: More VID_SetCaption status messages.
vid_*: Make it so that VID_SetCaption can be safely called with the output
from va()
2000-10-14 07:10:56 +00:00
Jeff Teunissen fd81937dd9 vid_sdl.c: Removed some stupid includes, some whitespace
vid_sgl.c: Added freelook and joystick support.
2000-10-13 06:16:27 +00:00
Jeff Teunissen 8903d650d2 Makefile.am: misc. fixes to changelog building.
input.h: Use int_val for freelook
cl_input.c: Use freelook macro instead of in_mlook.state
in_svgalib.c: freelook support and whitespace
in_win.c: whitespace and minor optimization in mouse support
in_x11.c: freelook support
vid_ggi.c: joystick support and minor opt in mouse support
vid_sdl.c: joystick support, freelook support, minor mouse opt, spaces->tabs
2000-10-13 05:36:46 +00:00
Jeff Teunissen 40269b2bb5 OSS sound now retries opening /dev/dsp up to 3 times if it fails the first
time, by checking whether the device is busy or temporarily unavailable (I
haven't seen the latter happen, but the former may occur if your window
manager is set to make noise when a window pops up). Between tries, the
client sleep()'s for one second (should this be half a second or even
faster?).
2000-10-11 10:34:23 +00:00
Jeff Teunissen 4173134bae Create a window class ICCCM hint, so the window manager knows what the
name of the program is. It's "`basename $0`.PROGRAM".

Also, create a window size ICCCM hint, forcing the window to the size it
should be -- we don't want it resized, so now the window manager ought to
get the picture. :)
2000-10-11 09:54:27 +00:00
Jeff Teunissen 8138b9c4e8 Fix bug in -game parsing 2000-10-11 09:50:13 +00:00
Bill Currie 8a62bebaef skip over / when extracting the map name 2000-10-10 23:35:09 +00:00
Bill Currie f5b74e900c silence COM_FOpenFile when the file can't be opened unless developer is set.
It is the caller's responsibility to report failure.
2000-10-10 23:19:53 +00:00
Bill Currie 5314fb8cca remove uneeded (and prblematic) header 2000-10-10 23:18:30 +00:00
Bill Currie 3c4b203eee bloody bsd headers with bloody #warning
!lart bsd :)
2000-10-10 22:00:35 +00:00
Jeff Teunissen 72cdb02057 Add #include "console.h" 2000-10-10 21:49:33 +00:00
Jeff Teunissen dd7333a2da cd_linux.c: whitespace.
quakefs.c: -game n[,n ...] support.
snd_oss.c: Compilation support for OSS on BSD systems.
2000-10-10 21:45:07 +00:00
Bill Currie 4962c3bf0b port over nuq's modified filesystem init code. no longer creates dirs when
fs_userpath is ".".
2000-10-10 19:57:01 +00:00
Dabb e9276ec91f Added locs.c. 2000-10-07 17:20:17 +00:00
Dabb 20735dd8f7 Patch by Nye Liu <nyet> 2000-10-07 10:56:33 +00:00
Dabb 8b573f8d7e Added HAVE_CONFIG_H and pals. Compiles under win32 now. 2000-10-07 10:24:46 +00:00
Bill Currie ccd1f6f025 fix the misterious crass caused by loading a .loc file a second time. This one
was very sneeky :)
2000-10-07 07:53:21 +00:00
Zephaniah E. Hull dbda53e93b More tweaking of stuff, fixed a minor bug in the loc stuff, may still
have the crash causer though.
2000-10-07 04:06:08 +00:00
Forest Hale 903fc1583e treat gl_lightmode as an int_val, epsilon checks on brightness/contrast 2000-10-06 23:50:12 +00:00
Zephaniah E. Hull 52c54c9403 Reset died and last recorded locations on new map. 2000-10-06 19:43:38 +00:00
Zephaniah E. Hull 3fa1d34c1d %s %d and %r, skin, death location, and last reported location,
respectively.
2000-10-06 19:33:55 +00:00
Bill Currie 6352cf6186 fix the description 2000-10-06 18:47:33 +00:00
Bill Currie c91fd814e9 turns out some like interpolated, others don't. snd_interp conrols this.
Defaults to on so those used to 11k sampling won't be too suprised.
2000-10-06 18:42:02 +00:00
Zephaniah E. Hull 70657119f3 Would help if I added locs.h and locs.c. 2000-10-06 16:31:53 +00:00
Zephaniah E. Hull 760dfb8541 %l %a %A %h, for say and say_team, not quite finished yet. 2000-10-06 16:30:37 +00:00
Bill Currie 23f5c58362 new sound resampling from nuq. If 16 bit internal samples is too much for your
system, set loadas8bit.
2000-10-06 15:53:30 +00:00
Bill Currie 21787a552f Add Qgetline for Mercury. Safely read in a random lenght line from a file. 2000-10-06 07:05:22 +00:00
Zephaniah E. Hull bdb02ef735 Reduced the dynamic light range, might still need tweaking. 2000-10-06 03:28:31 +00:00
Bill Currie 69e5e41e02 bring this over from nuq (kept forgetting to). gives things like -sndspeed 2000-10-05 19:16:27 +00:00
Bill Currie bd22c816d2 cleanup some whitespace 2000-10-05 19:15:41 +00:00
Bill Currie 3df74ebf3f should not be setting x_disp to anything 2000-10-05 19:14:14 +00:00
Bill Currie c2a1e1f229 destroy the gl context BEFORE destroying the window. 2000-10-05 16:22:18 +00:00
Bill Currie 4c0d05a73b another rednundant ref to in_dga_mouseaccel bites the dust 2000-10-05 15:28:45 +00:00
Bill Currie 306cadad05 remove redundant refs to in_dga_mouseaccel 2000-10-05 15:27:14 +00:00
Bill Currie d48fbdd030 probable fix for pink boxes 2000-10-05 15:09:09 +00:00
Bill Currie 0a8dc3c98f make r_wateralpha actually do something :) 2000-10-05 04:40:16 +00:00
Dan Olson 9b6a9a59b2 Make SDL/SGL include method jive with sdl-config 2000-10-04 23:34:56 +00:00
Bill Currie fc6ff9374d A solution to the problem of when to set the extended info keys. This allows
for nice large amounts of client info to be sent to a QuakeForge server.

sv_main.c:
	Append " QF" to the challenge reply. This DOES NOT break older clients
	because atoi stops parsing at the first non-number character but
	returns the value of what it successfully parsed. If a client does
	choke on this, its libc is broken and not to spec.

cl_main.c:
	Check for "QF" in the challenge string and if it's there, set the
	QF extended info keys before connecting. Also, make sure the extended
	info keys are NOT set prior to starting the connect process. This is
	done is the CL_Disconnect function.
2000-10-04 16:22:51 +00:00
Bill Currie 065abe9464 make VID_SetCaption consistent wherever appropriate (ie possibly windowed
environments). caption is "PROGRAM VERSION[: text]".
2000-10-04 05:45:48 +00:00
Bill Currie 46cbb108da bah, I broke connecting to old servers :(
remove *qsg_version and *cap on disconnect
set *qsg_version and *cap after connection but only if the server presents
*qsg_version (it will have big enough info buffers if this key exists). Doesn't
yet send the updated values to the server as there is currently no way to do
so :(  I started out creating a setfulluserinfo, but ran into design/security
problems with that approach. What's needed is to either find a secure way to
update these two star keys (however, special casing is ugly) or make them
non-star keys (I don't like that either: too easy to fiddle with). Another
possiblity is to force a reconnect after they are set.
2000-10-03 22:39:51 +00:00
Bill Currie 87be5c56ca add SDL sound support. totally untested (other than it compiles). Also not yet
autoconfiscated.
2000-10-03 20:15:19 +00:00
Dabb 496de868dc Zlib support for BC win32. 2000-10-03 15:05:24 +00:00
Jeff Teunissen 85e0b2b6aa X11 targets have runtime caption setting now. 2000-10-03 07:10:48 +00:00
Bill Currie 583762ad4e add .vimrc 2000-10-02 18:11:41 +00:00
Bill Currie 015c3ace6c fix for 40 column output. forgot that 10*4=40 and \n after 40 chars doesn't do
what was wanted.
2000-10-02 17:50:02 +00:00
Bill Currie a72953290b Pretty print the maplist. MUCH nicer output (sorted columns) 2000-10-02 17:24:18 +00:00
Bill Currie bc2af514b3 add maplist to the list of commands supported by the server 2000-10-02 17:22:37 +00:00
Jeff Teunissen 04074515eb Complete the qstat fix. 2000-10-02 04:24:08 +00:00
Jeff Teunissen 3742a9e158 Makefile.am: Add a dist-zip target for making .zip distros.
sv_send.c: This _should_ be the proper fix for qstat.
2000-10-02 04:02:48 +00:00
Bill Currie 21ff288d88 disable "Last message repeated...". This was causing problems with qstat etc and
also with other output in general.
2000-10-02 03:31:52 +00:00
Bill Currie a88dc7371c white space 2000-10-02 03:08:43 +00:00
Dabb ec660f6a33 Added files - builds again. 2000-09-30 17:52:31 +00:00
Jeff Teunissen 2186a58fe5 Disable the code that forces gl_texsort off when multitexture is active 2000-09-30 08:01:27 +00:00
Jeff Teunissen 439b28bbd3 Whitespace 2000-09-30 07:59:14 +00:00
Jeff Teunissen 59f6bdf231 gl_screen.c: Whitespace
sbar.c: Simplify Sbar_ColorForMap()
gl_view.c: Remove palette shifting code -- we don't do that any more in
GL, we alpha blend the screen. Bad to do it twice, plus it messes up
texture loads.
2000-09-30 05:58:40 +00:00
Bill Currie 677b7de94d %s/HAS_ZLIB/HAVE_ZLIB/g 2000-09-30 05:56:00 +00:00
Zephaniah E. Hull e4c9ccff8f Cvar audit 1, all unused cvars are gone, with the exception of software
rendering, and the server.
2000-09-30 04:08:40 +00:00
Zephaniah E. Hull cb0d141132 GL rendering path audit. 2000-09-30 02:46:48 +00:00
Bill Currie 8601bc905b more fixes 2000-09-29 23:36:16 +00:00
Bill Currie 52b4d36fae hehe, thou shalt not include glquake in non-gl code :) 2000-09-29 20:02:16 +00:00
Zephaniah E. Hull 01a5c65e52 More cleanup, now working on the rendering line as a whole.
Con_SafePrintf is no longer needed, as Con_Printf is safe.
2000-09-29 19:29:22 +00:00
Bill Currie e7a25fb76a fix a couple of thinkos 2000-09-28 20:07:44 +00:00
Thad Ward c8e95a85fd added zlib support in the VC projects.
WARNING: re-read readme.win for instructions on getting this working
on your system, since it depends on zlib being installed on your system,
similar to the way mgl is done.
2000-09-28 19:52:46 +00:00
Bill Currie 8f3084e923 fix for win32 zip support 2000-09-28 19:48:06 +00:00
Bill Currie 6cfe4a3128 change the client side download rename code to reject ANY new / in the file
name. This means that if maps/foo.bsp is requested, maps/foo.bsp/nasty_server
will be rejected but maps/foo.bsp.gz will be accepted.
2000-09-28 15:35:05 +00:00
Dabb f6cdc275f0 Added gl_model_xx and model_xx files to makefile. Compiles and works again. 2000-09-28 15:22:55 +00:00
Dabb 81c4543138 BC compile fixes. Globals need externs. 2000-09-28 15:01:11 +00:00
Bill Currie 667f28178f oops, got the sense of the zip flag backwards. Sending uncompressed files when
compressed is wanted and vv is not a good idea.
2000-09-28 13:35:59 +00:00
Zephaniah E. Hull 822453e3e2 Whoops, enable GL_BLEND on start. 2000-09-28 08:12:50 +00:00
Zephaniah E. Hull d02d9e140b Oops, frogot the header.
Minor whitespace cleanup in gl_rmain.c
2000-09-28 08:05:09 +00:00
Zephaniah E. Hull 383075bb39 More audit cleanups, glShadeModel this time, and gl_affinemodels does
what it says now, instead of the reverse of what it says.
2000-09-28 07:56:00 +00:00
Zephaniah E. Hull d92270d20c Compile fix from WildCode. 2000-09-28 07:38:28 +00:00
Zephaniah E. Hull 3935e40c3a Killed the mirror code completely. 2000-09-28 07:16:29 +00:00
Zephaniah E. Hull 660b82e3ea Bigger cleanup of glTexEnvf calls. 2000-09-28 07:09:32 +00:00
Zephaniah E. Hull 0b8cf1e303 glTexEnvf audit. 2000-09-28 06:58:24 +00:00
Bill Currie 1aa9084aa9 add support for COMPRESSED downloads!!! Of course, both client and server must
both support this. The client tells the server it can support compressed
downloads by setting the z flag in the *cap userinfo. If the server detects
that the client supports compression, and the file to be downloaded is
compressed (more accurately, has the .gz extension), the server sends a special
download packet with a size of -2 (-1 indicates error),, percent of 0, followed
by the new name of the file (eg maps/foo.bsp.gz for maps/foo.bsp). The client
WILL NOT accept a new filename that doesn not match the old name for the length
of the old name. The client also will not accept a new name if there are . or
.. path components. If the client rejects the new name, it prints a warning
message and aborts that download.
2000-09-28 06:11:55 +00:00
Zephaniah E. Hull 6f37b6c074 If we use gcc, then we use -pipe, or we use -save-temps.
Added *.i and *.s to the clean rule, for above -save-temps.
2000-09-28 04:32:55 +00:00
Zephaniah E. Hull f6bfcfc82d State change cleanup, but saner code! 2000-09-28 00:22:24 +00:00
Bill Currie 86f87122c0 zlib support (gzipped pack contents). if you have a probelm with gzgets, you
have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
2000-09-27 19:44:26 +00:00
Bill Currie 7c12c9b4c7 hopefully fix alias model loading for multiple skins and/or skin groups 2000-09-27 17:01:17 +00:00
Bill Currie ae61fee723 latest alsa 0.6.x support from nuq 2000-09-26 18:58:50 +00:00
Jeff Teunissen cbc9d34954 Back out Chris Ison's patch, make another change for readability (in this
case, 255 << 8 is more readable than 255*256, and was the intent anyway)
2000-09-26 16:15:57 +00:00
Jeff Teunissen 50abe6080e Joystick support generalized, autoconfiscated. Systems without joystick
support are built with joy_null.c. To create a joystick driver for a new
system, take a look at joystick.h and joy_null.c for the driver
interface. I'd like to see a Windows driver using this interface, it would
probably simplify in_win.c greatly.
2000-09-26 14:16:09 +00:00
Zephaniah E. Hull 68a4e60eaf Behold, the great state audit, and a few other things.
First off, a cleanup in alias model rendering.
Then we have R_CullBox, which is now a inline function.
Then the big one, the state change cleanup, right now GL_BLEND.
2000-09-26 09:03:21 +00:00
Jeff Teunissen b0fc35b3e3 Apply patch from Chris Ison <wildcode@users.sourceforge.net> with some
changes from me.
2000-09-26 07:53:50 +00:00
Bill Currie fb55453675 David Jeffery's linux joystick support ala nuq 2000-09-26 03:21:06 +00:00
Bill Currie 9a4e650790 port over int_val from nuq. much better for integer cvars 2000-09-26 03:17:09 +00:00
Thad Ward 60a1c3b857 corrected a minor issue. 2000-09-25 23:39:47 +00:00
Jeff Teunissen eabff4f06b Forgot a couple of )'s in audit. 2000-09-25 06:50:59 +00:00
Jeff Teunissen 71b841adeb Cvar audit; These files set cvars improperly, by changing their values
without using Cvar_SetValue ().
2000-09-25 06:36:50 +00:00
Jeff Teunissen bf2ec8da6d glquake.h: Comment out <GL/glu.h> -- may be used in the future, but we
don't use libGLU right now.

gl_draw.c: brightness/contrast are created in r_view.c, I'm a little
surprised this didn't cause a crash.

menu.c: Use bound() for sliders.
2000-09-25 04:12:58 +00:00
Bill Currie a38f854210 a little ws cleanup 2000-09-25 02:02:58 +00:00
Bill Currie 9ece49b4e8 fix for Bug #105221 though it seems repeats were ignored anyway. this was done
by backporting the glx/x11 changes from nuq
2000-09-24 03:43:06 +00:00
Bill Currie b88799880f fix alias model loading for when the model has groups. gdbinit added to ease
debugging
2000-09-24 02:34:35 +00:00
Jeff Teunissen 830d6e044e debian/*: Yaay, Debian packages. They're not perfect, but they should do
the job. -3dfx doesn't get a package built right now, there
are...obstacles.

acinclude.m4, configure.in, Makefile.am: -sgl is detected separately from
-sdl now, and HAVE_XMESA is no longer in use.
2000-09-23 08:06:40 +00:00
Thad Ward 2b4dcee14d fixed the vc6 projects for the model change 2000-09-23 01:17:04 +00:00
Anton E. Gavrilov ed0b3b616b Cvar_SetValue: cvar_t *var_name is confusing, renamed it to *var 2000-09-22 15:38:05 +00:00
Anton E. Gavrilov c85a468602 1. Cvar_CvarList_f() prints cvar flags (like Q2/Q3 do)
2. CVAR_HEAP makes no sense now that ALL cvar are stored in heap.
3. No need to allocate memory for cvar descriptions
4. ^= CVAR_USER_CREATED ---> &= ~CVAR_USER_CREATED
2000-09-22 15:32:52 +00:00
Forest Hale 1a3eb27f8b changed texture update validation to normal CRC 2000-09-22 15:08:28 +00:00
Zephaniah E. Hull 5242630d16 I don't know WHY having the charset loaded as a texture after the
crosshair makes it look like crap, but it does, so it is loaded
before the crosshair now, looks MUCH nicer.
2000-09-22 09:12:03 +00:00
Zephaniah E. Hull 210ba16069 First off in gl_draw.c we have some nice cleanup code for the upload
code.

Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!

Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
2000-09-22 09:08:08 +00:00
Jeff Teunissen 9691cca81d Palette never gets changed in GL mode now. 2000-09-21 19:15:44 +00:00
Bill Currie 1d3935a903 add desti's nodga patch with modifications to control the grabbing of kb and
mouse input
2000-09-21 15:23:35 +00:00
Jeff Teunissen acace1d0eb mmap should set PROT_READ|PROT_WRITE, not just PROT_WRITE. Takes care of a
problem with FreeBSD. Also, check for MAP_FAILED instead of
(unsigned char *)-1
2000-09-21 06:27:08 +00:00
Bill Currie ddef594b2e gl bmodel fullbrights implemented. I hope. I'll find out for sure when I get
home.
2000-09-20 23:06:26 +00:00
Bill Currie 96aba78186 forgot to rename Mod_LoadMMNearest to Mod_ProcessTexture 2000-09-20 22:21:25 +00:00
Bill Currie b55b0264b5 model loading reorg ala nuq. once again, gl hasn't been tested (will test when
I get home tonight). This is in preparation for bmodel fulbrights.
2000-09-20 22:11:17 +00:00
Jeff Teunissen 64ec067a25 whitespace (spaces -> tabs) 2000-09-20 04:13:52 +00:00
Jeff Teunissen a3e19d5cc2 gl_screen.c: Minor tweaks, contrast gets clamped to 0.1-1 instead of 0.2-1
view.h: Add brightness, contrast cvars as extern
menu.c: Change brightness scroller to use the brightness cvar, add
contrast scroller.
r_view, sw_view.c: Add brightness/contrast cvars to software, and make
them work.
2000-09-20 04:06:12 +00:00
Bill Currie 3396ca6fde ALSA 0.6 support added. old snd_alsa.c renamed to snd_alsa_0_5.c 2000-09-18 03:07:49 +00:00
Forest Hale 69edf96241 added back -basedir 2000-09-11 12:26:53 +00:00
Bill Currie 9f476ee5c6 port over a sound init fix from oldtree that prevents a crash if sound doesn't
init properly
2000-09-07 17:31:07 +00:00
Zephaniah E. Hull 51aa5518ae Slight change in the crosshair code, minor cleanup really. 2000-08-31 17:36:02 +00:00
Bill Currie 7e6d2f95c5 gl_model.c:
sprintf -> snprintf
gl_rmain.c:
	slight optimisation (thanks, LordHavoc)
2000-08-27 11:05:11 +00:00
Bill Currie a2129d7f66 add qf-client-sdl and qf-client-sgl to the ignore list 2000-08-25 23:24:27 +00:00
Anton E. Gavrilov 66a91044bb cl_parsesay --- parse $\ (fake); $[, $]; $R $G $B $Y (ocrana leds);
Note that this cvar is different from QWF's cl_parsesay.
cl_nofake --- unhide fake messages from other players
2000-08-22 18:54:01 +00:00
Anton E. Gavrilov 03846c9bec Ooops (forgot an #include) 2000-08-22 18:00:12 +00:00
Anton E. Gavrilov d46f19e7ae Add "overloaded" impulse command (e.g. impulse 5 4 1) --- a hack that
only works correctly in standard deathmatch but may be useful in TF too
2000-08-22 17:53:48 +00:00
Maddes Buecher b72492afd3 EndFrame function by FrikaC/Maddes 2000-08-20 19:47:37 +00:00
Maddes Buecher 1cb4241fb4 +USE unbound fix 2000-08-20 19:17:44 +00:00
Maddes Buecher a927261f89 Conwidth/height charset fix by TcT: weird charset when you set -conwidth/-conheight to other values than screen resolution 2000-08-17 20:15:20 +00:00
Maddes Buecher f9bc5b2c22 Weird cvar zeros fix 2000-08-17 18:28:28 +00:00
Maddes Buecher ac7199d6e2 Bound keys not saved in quotes fix, this caused problems with a binded semilicon 2000-08-17 17:37:48 +00:00
Dabb af1a000fb1 Why SockadrToNetadr(&from,&net_from) twice? Removed extra. 2000-08-17 16:48:06 +00:00
Dabb 1f4f2e1c36 Add cvar sys_nostdout to WIN32 clients too. Note: sets stdout DISABLED (1) by default. 2000-08-17 15:44:17 +00:00
Dabb 798518474b Allow disabling stdout with sys_nostdout with SDL targets too.. 2000-08-17 15:40:41 +00:00
Dabb 576a32782a Fix nostdout bug ... 2000-08-17 13:38:57 +00:00
Dabb e41b8e7faa Removed extra Sys_Printf function (its in sys_win.c now) 2000-08-17 12:44:42 +00:00
Dabb 9b90de262a Added "last message repeated xx times" to cut down repeated lines from Con_Printf 2000-08-17 12:42:37 +00:00
Dabb 7e689832db Added "last message repeated xx times" to cut down repeated lines from Sys_Printf. 2000-08-17 12:42:08 +00:00
Dabb da1b50442f Moved Sys_Printf from sv_sys_win.c.
Added graph char translations to Sys_Printf (from sys_unix).
Added "last message repeated xx times" to cut down repeat lines from Sys_Printf.
2000-08-17 12:40:26 +00:00
Dabb 50529263fb Moved Sys_Printf to sys_win.c. 2000-08-17 12:36:55 +00:00
Maddes Buecher b34a867ec0 FTOS fix: no leading spaces and keeping maximum precision for float values 2000-08-16 21:43:24 +00:00
Maddes Buecher b62172b915 SV_CheckVelocity() fix (cvar SV_MAXVELOCITY) 2000-08-16 20:49:06 +00:00
Zephaniah E. Hull e5581c8373 Fix of a bug with fullbright models.. 2000-08-16 12:29:13 +00:00
Zephaniah E. Hull b5e459d224 FULLBRIGHT SUPPORT FOR MODELS!
Yes, this means that your standard grenades, the pipebombs, proxys,
sents, etc will all have fullbright pixels!

As a added bonus they are toggable with the gl_fb_models cvar! But
there is more! This comes at a almost unnoticeable cost! Thats right!
For you get this all for only 2 FPS!

Repeat, thats 2 FPS! PRACTICALLY NOTHING!

So order now! Available from the quakeforge newtree CVS.
2000-08-16 09:26:22 +00:00
Dabb 5385056a9e Detect runt client packets quicker. 2000-08-14 13:41:05 +00:00
Dabb 66e08b1e0f Some fixes to DoS code. 2000-08-14 13:02:17 +00:00
Zephaniah E. Hull 23d81824dc Old draw cleanups, frogot I had them around..
Clean up of Dabb's mess, he dies.
2000-08-14 04:53:45 +00:00
Dabb 9a2ec3c094 %d -> %f in netdosvalues/netdosexpire 2000-08-13 14:59:09 +00:00
Dabb dc0337a885 Removed testing stuff. 2000-08-13 14:40:27 +00:00
Dabb 3c881d8ab0 Renamed dosvalues,dosexpire->netdosvalues,netdosexpire. 2000-08-13 14:37:26 +00:00
Dabb bafb8f7239 Basic DoS flood attack protections.
Commands added: netdosexpire, netdosvalues
(oops, forgot from last ;)
2000-08-13 14:34:49 +00:00
Dabb afc467b84f Basic DoS flood attack protections. Use sv_netdosprotect 1 to turn them on.
(quite experimental, these might break something...)
Cvars added: sv_allow_log, sv_allow_status, sv_allow_ping, sv_netdosprotect
Commands added: netdosexpire, netdosvalues
2000-08-13 14:26:20 +00:00
Dabb 0bbc70dbd6 Fix for pause flood exploit. 2000-08-13 14:21:21 +00:00
Dabb 7234a479c8 Quick-fix for server crashing on some maps with null names/textures. 2000-08-08 12:47:37 +00:00
Anton E. Gavrilov ea7c4363ba Fix for ugly 'unknown: #' messages at the end of a demo. 2000-08-04 09:47:53 +00:00
Dabb 9e38c05969 Builds now ... 2000-08-03 16:21:19 +00:00
Dabb 556ff79462 Added teamplay.c ... 2000-08-03 14:47:00 +00:00
Anton E. Gavrilov bfcee99717 cl_deadbodyfilter and cl_gibfilter should work now. 2000-08-02 23:00:39 +00:00
Jeff Teunissen c251476789 whitespace. 2000-08-02 22:53:59 +00:00
Anton E. Gavrilov d80541c3ee Add teamplay.c to project 2000-08-02 22:53:44 +00:00
Jeff Teunissen 50e0cb54a7 Moved qf-server-win.mak makefile for Borland to qf-server.mak, made it
build qf-server.exe instead of qf-server-win.exe If you're running it on
Windows, it's pretty obviously a Windows program. :)
2000-08-02 22:51:41 +00:00
Anton E. Gavrilov f48c974c01 Added cl_deadbodyfilter and cl_gibfilter cvars 2000-08-02 22:50:28 +00:00
Jeff Teunissen cf2f9a1233 Add teamplay.[ch] to makefiles, also found some necessary files that would
be missed by make dist.
2000-08-02 22:49:41 +00:00
Anton E. Gavrilov 6f26023d81 #if 0'd the code that updates the screen after every Con_Printf when
disconnected.
2000-08-02 22:40:13 +00:00
Anton E. Gavrilov f992062eff Proxy features should go to this file when possible 2000-08-02 15:20:15 +00:00
Dabb 43ff0932f4 Fixed stupid borland complier error 2000-08-02 15:16:36 +00:00
Jeff Teunissen acf2de7612 Enabled time stamped messages for server. To turn it on, set
sv_timestamps.

To configure how timestamps are formatted, use the sv_timefmt Cvar. It's a
formatted string, with the following special tokens (taken from the
strftime() manual page):

       %a     The abbreviated weekday name according to the  cur­
              rent locale.

       %A     The  full  weekday  name  according  to the current
              locale.

       %b     The abbreviated month name according to the current
              locale.

       %B     The  full  month  name  according  to  the  current
              locale.

       %c     The preferred date and time representation for  the
              current locale.

       %C     The century number (year/100) as a 2-digit integer.
              (SU)

       %C     The century number (the year divided by   100   and
              truncated  to  an integer).

       %d     The  day of the month as a decimal number (range 01
              to 31).

       %D     Equivalent to  %m/%d/%y.  (Yecch  -  for  Americans
              only.   Americans  should  note that in other coun­
              tries %d/%m/%y is rather common. This means that in
              international  context this format is ambiguous and
              should not be used.) (SU)

       %e     Like %d, the day of the month as a decimal  number,
              but a leading zero is replaced by a space. (SU)

       %E     Modifier: use alternative format, see below. (SU)

       %G     The ISO 8601 year with century as a decimal number.
              The 4-digit year corresponding to the ISO week num­
              ber  (see  %V).  This has the same format and value
              as %y, except that if the ISO week  number  belongs
              to  the  previous  or  next year, that year is used
              instead. (TZ)

       %g     Like %G, but without century, i.e., with a  2-digit
              year (00-99). (TZ)

       %h     Equivalent to %b. (SU)

       %H     The  hour as a decimal number using a 24-hour clock
              (range 00 to 23).

       %I     The hour as a decimal number using a 12-hour  clock
              (range 01 to 12).

       %j     The  day of the year as a decimal number (range 001
              to 366).

       %k     The hour (24-hour clock) as a decimal number (range
              0  to  23);  single digits are preceded by a blank.
              (See also %H.) (TZ)

       %l     The hour (12-hour clock) as a decimal number (range
              1  to  12);  single digits are preceded by a blank.
              (See also %I.) (TZ)

       %m     The month as a decimal number (range 01 to 12).

       %M     The minute as a decimal number (range 00 to 59).

       %n     A newline character. (SU)

       %O     Modifier: use alternative format, see below. (SU)

       %p     Either `AM' or `PM' according  to  the  given  time
              value, or the corresponding strings for the current
              locale.  Noon is treated as `pm'  and  midnight  as
              `am'.

       %P     Like  %p but in lowercase: `am' or `pm' or a corre­
              sponding string for the current locale. (GNU)

       %r     The time in a.m. or p.m. notation.   In  the  POSIX
              locale this is equivalent to `%I:%M:%S %p'. (SU)

       %R     The  time  in  24-hour notation (%H:%M). (SU) For a
              version including the seconds, see %T below.

       %s     The number of seconds since the Epoch, i.e.,  since
              1970-01-01 00:00:00 UTC. (TZ)

       %S     The second as a decimal number (range 00 to 61).

       %t     A tab character. (SU)

       %T     The time in 24-hour notation (%H:%M:%S). (SU)

       %u     The  day  of  the  week as a decimal, range 1 to 7,
              Monday being 1.  See also %w. (SU)

       %U     The week number of the current year  as  a  decimal
              number,  range  00  to  53, starting with the first
              Sunday as the first day of week 01. See also %V and
              %W.

       %V     The  ISO  8601:1988 week number of the current year
              as a decimal number, range 01 to 53, where  week  1
              is  the  first week that has at least 4 days in the
              current year, and with Monday as the first  day  of
              the week. See also %U and %W. (SU)

       %w     The  day  of  the  week as a decimal, range 0 to 6,
              Sunday being 0.  See also %u.

       %W     The week number of the current year  as  a  decimal
              number,  range  00  to  53, starting with the first
              Monday as the first day of week 01.

       %x     The preferred date representation for  the  current
              locale without the time.

       %X     The  preferred  time representation for the current
              locale without the date.

       %y     The year as a  decimal  number  without  a  century
              (range 00 to 99).

       %Y     The year as a decimal number including the century.

       %z     The time-zone as hour offset from GMT.  Required to
              emit  RFC822-conformant  dates (using "%a, %d %b %Y
              %H:%M:%S %z"). (GNU)

       %Z     The time zone or name or abbreviation.

       %+     The date and time in date(1) format. (TZ)

       %%     A literal `%' character.

Some of these may not work on some systems.
2000-08-02 07:13:12 +00:00
Jeff Teunissen 808e3295ab Add $(GLX_LIBS) to -sgl _LDADD; temporary. 2000-08-02 01:31:16 +00:00
Jeff Teunissen 86de6d99f0 A few substantive changes, mostly whitespace. EVIL! 2000-08-02 01:18:37 +00:00
Joseph Carter 1cfc49b5b2 Clean up the warnings Tonik didn't 2000-08-01 21:55:26 +00:00
Anton E. Gavrilov 15929debf1 Con_Clear_f() will also reset console backscroll 2000-07-31 13:06:24 +00:00
Anton E. Gavrilov 3541ef420b bind command will now accept any number of parameters, e.g.
bind 5 impulse 5
2000-07-31 12:57:30 +00:00
Anton E. Gavrilov bbb594019b Change a bunch of Sys_Error()'s to Host_EndGame() 2000-07-31 12:54:11 +00:00
Anton E. Gavrilov 8bcf348265 New cvar expansion code that works in say/say_team commands;
Command line chars are treated as unsigned now, so you can start a
token with a 'high' char (>127).
2000-07-31 10:24:37 +00:00
Anton E. Gavrilov f8b0302ed6 Faster Cmd_TokenizeString - no malloc/free, just a static buffer. 2000-07-31 09:32:17 +00:00
Anton E. Gavrilov 4c49007a2b Faster Cbuf_InsertText 2000-07-31 07:40:13 +00:00
Dabb 8ccb6a9570 Evil hack to get directsound work under win32, will be removed when sound_sdl & other stuffs are done. 2000-07-30 10:17:18 +00:00
Dabb a046a4ba69 SDL makefiles for Borland C++ - EXPERIMENTAL 2000-07-30 10:14:02 +00:00
Dabb 15de4e2566 Common cl_sys_sdl for win32 and *nix, replaces cl_sys_win and cl_sys_unix for SDL targets. 2000-07-30 10:12:24 +00:00
Bill Currie 92baf1a751 add gl_skymultipass to conroll whether the skydome is single or double pass.
Currently defaults to 1 (multipass, ie old behaviour).
2000-07-30 02:54:17 +00:00
Anton E. Gavrilov b0f20f955c A partion of Key_Console() can be simplified by using memmove() 2000-07-28 14:37:41 +00:00
Bill Currie 858a0e5db2 Warp the cursor out of the way for 3dfx users. Hopefully this does the job. 2000-07-27 04:39:01 +00:00
Bill Currie 4f0e4c858a Move the mouse cursor hiding code from in_x11 to vid_{x11,glx} so it is
guaranteed to be done /before/ the glx context is created. Hopefully this
fixes knghtbrd's ugly cursor problem.
2000-07-27 03:37:41 +00:00
Anton E. Gavrilov 1d5ced14dc Fix Win32 paste-from-buffer problem by changing memcpy() to memmove()
(thanks Deek)
2000-07-24 13:32:16 +00:00
Thad Ward 2651d30d59 added pr_offs.c to the server project's files 2000-07-23 01:55:57 +00:00
Dabb 1dd5b7ee10 Changed alloca -> calloc to fix crash bug.
Also added modestate (will be removed).

btw, something to remember about ALLOCA:
"If the calling function does not contain  any references
to local variables in the stack,  the stack will not be
restored correctly when the function exits,  resulting
in a program crash. "
2000-07-19 17:58:19 +00:00
Joseph Carter 260687d229 who removed the fflush in Sys_Printf? It's back now. 2000-07-19 07:25:03 +00:00
Forest Hale 5ead0237ca Possible fix for ATI multitexture (gl_texsort 0) wall rendering. 2000-07-17 14:12:05 +00:00
Forest Hale 907be5bd58 commented out some extend bit reporting code 2000-07-17 14:06:33 +00:00
Joseph Carter eedd4a5e96 Thanks to akawaka, vid_sdl works!
This is far from complete and still does many things oddly by "modern"
standards in newtree.
2000-07-16 21:48:16 +00:00
Dabb 3a50d8337d Added VID_SetCaption support and removed SDL_INIT_CDROM for now. (thats in cd_sdl.c). 2000-07-14 17:16:08 +00:00
Dabb 4f6b7053ac Added gl_mtex_enum and modestate, also added VID_SetCaption support. 2000-07-14 17:04:18 +00:00
Dabb c29a59f262 VID_SetCaption (title) support. 2000-07-14 16:10:26 +00:00
Dabb b183d0dcaf VID_SetCaption (title) stubs - code added later. 2000-07-14 16:09:35 +00:00
Dabb 0e2bc6adb3 Added VID_SetCaption (title) support for little more portability. 2000-07-14 16:08:23 +00:00
Dabb 5a1ef7ca3d Added SDL_INIT for cd-rom. 2000-07-13 13:27:19 +00:00
Dabb 32fe653e47 cd_sdl.c from oldtree. 2000-07-13 13:22:07 +00:00
Dabb 2a3cfd6251 Couple of #ifndef WIN32 to get SDL compile under Borland. 2000-07-11 14:42:05 +00:00
Jeff Teunissen 6a008a83c9 [mumble mumble] SDL target fixed, made -ggi not build. 2000-07-11 07:57:26 +00:00
Jeff Teunissen 1e28e71322 Normal SDL support. It might work. :) 2000-07-11 07:51:36 +00:00
Jeff Teunissen ba47dca3aa SDL support in configure.in... it isn't turned into a target yet, but it
will be soon.
2000-07-11 05:05:27 +00:00
Dan Olson bca0df7abc SDL/GL internals. Someone will need to update the makefiles
CFLAGS = -I/usr/include/SDL
LDFLAGS = -lGL -lSDL -lpthread

or have fun playing with SDL's m4 macros and the `sdl-config` stuff
2000-07-11 00:22:52 +00:00
Dabb d07552e902 Fixes for Borland C++ - all targets should work now without crashes... 2000-07-10 09:35:19 +00:00
Jeff Teunissen 1cf0aff856 zone.c: Remove unnecessary code -- zone isn't used anymore, so it
shouldn't be allocated on the hunk.
sv_main.c: Change default timekick fuzz to 1.5 percent from 1
percent. Should cut down on people getting kicked for lag.
2000-07-09 12:43:46 +00:00
Dabb 728a5dfc47 15to8 palette pre-loading for win32 targets too... 2000-07-09 09:43:10 +00:00
Brian Koropoff 01148e4ce9 This fixes a bug with nvidia cards that can cause other GL programs to run very slowly. Thanks to rpete for pointing out the problem. 2000-07-09 05:49:26 +00:00
Brian Koropoff 69c97f84bd Now the cursor will wrap around the server list when you hit the bottom or top. I hope you are happy, stu. 2000-07-08 04:26:09 +00:00
Dabb 07bbdbfe77 Disabled asm file use for borland c++ software target until conflict issue is resolved. Compiles and works now with bc 5.5 too, but slowly. 2000-07-06 10:35:38 +00:00
Joseph Carter 289cfa557c cosmetic change - FWIW Mercury it's a bug that blend needs to be disabled
there and the bug's not in our code, so don't whack LH too hard.
2000-07-06 07:04:16 +00:00
Zephaniah E. Hull 46855eff2d gl_screen.c:
- Cleanup for the screenshot code.. (Now requires OpenGL 1.2+)

gl_rsurf.c:
 - Oh Mr Havoc, *WHACK*, you needed to disable GL_BLEND when you switch
   to GL_REPLACE..
2000-07-06 03:35:25 +00:00
Dabb 298f23f2c7 Borland C++ uses __int64 too. 2000-07-05 14:31:12 +00:00
Forest Hale 54648f9a93 Rewrote multitexture rendering. (faster, no fullbright bugs) 2000-07-04 09:29:56 +00:00
Bill Currie d24e28f28b speed up R_RenderBrushPoly ever so slightly 2000-07-04 07:04:46 +00:00
Forest Hale 1dd7a8be0d Fix for the fullbright models. 2000-07-04 06:59:34 +00:00
Forest Hale 225cbaff0d Minor world rendering fixes. 2000-07-04 04:19:06 +00:00
Forest Hale f6006e7cef Fix for dark models bug. 2000-07-04 03:10:31 +00:00
Forest Hale 9f5df4afa6 Possible world rendering speedup. 2000-07-04 02:23:50 +00:00
Forest Hale 51c1db9220 Very minor world rendering optimization. 2000-07-04 00:52:00 +00:00
Forest Hale b6484d3f66 Fix for long standing baseline bug (OUCH!), should fix invis problems... 2000-07-04 00:49:01 +00:00
Forest Hale b0f65051b1 Minor cleanup. (purely cosmetic) 2000-07-04 00:44:10 +00:00
Zephaniah E. Hull 7077ac4582 FINALLY the end to the invis objects!! 2000-07-03 21:56:51 +00:00
Forest Hale fff8ccb2c3 This should stomp the last of the invisible entity bugs. 2000-07-03 00:34:20 +00:00
Forest Hale 50fec20142 Fix for invisible players, etc etc. (QW protocol is nasty) 2000-07-02 14:14:56 +00:00
Forest Hale 5644666f0c Massive dynamic light rendering speedup. 2000-07-02 13:47:00 +00:00
Forest Hale fdcf20b4a3 Fix for black static lightmaps. (oops, forgot that one too) 2000-07-02 06:40:46 +00:00