glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] Nicowar desync


From: Bradley Arsenault
Subject: Re: [glob2-devel] Nicowar desync
Date: Tue, 17 Jan 2006 16:41:39 -0800

On 1/15/06, Nuage <address@hidden> wrote:
> 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.
>
>
> _______________________________________________
> glob2-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/glob2-devel
>

I'm not sure what a "shifted int" is, could you explain it to me?




reply via email to

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