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
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to