mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 07:01:21 +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();
|
||||
map->putUnitCells(this, pos);
|
||||
faction->applyDiscount(morphUnitType, mct->getDiscount());
|
||||
faction->addStore(type);
|
||||
faction->applyStaticProduction(morphUnitType);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user