mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
vcmi: modernize lib/rmg
This commit is contained in:
@@ -13,9 +13,10 @@
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
TileInfo::TileInfo():nearestObjectDistance(float(INT_MAX)), terrain()
|
||||
TileInfo::TileInfo()
|
||||
: nearestObjectDistance(static_cast<float>(std::numeric_limits<int>::max()))
|
||||
, occupied(ETileType::POSSIBLE) //all tiles are initially possible to place objects or passages
|
||||
{
|
||||
occupied = ETileType::POSSIBLE; //all tiles are initially possible to place objects or passages
|
||||
}
|
||||
|
||||
float TileInfo::getNearestObjectDistance() const
|
||||
|
||||
Reference in New Issue
Block a user