Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CF: cfclient on 64-bit machines?
- To: crossfire mailing list <crossfire (at) ifi.uio.no>
- Subject: Re: CF: cfclient on 64-bit machines?
- From: Christian Stieber <>
- Date: Fri, 16 Oct 1998 12:33:10 +0200
- In-Reply-To: <>; from Bob Tanner on Thu, Oct 15, 1998 at 07:04:08PM -0500
- References: <>
- Sender:
Bob Tanner () 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