diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 14:01:44 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-03 14:01:44 +0000 |
commit | e18160e80fe843c513ce2f36d7069e07e7e6bacc (patch) | |
tree | 9d853ca5706a56bd8e252bf4ee32165d810b9017 /games/cube/files/patch-clientextras.cpp | |
parent | Fix build on 64bit platforms (diff) |
Fix build on 64bit platforms
Diffstat (limited to 'games/cube/files/patch-clientextras.cpp')
-rw-r--r-- | games/cube/files/patch-clientextras.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/games/cube/files/patch-clientextras.cpp b/games/cube/files/patch-clientextras.cpp new file mode 100644 index 000000000000..592ec6df6c87 --- /dev/null +++ b/games/cube/files/patch-clientextras.cpp @@ -0,0 +1,16 @@ +--- clientextras.cpp.orig 2007-08-03 15:45:28.000000000 +0200 ++++ clientextras.cpp 2007-08-03 15:46:07.000000000 +0200 +@@ -14,11 +14,11 @@ + int n = 3; + float speed = 100.0f; + float mz = d->o.z-d->eyeheight+1.55f*scale; +- int basetime = -((int)d&0xFFF); ++ intptr_t basetime = -((intptr_t)d&0xFFF); + if(d->state==CS_DEAD) + { + int r; +- if(hellpig) { n = 2; r = range[3]; } else { n = (int)d%3; r = range[n]; }; ++ if(hellpig) { n = 2; r = range[3]; } else { n = (intptr_t)d%3; r = range[n]; }; + basetime = d->lastaction; + int t = lastmillis-d->lastaction; + if(t<0 || t>20000) return; |