reopen 289452
thanks
Thank you for uploading a new patched version for amd64/gcc-4.0!
However, part of the patch was lost and
when I try to build 'trackballs' on amd64 with gcc-4.0,
I still get the following error:
x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I..
-DSHARE_DIR=\"/usr/share/games/trackballs\" -DPACKAGE=\"trackballs\"
-DVERSION=\"1.0.0\" -g -O2 -I/usr/include/SDL -D_REENTRANT
-DALT_HIGHSCORES=\"/var/games/trackballs.scores\" -DDEFAULT_RESOLUTION=1 -c
ball.cc
ball.cc: In member function 'Boolean Ball::physics(Real)':
ball.cc:433: error: cast from 'Ball*' to 'int' loses precision
ball.cc:434: error: cast from 'Ball*' to 'int' loses precision
make[3]: *** [ball.o] Error 1
make[3]: Leaving directory `/trackballs-1.0.0/src'
There are still two casts to 'int' left in the patched lines which cause
this error.
The attached patch with the missing part of the original patch fixes this.
Regards
Andreas Jochens
diff -urN ../tmp-orig/trackballs-1.0.0/src/ball.cc ./src/ball.cc
--- ../tmp-orig/trackballs-1.0.0/src/ball.cc 2005-01-10 14:49:37.419535752
+0100
+++ ./src/ball.cc 2005-01-10 14:48:59.031371640 +0100
@@ -430,8 +430,8 @@
Map *map = Game::current->map;
if(modTimeLeft[MOD_DIZZY]) {
- rotation[0] += time * 7.0 * (frand((long) Game::current->gameTime +
(int) this)-0.5); //sin(Game::current->gameTime*M_PI);
- rotation[1] += time * 7.0 * (frand(47 + (long) Game::current->gameTime
+ (int) this)-0.5); //cos(Game::current->gameTime*M_PI);
+ rotation[0] += time * 7.0 * (frand((long) Game::current->gameTime +
(long) this)-0.5); //sin(Game::current->gameTime*M_PI);
+ rotation[1] += time * 7.0 * (frand(47 + (long) Game::current->gameTime
+ (long) this)-0.5); //cos(Game::current->gameTime*M_PI);
}
/* rotateX(-rotation[1]*time*2.0*M_PI*radius,rotations);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]