mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
refactoring: TDmgRange pair -> DamageRange struct
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "CGTownInstance.h"
|
||||
#include "CObjectClassesHandler.h"
|
||||
#include "../spells/CSpellHandler.h"
|
||||
|
||||
#include "../battle/IBattleInfoCallback.h"
|
||||
#include "../NetPacks.h"
|
||||
#include "../CConfigHandler.h"
|
||||
#include "../CGeneralTextHandler.h"
|
||||
@@ -807,7 +807,7 @@ void CGTownInstance::addTownBonuses()
|
||||
}
|
||||
}
|
||||
|
||||
TDmgRange CGTownInstance::getTowerDamageRange() const
|
||||
DamageRange CGTownInstance::getTowerDamageRange() const
|
||||
{
|
||||
assert(hasBuilt(BuildingID::CASTLE));
|
||||
|
||||
@@ -825,7 +825,7 @@ TDmgRange CGTownInstance::getTowerDamageRange() const
|
||||
};
|
||||
}
|
||||
|
||||
TDmgRange CGTownInstance::getKeepDamageRange() const
|
||||
DamageRange CGTownInstance::getKeepDamageRange() const
|
||||
{
|
||||
assert(hasBuilt(BuildingID::CITADEL));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user