Commit graph

14 commits

Author SHA1 Message Date
Yamagi Burmeister
6467137619 Switch from an arch whitelist to an "all archs are supported" approach.
The old whitelist was a leftover from the early days of YQ2. It should
run on most / all architectures, as long SDL supports them. As suggested
by smcv in issue #138 generate the OSTYPE and ARCH defines by the build
system instead of hardcoding it.

Savegame compatibility is provided by bumping the savegame version. Old
savegames are compared against the old OSTYPE and ARCH defined, new ones
against the new defines. This compatibility code should be removed
somewhere in the distant future.
2016-06-11 09:47:05 +02:00
Daniel Gibson
7929e845d3 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:40:49 +02:00
Yamagi Burmeister
6d93e38734 Port the Makefile to our new Windows build environment 2014-02-13 08:12:18 +01:00
Yamagi Burmeister
d97357f177 Remove actor
The actor was a special "monster" used für simulating NPC. It was never
fully implemented and therefor disfunctional. Thus it was never used in
any map. Remove it like done in baseq2 and xatrix.
2014-02-02 18:40:34 +01:00
Joshua Scoggins
fb179f0f16 Added ia64 to the makefile 2012-11-30 20:46:17 -08:00
Yamagi Burmeister
31178c81bf Add support for OS X 2012-10-06 09:53:43 +02:00
Yamagi Burmeister
4366acb6c0 Rework Makefile and add support for Windows 2012-06-27 14:50:48 +02:00
Yamagi Burmeister
5520108698 Add a missing brace 2011-10-11 13:41:12 +00:00
Yamagi Burmeister
489ab02814 Rearrange source and rework Makefile 2011-10-11 11:40:43 +00:00
Yamagi Burmeister
d1c7849ef1 Port the new savegame system from quake 2 2011-10-11 10:53:48 +00:00
Yamagi Burmeister
7e4e5e0db5 Don't pass the CFLAGS to the linker 2011-06-27 14:41:33 +00:00
Yamagi Burmeister
1e032c3c81 Neue CFLAGS auch rogue 2010-01-31 16:53:38 +00:00
Yamagi Burmeister
3097a0dd28 Erlaube es auf allen Plattformen zu bauen. 2009-06-04 12:14:55 +00:00
Yamagi Burmeister
00467e1c25 Eine Makefile für rogue 2009-03-30 12:48:38 +00:00