1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/cube/files/patch-clientextras.cpp
2007-08-03 14:01:44 +00:00

17 lines
652 B
C++

--- 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;