mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
- Partially fixed mantis #1065 (Gate with hex 95 can't be attacked)
- Fixed 'catapult tried to attack non-catapultable hex!' problem, now catapult attacks attackable wall parts only - Fixed problem that the server performed applying damage on a wall part twice - Added methods for checking what wall parts are attackable and if a wall part is potentially attackable - Added functionality to trace net packages - Added functionality to trace std::vectors - Added tracing for CatapultAttack(CPack) - Updated various toString methods to use {} instead of [] - Refactoring
This commit is contained in:
@ -386,13 +386,13 @@ BattleInfo * BattleInfo::setupBattle( int3 tile, ETerrainType terrain, BFieldTyp
|
||||
|
||||
if (!town->hasBuilt(BuildingID::CITADEL))
|
||||
{
|
||||
curB->si.wallState[EWallParts::KEEP] = EWallState::NONE;
|
||||
curB->si.wallState[EWallPart::KEEP] = EWallState::NONE;
|
||||
}
|
||||
|
||||
if (!town->hasBuilt(BuildingID::CASTLE))
|
||||
{
|
||||
curB->si.wallState[EWallParts::UPPER_TOWER] = EWallState::NONE;
|
||||
curB->si.wallState[EWallParts::BOTTOM_TOWER] = EWallState::NONE;
|
||||
curB->si.wallState[EWallPart::UPPER_TOWER] = EWallState::NONE;
|
||||
curB->si.wallState[EWallPart::BOTTOM_TOWER] = EWallState::NONE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user