Commit graph

154 commits

Author SHA1 Message Date
Bill Currie
a823912075 Apply most of Bruce Momjian's BSD/OS 4.2 patches. I didn't include his sound
stoping code because I don't like the way it was done, I'll work on
implementing a better version next.

        * Use of poll() is not standard.  I replaced it with usleep(),
which I think is more portable.  I know linux supports usleep() and all
BSD's.  Another option would be to use select(), which is much more
widely supported than poll().

        * Modified in_x11.c to stop sound and turn on keyboard repeat
when the Quake window loses focus.  It turns them back on/off when the
window gains focus.  I often play quake and leave the window to do
something else, and the lack of repeat and quake sounds were annoying.

        * Fix the -nomouse option so it still allows keyboard actions.
The current code skips keyboard setup when -nomouse is used.

        * Fix so config.cfg option "confirm_quit" works under X11.
2001-07-05 19:07:02 +00:00
Adam Olsen
afc4f250c8 add #include <unistd.h> 2001-06-12 00:02:48 +00:00
Jeff Teunissen
df184072f1 Eliminate the use of stricmp() 2001-05-23 08:08:49 +00:00
Adam Olsen
920de43af9 - remove align flags from gcc command line
- only use usleep if HAVE_USLEEP is defined
2001-05-22 05:39:16 +00:00
Adam Olsen
d97095fe87 Apply usleep patch, so we don't busy-wait so much. cl_maxfps will
now release your CPU :)
2001-05-16 08:59:10 +00:00
Jeff Teunissen
2e88971a08 Make the menu get initialized after video; otherwise, the menu will never
pick up brightness and contrast. :)
2001-05-13 08:26:45 +00:00
Jeff Teunissen
272abade38 Backport Cvar callbacks to newtree. Software gamma still doesn't work in
GL, and I still don't know exactly why.
2001-05-13 05:10:02 +00:00
Adam Olsen
bf6afa6ad4 Thought I would have commited this by now... 2001-04-20 13:29:55 +00:00
Jeff Teunissen
49d7b35d43 New server Cvar: sv_extensions. When set to zero, it disables the extended
challenge, causing QF clients to not detect a QuakeForge server. This
makes the client not add the QF-specific info strings, in turn making it
not overflow original QW clients' limited setinfo space. This also
probably makes certain proxies work with QF servers again. It /also/ has
the side effect of disabling compressed downloads. If you want compressed
downloads, you need sv_extensions on.

Also, remove the "stdver" setinfo in the client -- it's handled by
*qsg_version if there's a QF server on the other end, so it was just
wasted space.
2001-03-09 04:50:14 +00:00
Dabb
b4dfcb0906 I don't think we want to do prediction when DISCONNECTED ... 2001-03-05 18:10:52 +00:00
Bill Currie
01baf4a868 turns out it might not be gamespy after all, and I didn't particularly like
this as a solution anyway, so I've enabled the command packet channel by
default. I'm leaving it in, because it's a nice to be able to close it
completely under other circumstance.
2001-02-15 18:03:59 +00:00
Bill Currie
ac94390460 got the logic of the if mixed up 2001-02-14 22:26:57 +00:00
Bill Currie
de22be39ba break gamespy instead of gamespy breaking us. disable command packets by
default. If somebody wants gamespy to do its evil, they can say so explicitly.
2001-02-14 22:25:22 +00:00
Bill Currie
ca06d3994d ALWAYS print commands coming from external sources (eg GameSpy (ewww)) 2001-02-14 21:50:55 +00:00
Bill Currie
e6980d2ec3 add cvar to control config.cfg writing (from Adam Olsen
<adamolsen@technologist.com>)
2001-02-11 07:15:39 +00:00
Bill Currie
0ffba7e3da add fs_usercfg. defaults to "" (nothing) in oldstyle, or "~/.PACKAGErc" in
newstyle.
2001-02-10 00:40:55 +00:00
Bill Currie
679b67ddd2 fix a broken fix for sun's model_t type. (got broken during the header audit) 2001-02-08 20:56:40 +00:00
Jeff Teunissen
6da731fec1 Clear packet entities when they are removed. This fixes a bug in particle
trails, and possibly others as well.

Eliminate cl_oldvisedicts and cl_visedicts_list, change cl_visedicts's
definition to compensate. It isn't used any more, so they just waste
memory.
2001-02-08 17:43:14 +00:00
Bill Currie
fdaf69b9ae reduce minimum timescale to 0 to allow pausing the demo 2001-02-08 00:08:32 +00:00
Zephaniah E. Hull
145284c3ce Tweaked some of the bounds. 2001-02-08 00:02:26 +00:00
Bill Currie
3320cf5e2c cl_demospeed cvar. 1 = normal speed, < 1 = slow-mo, > 1 = timelaps.
host.h:
	remove Host_SimulationTime prototype
