1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Replaced most of usages of CRandomGenerator with vstd::RNG in library

This commit is contained in:
Ivan Savenko
2024-06-01 15:28:17 +00:00
parent 60a51e98de
commit 63bcf7d83c
125 changed files with 620 additions and 409 deletions

View File

@ -44,7 +44,7 @@ CBank::CBank(IGameCallback *cb)
//must be instantiated in .cpp file for access to complete types of all member fields
CBank::~CBank() = default;
void CBank::initObj(CRandomGenerator & rand)
void CBank::initObj(vstd::RNG & rand)
{
daycounter = 0;
resetDuration = 0;
@ -117,7 +117,7 @@ void CBank::setPropertyDer (ObjProperty what, ObjPropertyID identifier)
}
}
void CBank::newTurn(CRandomGenerator & rand) const
void CBank::newTurn(vstd::RNG & rand) const
{
if (bankConfig == nullptr)
{