Created large number of missing objects in configs
Minor bugfixes in code
This commit is contained in:
1 parent
09d595e385
commit
0a71e89f58
8 files changed
+123
-44
No files matched your search
@@ -336,7 +336,8 @@ void CGObjectInstance::setType(si32 ID, si32 subID)
|
||||
|
||||
//recalculate blockvis tiles - new appearance might have different blockmap than before
|
||||
cb->gameState()->map->removeBlockVisTiles(this, true);
|
||||
this->appearance = VLC->objtypeh->getHandlerFor(ID, subID)->getTemplates(tile.terType).at(0);
|
||||
auto handler = VLC->objtypeh->getHandlerFor(ID, subID);
|
||||
appearance = handler->getTemplates(tile.terType).at(0);
|
||||
cb->gameState()->map->addBlockVisTiles(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user