Skip to content

Commit f5f183a

Browse files
committed
Merge pull request OpenXcom#901 from myk002/apply_encumberance_on_turn_1
check strength penalty on turn 1
2 parents a90f948 + 1a44d5c commit f5f183a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Battlescape/InventoryState.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,17 @@ void InventoryState::btnOkClick(Action *)
474474
_battleGame->setSelectedUnit(inventoryTile->getUnit());
475475
}
476476
}
477+
478+
// initialize xcom units for battle
479+
for (std::vector<BattleUnit*>::iterator j = _battleGame->getUnits()->begin(); j != _battleGame->getUnits()->end(); ++j)
480+
{
481+
if ((*j)->getOriginalFaction() != FACTION_PLAYER || (*j)->isOut())
482+
{
483+
continue;
484+
}
485+
486+
(*j)->prepareNewTurn();
487+
}
477488
}
478489
}
479490

0 commit comments

Comments
 (0)