Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CF: cfclient on 64-bit machines?
Bob Tanner (tanner@real-time.com) wrote:
> x11.c:1267
>
> if(cpl.stats.food<100 && (cpl.stats.food&4))
> sprintf(buff,"Speed: %3.2f (%1.2f) Food: *%d* HUNGRY!",
> (float)cpl.stats.speed/FLOAT_MULTF,
> weap_sp,cpl.stats.food);
>
> Alpha dies here. Intel works fine. I think the "cpl.stats.food&4"
> bitwise and is the problem.
That one looks okay. If the sprintf() doesn't work, I would guess
that the problem is the use of (float) --- %f expects a double,
so if float and double are different...
Christian
--
Christian Stieber http://www.informatik.tu-muenchen.de/~stieber