1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

vcmi: massive refactoring v1

This commit is contained in:
Konstantin
2023-04-05 03:26:29 +03:00
parent ee489f18d2
commit 11b237a23c
129 changed files with 803 additions and 762 deletions

View File

@@ -1256,7 +1256,7 @@ void CMapLoaderH3M::readObjects()
readMessageAndGuards(res->message, res, objPos);
res->amount = reader->readUInt32();
if(objTempl->subid == Res::GOLD)
if(objTempl->subid == GameResID(EGameResID::GOLD))
{
// Gold is multiplied by 100.
res->amount *= 100;
@@ -1916,11 +1916,9 @@ void CMapLoaderH3M::readQuest(IQuestObject * guard, const int3 & position)
}
case CQuest::MISSION_RESOURCES:
{
guard->quest->m7resources.resize(7);
for(int x = 0; x < 7; ++x)
{
guard->quest->m7resources[x] = reader->readUInt32();
}
break;
}
case CQuest::MISSION_HERO: