mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Unified income handling, added IOwnableObject interface
This commit is contained in:
@@ -643,8 +643,11 @@ void CGameHandler::onNewTurn()
|
||||
throw std::runtime_error("Invalid player in player state! Player " + std::to_string(player.first.getNum()) + ", map name: " + gs->map->name.toString() + ", map description: " + gs->map->description.toString());
|
||||
}
|
||||
|
||||
for (const auto & player : gs->players)
|
||||
n.playerIncome[player.first] = newTurnProcessor->generatePlayerIncome(player.first, newWeek && !firstTurn);
|
||||
if (!firstTurn)
|
||||
{
|
||||
for (const auto & player : gs->players)
|
||||
n.playerIncome[player.first] = newTurnProcessor->generatePlayerIncome(player.first, newWeek);
|
||||
}
|
||||
|
||||
if (newWeek && !firstTurn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user