mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
nullkiller2: Add battleEnded() callback and also clean from battleResultsApplied() to fully mirror what was added in NK1
This commit is contained in:
@@ -411,15 +411,13 @@ void AIGateway::battleResultsApplied()
|
|||||||
{
|
{
|
||||||
LOG_TRACE(logAi);
|
LOG_TRACE(logAi);
|
||||||
assert(status.getBattle() == ENDING_BATTLE);
|
assert(status.getBattle() == ENDING_BATTLE);
|
||||||
status.setBattle(NO_BATTLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AIGateway::battleEnded()
|
void AIGateway::battleEnded()
|
||||||
{
|
{
|
||||||
// TODO: Mircea: Mirroring what was just added for NK1 doesn't work, crashes the game when NK2 fights during computer turns
|
LOG_TRACE(logAi);
|
||||||
// LOG_TRACE(logAi);
|
assert(status.getBattle() == ENDING_BATTLE);
|
||||||
// assert(status.getBattle() == ENDING_BATTLE);
|
status.setBattle(NO_BATTLE);
|
||||||
// status.setBattle(NO_BATTLE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AIGateway::beforeObjectPropertyChanged(const SetObjectProperty * sop)
|
void AIGateway::beforeObjectPropertyChanged(const SetObjectProperty * sop)
|
||||||
|
|||||||
Reference in New Issue
Block a user