1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fixed remaining tempOwner testsю

This commit is contained in:
AlexVinS 2016-02-14 12:25:49 +03:00
parent fb322b41bc
commit 67b03b9658

View File

@ -317,13 +317,15 @@ void CGDwelling::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer)
void CGDwelling::writeJsonOptions(JsonNode& json) const
{
//todo:CGDwelling::writeJsonOptions
CGObjectInstance::writeOwner(json);
if(ID != Obj::WAR_MACHINE_FACTORY && ID != Obj::REFUGEE_CAMP)
CGObjectInstance::writeOwner(json);
}
void CGDwelling::readJsonOptions(const JsonNode& json)
{
//todo:CGDwelling::readJsonOptions
CGObjectInstance::readOwner(json);
if(ID != Obj::WAR_MACHINE_FACTORY && ID != Obj::REFUGEE_CAMP)
CGObjectInstance::readOwner(json);
}
int CGTownInstance::getSightRadius() const //returns sight distance