mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Client-side support for multiple battles
This commit is contained in:
@@ -970,7 +970,7 @@ bool EffectAnimation::init()
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto * destStack = owner.getCurrentPlayerInterface()->cb->battleGetUnitByPos(battlehexes[i], false);
|
||||
const auto * destStack = owner.getBattle()->battleGetUnitByPos(battlehexes[i], false);
|
||||
Rect tilePos = owner.fieldController->hexPositionLocal(battlehexes[i]);
|
||||
|
||||
be.pos.x = tilePos.x + tilePos.w/2 - first->width()/2;
|
||||
|
||||
Reference in New Issue
Block a user