mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
CCallbackBase: add CRandomGenerator to all callbacks
This is easiest way to make server RNG available to CBattleInfoCallback. Now server, client and gamestate have own RNG instance. Only server and gamestate RNGs are serialized.
This commit is contained in:
@@ -247,7 +247,7 @@ public:
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & QID & states & finishingBattle;
|
||||
if(version >= 760)
|
||||
if(version >= 761)
|
||||
{
|
||||
h & rand;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user