Comment 12 for bug 1811030

Revision history for this message
Notabilis (notabilis27) wrote :

Thanks for the pointers! The note regarding networking is a good find since it confirms that the AI is only run on the host -> logic_rand() shouldn't be used.

From the grep-result most of the AI is using the "normal" std::rand() function that is computer-local. The exception is the seafaring code where the global logic_rand() method is used, leading to desyncs. So games with AIs are fine as long as the AI is not using ships. _aD, can you confirm that the desyncs are only (or mostly?) in maps with seafaring?

I will prepare a branch which replaces the logic_rand() with std::rand() for the AI, which hopefully fixes this issue.