A port of Team Evolves Zaero to Yamagi Quake II
Go to file
Daniel Gibson aa5ccc1770 Fix bug with high velocities in vents in 32bit builds, fix MingW build
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.
2015-05-17 18:48:21 +02:00
src Fix bug with high velocities in vents in 32bit builds, fix MingW build 2015-05-17 18:48:21 +02:00
.gitignore Fix bug with high velocities in vents in 32bit builds, fix MingW build 2015-05-17 18:48:21 +02:00
LICENSE Add LICENSE files 2011-10-10 19:40:18 +00:00
Makefile Fix bug with high velocities in vents in 32bit builds, fix MingW build 2015-05-17 18:48:21 +02:00
README At some more informations to the README 2012-04-29 11:31:52 +02:00

README

This is a bugfixed version of Team Evolve's Quake II missionpack
"Zaero". Hundred bugs were fixed, this version should run much more
stable than the the old SDK version. It must be used with the "Yamagi
Quake II Client". For more information visit http://www.yamagi.org/quake2.

ATTENTION: This port of Zaero to Yamagi Quake II is unfinished and
untested! While it might work there are most likely a lot of bugs left!
Furthermore this code needs more cleanup! Do not complain if you run
into problem! Patches (or better pull requests) are welcome. :)