mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Make gcc happy
This commit is contained in:
parent
69457dbd75
commit
c40c79fa94
@ -306,12 +306,12 @@ int3 CRmgTemplateZone::getPos()
|
||||
{
|
||||
return pos;
|
||||
}
|
||||
void CRmgTemplateZone::setPos(int3 &Pos)
|
||||
void CRmgTemplateZone::setPos(const int3 &Pos)
|
||||
{
|
||||
pos = Pos;
|
||||
}
|
||||
|
||||
void CRmgTemplateZone::addTile (int3 &pos)
|
||||
void CRmgTemplateZone::addTile (const int3 &pos)
|
||||
{
|
||||
tileinfo[pos] = CTileInfo();
|
||||
}
|
||||
|
@ -103,9 +103,9 @@ public:
|
||||
float3 getCenter() const;
|
||||
void setCenter(float3 f);
|
||||
int3 getPos();
|
||||
void setPos(int3 &pos);
|
||||
void setPos(const int3 &pos);
|
||||
|
||||
void addTile (int3 &pos);
|
||||
void addTile (const int3 &pos);
|
||||
void setShape(std::vector<int3> shape);
|
||||
bool fill(CMapGenerator* gen);
|
||||
|
||||
|
@ -33,7 +33,7 @@ CZonePlacer::~CZonePlacer()
|
||||
|
||||
}
|
||||
|
||||
int3 CZonePlacer::cords (float3 f) const
|
||||
int3 CZonePlacer::cords (const float3 f) const
|
||||
{
|
||||
return int3(std::max(0.f, (f.x * gen->map->width)-1), std::max(0.f, (f.y * gen->map->height-1)), f.z);
|
||||
}
|
||||
@ -160,7 +160,7 @@ void CZonePlacer::placeZones(shared_ptr<CMapGenOptions> mapGenOptions, CRandomGe
|
||||
}
|
||||
}
|
||||
|
||||
float CZonePlacer::metric (int3 &A, int3 &B) const
|
||||
float CZonePlacer::metric (const int3 &A, const int3 &B) const
|
||||
{
|
||||
/*
|
||||
|
||||
|
@ -39,8 +39,8 @@ class CZonePlacer
|
||||
{
|
||||
public:
|
||||
explicit CZonePlacer(CMapGenerator * gen);
|
||||
int3 cords (float3 f) const;
|
||||
float metric (int3 &a, int3 &b) const;
|
||||
int3 cords (const float3 f) const;
|
||||
float metric (const int3 &a, const int3 &b) const;
|
||||
~CZonePlacer();
|
||||
|
||||
void placeZones(shared_ptr<CMapGenOptions> mapGenOptions, CRandomGenerator * rand);
|
||||
|
Loading…
Reference in New Issue
Block a user