cl_main.c:
	cl_demospeed stuff. Host_SimulationTime was resurected because of gcc
	warnings about setjmp clobbering vars. It's made static inline so its
	resurection doesn't cost fps.
2001-02-07 20:15:33 +00:00
Bill Currie
c6e087015c command docs patch from Misty-chan because his access hasn't completely come
through yet.
2001-02-06 02:56:14 +00:00
Bill Currie
eb8c267925 .gdbinit:
add -nosound again
cl_main.c:
	clean up function headers
2001-02-05 23:06:57 +00:00
Thad Ward
c8ab801128 qw_client.dsp and makefile.mgw:
remove vid_win.c from the projects. no longer needed after taniwha's
    cl_main changes.

cl_main.c:
    remove #include "winquake.h", which is not needed

vc/config.h:
    add #define HAVE_WINSOCK_H
2001-01-25 21:16:43 +00:00
Bill Currie
5c1fa73e55 remove the win32 windows tomfoolery. if someone complains, we'll cross that
bridge when we get to it (unless we burn it first:)
2001-01-25 06:08:46 +00:00
Thad Ward
04d66b0952 get it building on windows again.
cl_main.c:
    added #include "winquake.h" back in, since ming and msvc
    wouldn't build without it

qw_client.dsp and makefile.mgw:
    added vid_win.c
    (need to rename qw_*.dsp to qf_*.dsp one of these days...)
2001-01-25 04:56:27 +00:00
Bill Currie
21654b12e5 server builds (and works, thanks for the test, Dabb) and an sdl client attempts
to link.
2001-01-24 17:41:34 +00:00
Bill Currie
b3a9da279b check for an error openning the download file (this is what I intended to
commit previously, but wasn't finished)
2001-01-22 22:48:22 +00:00
Bill Currie
e3674945ed back out an accidental commit 2001-01-22 22:43:50 +00:00
Bill Currie
39ee51118d fix a missing ) 2001-01-22 22:40:36 +00:00
Bill Currie
d072faf29c fix a compile bug for some systems 2001-01-21 02:55:53 +00:00
Bill Currie
6aecae38e6 remove double command execution for 99.9% of the cases 2001-01-18 04:28:26 +00:00
Dabb
f9e5db9aee Fixed skin command bug. Win32 guys want skins too! 2001-01-17 19:44:45 +00:00
Bill Currie
45bacc2b60 second step of skins re-work 2001-01-17 07:28:34 +00:00
Bill Currie
bbac14a7d5 commands now sport descriptions (currently "No Description", but then I'm a
lazy bastard:)
2001-01-15 17:07:06 +00:00
Dabb
bbf8adaa8e Add packet logging / parsing for demo playback too. 2001-01-15 14:12:19 +00:00
Bill Currie
e2f1f503ef move CL_Ents_Init to the right place 2001-01-08 07:31:59 +00:00
Bill Currie
b66c22d0e5 flickering rocket/lava lights are dead and cvars now support vectors (archiving
broken atm).
2001-01-08 07:07:48 +00:00
Bill Currie
dd5363cdb5 commands and aliases now use hash tables 2001-01-04 20:51:35 +00:00
Ragnvald Maartmann-Moe IV
57b02fad06 CodingStyle. 2001-01-04 20:43:36 +00:00
Bill Currie
381f5b6df4 cvars and cvar alias now use a hash table for lookups. commands and aliases
coming soon :)
2001-01-04 19:10:38 +00:00
Bill Currie
ff89f60c74 move the final command line stuff to AFTER all the subsystems have been
initialised.
2001-01-01 18:00:06 +00:00
Bill Currie
76a11bd74a cvar doc patches from Misty 2000-12-31 04:46:04 +00:00
Dabb
ff2658dacd Added HAVE_NETINET_IN_H 2000-12-30 11:20:36 +00:00
Bill Currie
ee47b4d568 a start on a #include audit for the header files and misc fixups for win32 2000-12-30 05:18:48 +00:00
Bill Currie
5f21837c33 cleanup the includes in host.h 2000-12-30 03:23:31 +00:00
Bill Currie
f29ea7f1d3 fix up <> vs "" in #includes 2000-12-30 03:07:15 +00:00
Bill Currie
ccba39666b #include audit 2000-12-30 02:16:36 +00:00
Bill Currie
c71fc78360 it was decided the menu code should return until release. here it is with the
gettimeofday -> Sys_DoubleTime change (though I'm having some operational
issues (non-critial) with the server list).
2000-12-29 03:14:53 +00:00
Jeff Teunissen
bc9518c9a5 whitespace 2000-12-28 09:27:30 +00:00