implement returning full cost for buildings that get demolished in construction queue
This commit is contained in:
@@ -263,7 +263,7 @@ int BuildingSystem::demolish(EntityId id)
|
|||||||
m_constructionQueue.erase(it);
|
m_constructionQueue.erase(it);
|
||||||
if (def)
|
if (def)
|
||||||
{
|
{
|
||||||
return def->cost * m_config.world.refundPercentage / 100;
|
return def->cost;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user