Commit graph

339 commits

Author SHA1 Message Date
Bill Currie
bbd69756d0 Fix server video loading
From h3xx:
There is a bug whereby, on some systems, when a command such as "map
*ntro.cin+base1" (as it is when starting Quake2 vanilla, defined in
default.cfg) is issued, the server gives the error that it can't find
"maps/ntro.inn.bsp" even though "video/ntro.cin" exists. After hacking at
this problem for a couple hours, I finally fixed it in two lines; the
problem lies in how the strings are used.

I am unsure what caused this problem to surface in one of my machines and
not the other (they both had exactly the same software), but this patch
fixes the problem on the one that was having it, and doesn't affect the one
that wasn't having it. Due to how I solved this problem, it would lead me
to believe that this was a simple programming mistake.
2012-01-30 22:22:34 +09:00
Bill Currie
2a9a9caf51 Fix an integer shift overflow.
Thanks to Ozkan Sezer for pointing it out.
2012-01-30 22:20:35 +09:00
Bill Currie
5270c22b4d lucianomol's F11 crash fix.
when using glx driver, the game crashes with an error of "unresolved symbol
Cvar_SetValue" when F11 ... hit.
2010-11-21 14:31:26 +09:00
Timothy C. McGrath
b12d506ce1 This fixes a bug in configure where the prefix variable was not being
evaluated correctly for the path to the shared game data. (default
/usr/local/share/quake2/) All heavy lifting was done by taniwha, I merely
committed it.
2008-06-06 14:26:40 +00:00
Ragnvald Maartmann-Moe IV
451ad97dfa Mostly whitespace, some type fixing, and boostrap/configure fixes. 2007-12-16 18:28:03 +00:00
Jay Dolan
9d7ee224d2 Fixed info command to print to client, not dedicated console. 2006-01-15 16:55:08 +00:00
Jay Dolan
3bb16e3349 Also disable timedemo in coop. Use some extern cvar_t's instead of 12 calls to CVar_VariableValue in sv_*.c, too. 2006-01-15 14:41:49 +00:00
Jay Dolan
f1fcc9f544 Updated NEWS file with changes since 0.3 2006-01-14 21:54:01 +00:00
Jay Dolan
7a49504cf4 Merge changes from FreeBSD port to configure.in. Do not clobber OpenGL/SVGALib CFLAGS/LIBS. 2006-01-14 21:16:20 +00:00
Jay Dolan
2587a5e03e Added _windowed_mouse to OpenGL video menu. Defaulted to 1 for glx and sdl_* renderers. 2006-01-14 20:22:49 +00:00
Jay Dolan
3ecc9cc96d Slight fix for corner case cmd/cvar completion 2006-01-14 19:10:13 +00:00
Jay Dolan
9fa7e5e7ba Fixed potential buffer overflow in Cbuf_Execute, and implemented more Unix-like cmd/cvar tab completion. 2006-01-14 19:00:50 +00:00
Jay Dolan
7bae893bd2 Fixed known crash caused by unchecked strcpy in Cmd_TokenizeString 2006-01-14 15:20:51 +00:00
Jay Dolan
805aec460b Fix win32 path exploit in download command 2006-01-14 14:53:05 +00:00
Jay Dolan
e1326ba6f7 Jailed link paths to gamedir, fixing known exploit:
rcon link /etc owned
download owned/sensitivefile
2006-01-14 14:42:48 +00:00
Jay Dolan
cdc2e36cf7 Dramatically reduced latency in ALSA sound driver. Also used safer set_*_near in leiu of set_*. 2006-01-14 00:52:31 +00:00
Jay Dolan
ea82053181 Added rocket launcher to NoAmmoWeaponChange. Closes Bug#29. 2006-01-14 00:30:34 +00:00
Jay Dolan
7a79a6b8df Fixed FS_OpenFile to only open regular files on filesystem. Fixes server crash with e.g. 'cmd download maps' 2006-01-14 00:08:29 +00:00
Jay Dolan
4c295390bf Ran tree *.c *.h through astyle. 2006-01-09 00:59:30 +00:00
Jay Dolan
00156f6b40 Make alsa work 2006-01-08 22:04:26 +00:00
Jay Dolan
86b52d275a Fixed netgraph breaking transparent console. Also made netgraph itself
transparent, and put it 'behind' the HUD.  See Bug#4.
2006-01-07 20:41:07 +00:00
Jay Dolan
03f8242b77 Disabled timedemo in deathmatch. For dedicated servers, it is explicitly
set to 0 and made readonly.  See Bug#28.
2006-01-07 19:54:07 +00:00
Jay Dolan
740dc42df5 A lot of work to snd_alsa.c. It's not correct yet, but it's a lot closer.
Perhaps someone else will poke at it now.
2006-01-07 19:02:50 +00:00
Jay Dolan
712be75e22 ---files.c
Fixed mod loading by localizing game filesystem to PKGLIBDIR and PKGDATADIR.
This way, mods can be installed in PKGDATADIR/modname, like everyone is used
to.

Also export fs_basedir to environment as QUAKE2_HOME if it has been resolved
to a valid path.  Mods may opt to use this variable to perform fileio in
their respective homes.

