1
0
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:
Arseniy Shestakov
2016-08-23 11:35:03 +03:00
parent 85f49bc968
commit c8bcb14d34
6 changed files with 13 additions and 12 deletions

View File

@@ -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;
}