diff options
author | arved <arved@FreeBSD.org> | 2007-08-03 20:44:31 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-08-03 20:44:31 +0800 |
commit | 32116e734f814f6e346e0acd9825c1f2fdd7c332 (patch) | |
tree | ee274a00513b28360077fe0fb303795688c94b80 /games | |
parent | d043d6f969e036d5a80e87010c36aea99c9f7364 (diff) | |
download | freebsd-ports-gnome-32116e734f814f6e346e0acd9825c1f2fdd7c332.tar.gz freebsd-ports-gnome-32116e734f814f6e346e0acd9825c1f2fdd7c332.tar.zst freebsd-ports-gnome-32116e734f814f6e346e0acd9825c1f2fdd7c332.zip |
Fix build on 64bit platforms
Diffstat (limited to 'games')
-rw-r--r-- | games/orbital_eunuchs_sniper/files/patch-target.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/orbital_eunuchs_sniper/files/patch-target.cpp b/games/orbital_eunuchs_sniper/files/patch-target.cpp new file mode 100644 index 000000000000..ed0dfb866fe9 --- /dev/null +++ b/games/orbital_eunuchs_sniper/files/patch-target.cpp @@ -0,0 +1,24 @@ +--- src/target.cpp.orig 2007-08-03 14:40:26.000000000 +0200 ++++ src/target.cpp 2007-08-03 14:41:39.000000000 +0200 +@@ -186,9 +186,9 @@ + print(238, row, COLOR_YELLOW, "%20s", "VPB file ID"); + row += 7; + print(238, row, COLOR_YELLOW, " %03X-%07X/%02X", +- ((((unsigned int)Game.SightedCharacter) * 7001337) & 0xfff), +- (((unsigned int)Game.SightedCharacter) * 1337357) & 0xfffffff, +- (((unsigned int)Game.SightedCharacter) * 70741) & 0xff); ++ ((((unsigned intptr_t)Game.SightedCharacter) * 7001337) & 0xfff), ++ (((unsigned intptr_t)Game.SightedCharacter) * 1337357) & 0xfffffff, ++ (((unsigned intptr_t)Game.SightedCharacter) * 70741) & 0xff); + + + break; +@@ -217,7 +217,7 @@ + row += 7; + print(238, row, COLOR_YELLOW, "%20s", "Net worth"); + row += 7; +- print(238, row, COLOR_YELLOW, "%17u KC", (((unsigned int)Game.SightedCharacter) * 1337357) % 71937); ++ print(238, row, COLOR_YELLOW, "%17u KC", (((unsigned intptr_t)Game.SightedCharacter) * 1337357) % 71937); + break; + case 3: + print(238, row, COLOR_YELLOW, "%20s", "Splat."); |