---snd_dma.c
Removed superfluous fopen/fclose when registering sexed (per-model) sounds.
This removes a "hiccup" when the game first resolves a female, cyborg, ..
sound.
2006-01-07 18:51:20 +00:00
Ragnvald Maartmann-Moe IV
e5027aefb5 Don't use slow gl_ext_pointparameters path unless user chooses to subject
themselves to it. (Reduces complaints on #quakeforge about speed)
2004-04-20 19:04:04 +00:00
Jamie Wilkinson
1e180231fc - Add W.P to the thanks file for the CD shuffle code that
was pinched from icculus's branch.  Thanks!
- Rearrange Ulrich so the list is in alphabetical order.
2004-03-28 23:57:03 +00:00
Jamie Wilkinson
ae64f530e8 - Fix up the cvs build instructions in the README.
- Add a note about game data locations to README.
- Cleanups in configuration summary output for configure.
2004-03-28 05:10:18 +00:00
Jamie Wilkinson
df33938bbf - really fix the --with arguments 2004-03-24 06:37:27 +00:00
Jamie Wilkinson
b6ec2e0a95 - allow --with- options to be specified without an argument 2004-03-22 12:16:39 +00:00
Jamie Wilkinson
ff94ecfca9 - Uncomment conditional sections of rogue and xatrix.
- Update todo list.
2004-03-18 01:27:30 +00:00
Jamie Wilkinson
b814e0db00 - fix compile warning when xf86dga doesn't exist 2004-03-17 01:33:31 +00:00
Jamie Wilkinson
28a1de6b33 - Added note on bootstrapping from CVS. 2004-03-16 10:47:45 +00:00
Jamie Wilkinson
1817f46af4 - more fixing to the release script 2004-03-16 10:36:26 +00:00
Jamie Wilkinson
50686d27ba - add zip and bz2 support to the build
- updated news
2004-03-16 10:07:38 +00:00
Jamie Wilkinson
fa14de2a59 - Fixed joystick support on the x11 driver. Updated docs. 2004-03-16 09:57:43 +00:00
Jamie Wilkinson
227b43b119 - Added sdl and solaris sound drivers to the build.
- Don't ship CVS directories in the dist in docs directory.
2004-03-15 12:50:39 +00:00
Jamie Wilkinson
f4a2cc9ca2 - Added pluggable sound architecture for runtime loading of
sound driver modules.
2004-03-15 02:25:43 +00:00
Jamie Wilkinson
97d7b9731e - Replace a fixme in vid_menu.c with a warning.
- Remove some dead dead code from main.c
2004-03-09 11:59:00 +00:00
Jamie Wilkinson
1d554ce1f3 - text console cleanups
- don't draw character 1 or 2 in text mode, it's used by
    graphical console to change colours
  - don't print anything if a null string is passed
  - don't draw the names of the models being loaded, and
    don't try to overwrite it with whitespace, unless you're
    in developer mode.
2004-03-08 12:48:03 +00:00
Jamie Wilkinson
a5b442aca6 - Tweaks to configure output.
- Updated release script.
2004-03-08 11:14:08 +00:00
Jamie Wilkinson
d5bf231d98 - Preparing for release.
+ Updated news and todo lists.
  + Updated config.cfg with my defaults :-)
  + Worked around a bug in automake 1.8 with AM_CONDITIONALs
    make dist.
2004-02-26 20:53:01 +00:00
Jamie Wilkinson
f9a1e6f515 - Update snd_alsa with icculus.org's latest.
- Add Brendan Burns to THANKS for the alsa driver.
2004-02-24 12:35:31 +00:00
Jamie Wilkinson
e4385048dc - Added alsa driver from icculus's tree.
- Updated configure.in and src/Makefile.am with magical bits
  for alsa, oss, and some misc cleanups.
- Added magic bootstrapping makefile.
2004-02-23 13:23:43 +00:00
Jamie Wilkinson
dfe1f0859e - Rename snd.c to snd_oss.c. 2004-02-02 12:44:23 +00:00
Jamie Wilkinson
f581c7d17d - Roll back the patch from about changeset 67, with the
adding of pthreads; that's all gone now, it sucked.
- Add a libao sound output, this has been mostly tested:
  - it works with wav output on my powerbook (where oss out
    is broken)
  - it works but sounds really jumpy when playing 44100Hz
    samples through a shitty onboard soundcard that only
    supports 48000Hz output... the dma buffer gets played
    too fast.
2004-02-02 12:42:18 +00:00
Jamie Wilkinson
2012da9a05 - Updated README for automake 1.8, and updated acinclude.m4
to remove some warnings from the new automake.
2004-01-31 05:18:55 +00:00
Jamie Wilkinson
27a709ac82 - Update the README too. 2004-01-27 15:04:54 +00:00
Jamie Wilkinson
b943193880 - Bump automake to 1.7. 2004-01-27 14:49:49 +00:00
Bill Currie
a610cd1cc8 some libGL.so's need to be loaded with global symbols 2004-01-09 23:55:24 +00:00
Bill Currie
31e9e7e883 clean up a bunch of type punning warnings 2003-07-09 17:35:07 +00:00