mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- bugfix, when a unit morphs we now add to stored resource count if the unit is of that type (used to only work when building, now works during a morph)
This commit is contained in:
@@ -1376,6 +1376,7 @@ bool Unit::morph(const MorphCommandType *mct){
|
|||||||
computeTotalUpgrade();
|
computeTotalUpgrade();
|
||||||
map->putUnitCells(this, pos);
|
map->putUnitCells(this, pos);
|
||||||
faction->applyDiscount(morphUnitType, mct->getDiscount());
|
faction->applyDiscount(morphUnitType, mct->getDiscount());
|
||||||
|
faction->addStore(type);
|
||||||
faction->applyStaticProduction(morphUnitType);
|
faction->applyStaticProduction(morphUnitType);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user