1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Create fuzzy logic map object evaluation fundamentals

This commit is contained in:
Dydzio
2018-07-27 02:28:12 +02:00
parent 27541a72f5
commit df00ced204
4 changed files with 109 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ MapObjectsEvaluator::MapObjectsEvaluator()
for(auto secondaryID : VLC->objtypeh->knownSubObjects(primaryID))
{
auto handler = VLC->objtypeh->getHandlerFor(primaryID, secondaryID);
if(!handler->isStaticObject() && handler->getRMGInfo().value)
if(!handler->isStaticObject())
{
objectDatabase[CompoundMapObjectID(primaryID, secondaryID)] = handler->getRMGInfo().value;
}