mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-13 11:40:38 +02:00
Fix merge
This commit is contained in:
parent
c4b8778e8b
commit
388d65d6b2
@ -152,7 +152,7 @@ struct DLL_LINKAGE StartInfo : public Serializeable
|
||||
h & playerInfos;
|
||||
if (h.version < Handler::Version::REMOVE_LIB_RNG)
|
||||
{
|
||||
uint32_t oldSeeds;
|
||||
uint32_t oldSeeds = 0;
|
||||
h & oldSeeds;
|
||||
h & oldSeeds;
|
||||
h & oldSeeds;
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "StdInc.h"
|
||||
#include "RumorState.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
bool RumorState::update(int id, int extra)
|
||||
{
|
||||
if(vstd::contains(last, type))
|
||||
@ -27,3 +29,5 @@ bool RumorState::update(int id, int extra)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
@ -705,7 +705,7 @@ void CGWhirlpool::teleportDialogAnswered(const CGHeroInstance *hero, ui32 answer
|
||||
|
||||
const auto * obj = cb->getObj(exit);
|
||||
std::set<int3> tiles = obj->getBlockedPos();
|
||||
dPos = *RandomGeneratorUtil::nextItem(tiles, cb->gameState()->getRandomGenerator()));
|
||||
dPos = *RandomGeneratorUtil::nextItem(tiles, cb->gameState()->getRandomGenerator());
|
||||
}
|
||||
|
||||
cb->moveHero(hero->id, hero->convertFromVisitablePos(dPos), EMovementMode::MONOLITH);
|
||||
|
Loading…
x
Reference in New Issue
Block a user