glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] Nicowar desync


From: Nuage
Subject: Re: [glob2-devel] Nicowar desync
Date: Mon, 16 Jan 2006 08:13:58 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051107

Bradley Arsenault wrote:
> I got through #1 on my list in another thread, Nicowar does save
> properly in the latest commit. I was testing with JDLSpeedy in a net
> game, only to find out a desyync. I wrestled with my first 5 mb game
> dump, found the issue, and tracked down the desync to lines 2881 and
> 2888 AINicowar.cpp. I'm just wondering, is using float in this manner
> particularly threatening? And if so, would I be allowed to use
> Boost.Rational (i'm a big boost fan), as it would work just as well.

Just never use "double" or "float" in glob2. While it can work on some compiler,
with some other it can desync.

I don't know at all how Boost.Rational works, but given the name I guess it's
fine. You get the idea, I think you can find out!

If you want to be sure, just use shifted int, it's not really difficult.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]