mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-13 22:06:58 +02:00
Fix msvc compile
This commit is contained in:
parent
17fc9d8d8f
commit
e53e515aa7
@ -159,7 +159,7 @@ BattleHex::EDir BattleHex::mutualPosition(BattleHex hex1, BattleHex hex2)
|
|||||||
return NONE;
|
return NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
char BattleHex::getDistance(BattleHex hex1, BattleHex hex2)
|
uint8_t BattleHex::getDistance(BattleHex hex1, BattleHex hex2)
|
||||||
{
|
{
|
||||||
int y1 = hex1.getY(), y2 = hex2.getY();
|
int y1 = hex1.getY(), y2 = hex2.getY();
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ struct DLL_LINKAGE BattleHex //TODO: decide if this should be changed to class f
|
|||||||
std::vector<BattleHex> allNeighbouringTiles() const;
|
std::vector<BattleHex> allNeighbouringTiles() const;
|
||||||
|
|
||||||
static EDir mutualPosition(BattleHex hex1, BattleHex hex2);
|
static EDir mutualPosition(BattleHex hex1, BattleHex hex2);
|
||||||
static char getDistance(BattleHex hex1, BattleHex hex2);
|
static uint8_t getDistance(BattleHex hex1, BattleHex hex2);
|
||||||
static void checkAndPush(BattleHex tile, std::vector<BattleHex> & ret);
|
static void checkAndPush(BattleHex tile, std::vector<BattleHex> & ret);
|
||||||
static BattleHex getClosestTile(ui8 side, BattleHex initialPos, std::set<BattleHex> & possibilities); //TODO: vector or set? copying one to another is bad
|
static BattleHex getClosestTile(ui8 side, BattleHex initialPos, std::set<BattleHex> & possibilities); //TODO: vector or set? copying one to another is bad
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user