diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 12:44:31 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 12:44:31 +0000 |
commit | 69a6dcaa2d1edebbf781624b4772143c9ed763ea (patch) | |
tree | 1c92620b7bad6059ab7f364155bdee73a5e1269d /games/orbital_eunuchs_sniper | |
parent | a7b6cb9dbf218fdc3105492a66258c5290fd74b2 (diff) | |
download | ports-69a6dcaa2d1edebbf781624b4772143c9ed763ea.tar.gz ports-69a6dcaa2d1edebbf781624b4772143c9ed763ea.zip |
Notes
Diffstat (limited to 'games/orbital_eunuchs_sniper')
-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."); |