1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

- fixed Clang compiler warnings

This commit is contained in:
beegee1 2014-08-04 20:36:00 +02:00
parent 12126754fb
commit c1ac95b288
4 changed files with 5 additions and 5 deletions

View File

@ -197,7 +197,7 @@ namespace JsonRandom
}
const CCreature * crea = VLC->creh->creatures[VLC->modh->identifiers.getIdentifier("creature", node["type"]).get()];
info.allowedCreatures.push_back(crea);
if (!node["upgradeChance"].Float() > 0)
if (node["upgradeChance"].Float() > 0)
{
for (auto creaID : crea->upgrades)
info.allowedCreatures.push_back(VLC->creh->creatures[creaID]);

View File

@ -1689,7 +1689,7 @@ void CRmgTemplateZone::addAllPossibleObjects (CMapGenerator* gen)
//prisons
//levels 1, 5, 10, 20, 30
static int prisonExp[] = {0, 5000, 15000, 90000, 500000};
//static int prisonExp[] = {0, 5000, 15000, 90000, 500000};
static int prisonValues[] = {2500, 5000, 10000, 20000, 30000};
for (int i = 0; i < 5; i++)

View File

@ -18,7 +18,7 @@
class CRandomGenerator;
CPlacedZone::CPlacedZone(const CRmgTemplateZone * zone) : zone(zone)
CPlacedZone::CPlacedZone(const CRmgTemplateZone * zone)
{
}

View File

@ -29,7 +29,7 @@ public:
explicit CPlacedZone(const CRmgTemplateZone * Zone);
private:
const CRmgTemplateZone * zone;
//const CRmgTemplateZone * zone;
//TODO exact outline data of zone
//TODO perhaps further zone data, guards, obstacles, etc...
@ -50,7 +50,7 @@ private:
//metric coefiicients
float scaleX;
float scaleY;
float a1, b1, c1, a2, b2, c2;
//float a1, b1, c1, a2, b2, c2;
//CMap * map;
//unique_ptr<CZoneGraph> graph;
CMapGenerator * gen;