mirror of
https://github.com/yquake2/ctf.git
synced 2025-02-19 18:50:53 +00:00
Quake II 3.21 'Capture The Flag' for Yamagi Quake II
See https://github.com/yquake2/yquake2/issues/71 and https://github.com/yquake2/xatrix/issues/4 In ClientThink(), the float value ent->velocity[i]*8 is saved into a short and if the value is too big for a short, in 32bit gcc builds the short is set to SHRT_MIN, resulting in the player being pressed down instead of up. Now we put the result in a 32bit int first (which should be big enough) and assign the int to the short. This still overflows, but with -fwrapv at least in a defined way (most probably the same way the original binaries did). The Makefile now sets $CC to gcc for MingW builds, this should fix https://github.com/yquake2/xatrix/issues/3 And while I was at it, when the game lib is loaded, it prints the date it was built, this is especially interesting for our Win32 binaries. |
||
---|---|---|
src | ||
CHANGELOG | ||
LICENSE | ||
Makefile | ||
README |
This is a 64 bit clean and bugfixed version of id Software's Quake II addon pack "Capture The Flag", developed by David 'Zoid' Kirsch. Hundred of type errors and strange constructs were fixed, thus this version should run much more stable than the old SDK version. While it may work with every Quake II client, the "Yamagi Quake II" client is highly recommended. For more Information visit http://www.yamagi.org/quake2. Installation for FreeBSD, Linux and OpenBSD: -------------------------------------------- 1. Type "make" or "gmake" to compile the game.so. 2. Copy release/game.so to the ctf/ subfolder of your Quake II installation. The CTF gamedata is part of the 3.20 point release. 3. Start the game with "./quake2 +set game ctf". Installation for OS X: ---------------------- 1. Copy game.dll from the zip-archive to ctf/. 2. Start the game with "quake2 +set game ctf" If you want to compile 'ctf' for OS X from source, please take a look at the "Installation" section of the README of the Yamagi Quake II client. In the same file the integration into an app-bundle is explained. Installation for Windows: ------------------------- 1. Copy the game.dll to the ctf\ subfolder of your Quake II installation. The CTF gamedata is part of the 3.20 point release. 2. Start the game with "quake2.exe +set game ctf". If you want to compile 'ctf' for Windows from source, please take a look at the "Installation" section of the README of the Yamagi Quake II client. There's descripted how to setup the build environment.