Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit ca0d9e1

Browse files
committed
Fix build errors.
1 parent d281d09 commit ca0d9e1

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

Source/FWorldGenerator/Private/FWGChunk.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,26 @@ void AFWGChunk::BeginPlay()
2828
//pTriggerBox->OnComponentEndOverlap.AddDynamic(this, &AFWGChunk::OnEndOverlap);
2929
}
3030

31-
void AFWGChunk::setInit(long long iX, long long iY, int32 iSectionIndex, bool bAroundCenter)
31+
void AFWGChunk::setInit(long long ix, long long iy, int32 iSectionindex, bool bAroundcenter)
3232
{
3333
pMeshSection = nullptr;
3434

35-
this->iX = iX;
36-
this->iY = iY;
35+
this->iX = ix;
36+
this->iY = iy;
3737

38-
this->iSectionIndex = iSectionIndex;
38+
this->iSectionIndex = iSectionindex;
3939

40-
this->bAroundCenter = bAroundCenter;
40+
this->bAroundCenter = bAroundcenter;
4141
}
4242

43-
void AFWGChunk::setUpdate(long long iX, long long iY, bool bAroundCenter)
43+
void AFWGChunk::setUpdate(long long ix, long long iy, bool bAroundcenter)
4444
{
4545
clearChunk();
4646

47-
this->iX = iX;
48-
this->iY = iY;
47+
this->iX = ix;
48+
this->iY = iy;
4949

50-
this->bAroundCenter = bAroundCenter;
50+
this->bAroundCenter = bAroundcenter;
5151
}
5252

5353
void AFWGChunk::setChunkSize(int32 iXCount, int32 iYCount)
@@ -60,9 +60,9 @@ void AFWGChunk::setChunkSize(int32 iXCount, int32 iYCount)
6060
}
6161
}
6262

63-
void AFWGChunk::setChunkMap(FWGenChunkMap* pChunkMap)
63+
void AFWGChunk::setChunkMap(FWGenChunkMap* pChunkmap)
6464
{
65-
this->pChunkMap = pChunkMap;
65+
this->pChunkMap = pChunkmap;
6666
}
6767

6868
void AFWGChunk::setOverlapToActors(std::vector<FString> vClasses)
@@ -83,9 +83,9 @@ void AFWGChunk::clearChunk()
8383
vChunkCells.clear();
8484
}
8585

86-
void AFWGChunk::setMeshSection(FProcMeshSection* pMeshSection)
86+
void AFWGChunk::setMeshSection(FProcMeshSection* pMeshsection)
8787
{
88-
this->pMeshSection = pMeshSection;
88+
this->pMeshSection = pMeshsection;
8989
}
9090

9191
AFWGChunk::~AFWGChunk()

Source/FWorldGenerator/Private/FWGChunk.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ class AFWGChunk : public AActor
2828

2929
AFWGChunk();
3030

31-
void setInit (long long iX, long long iY, int32 iSectionIndex, bool bAroundCenter);
32-
void setUpdate (long long iX, long long iY, bool bAroundCenter);
31+
void setInit (long long ix, long long iy, int32 iSectionindex, bool bAroundcenter);
32+
void setUpdate (long long ix, long long iy, bool bAroundcenter);
3333
void setChunkSize (int32 iXCount, int32 iYCount);
34-
void setChunkMap (FWGenChunkMap* pChunkMap);
34+
void setChunkMap (FWGenChunkMap* pChunkmap);
3535
void setOverlapToActors (std::vector<FString> vClasses);
36-
void setMeshSection (FProcMeshSection* pMeshSection);
36+
void setMeshSection (FProcMeshSection* pMeshsection);
3737

3838
~AFWGChunk();
3939

Source/FWorldGenerator/Private/FWGen.cpp

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,23 +1107,23 @@ void AFWGen::spawnObjects(AFWGChunk* pOnlyForThisChunk)
11071107
std::vector<FWGCallback> vSecondLayer;
11081108
std::vector<FWGCallback> vThirdLayer;
11091109

1110-
for (size_t i = 0; i < vObjectsToSpawn.size(); i++)
1110+
for (size_t k = 0; k < vObjectsToSpawn.size(); k++)
11111111
{
1112-
if (areEqual(vObjectsToSpawn[i].fLayer, -0.5f, 0.1f))
1112+
if (areEqual(vObjectsToSpawn[k].fLayer, -0.5f, 0.1f))
11131113
{
1114-
vWaterLayer.push_back(vObjectsToSpawn[i]);
1114+
vWaterLayer.push_back(vObjectsToSpawn[k]);
11151115
}
1116-
else if (areEqual(vObjectsToSpawn[i].fLayer, 0.0f, 0.1f))
1116+
else if (areEqual(vObjectsToSpawn[k].fLayer, 0.0f, 0.1f))
11171117
{
1118-
vFirstLayer.push_back(vObjectsToSpawn[i]);
1118+
vFirstLayer.push_back(vObjectsToSpawn[k]);
11191119
}
1120-
else if (areEqual(vObjectsToSpawn[i].fLayer, 0.5f, 0.1f))
1120+
else if (areEqual(vObjectsToSpawn[k].fLayer, 0.5f, 0.1f))
11211121
{
1122-
vSecondLayer.push_back(vObjectsToSpawn[i]);
1122+
vSecondLayer.push_back(vObjectsToSpawn[k]);
11231123
}
11241124
else
11251125
{
1126-
vThirdLayer.push_back(vObjectsToSpawn[i]);
1126+
vThirdLayer.push_back(vObjectsToSpawn[k]);
11271127
}
11281128
}
11291129

@@ -1167,10 +1167,10 @@ void AFWGen::spawnObjects(AFWGChunk* pOnlyForThisChunk)
11671167
vXOffset.push_back(TraceStart.X - fXCellSize / 2);
11681168

11691169

1170-
for (size_t i = 0; i < vXOffset.size(); i++)
1170+
for (size_t k = 0; k < vXOffset.size(); k++)
11711171
{
1172-
TraceStart.X = vXOffset[i];
1173-
TraceEnd.X = vXOffset[i];
1172+
TraceStart.X = vXOffset[k];
1173+
TraceEnd.X = vXOffset[k];
11741174

11751175
if (GetWorld()->LineTraceSingleByChannel(OutHit, TraceStart, TraceEnd, ECC_Visibility, CollisionParams))
11761176
{
@@ -1191,10 +1191,10 @@ void AFWGen::spawnObjects(AFWGChunk* pOnlyForThisChunk)
11911191
vYOffset.push_back(TraceStart.Y + fYCellSize / 2);
11921192
vYOffset.push_back(TraceStart.Y - fYCellSize / 2);
11931193

1194-
for (size_t i = 0; i < vYOffset.size(); i++)
1194+
for (size_t k = 0; k < vYOffset.size(); k++)
11951195
{
1196-
TraceStart.Y = vYOffset[i];
1197-
TraceEnd.Y = vYOffset[i];
1196+
TraceStart.Y = vYOffset[k];
1197+
TraceEnd.Y = vYOffset[k];
11981198

11991199
if (GetWorld()->LineTraceSingleByChannel(OutHit, TraceStart, TraceEnd, ECC_Visibility, CollisionParams))
12001200
{
@@ -1685,9 +1685,9 @@ bool AFWGen::SetGenerationMaxZFromActorZ(float NewGenerationMaxZFromActorZ)
16851685
}
16861686
}
16871687

1688-
void AFWGen::SetInvertWorld(bool InvertWorld)
1688+
void AFWGen::SetInvertWorld(bool Invertworld)
16891689
{
1690-
this->InvertWorld = InvertWorld;
1690+
this->InvertWorld = Invertworld;
16911691
}
16921692

16931693
bool AFWGen::SetWorldSize(int32 NewWorldSize)
@@ -1806,9 +1806,9 @@ bool AFWGen::SetThirdMaterialOnOtherProbability(float ThirdOnFirst, float ThirdO
18061806
}
18071807
}
18081808

1809-
void AFWGen::SetCreateWater(bool CreateWater)
1809+
void AFWGen::SetCreateWater(bool Createwater)
18101810
{
1811-
this->CreateWater = CreateWater;
1811+
this->CreateWater = Createwater;
18121812
}
18131813

18141814
bool AFWGen::SetZWaterLevelInWorld(float NewZWaterLevelInWorld)
@@ -2408,29 +2408,29 @@ bool AFWGen::SetMinSlopeHeightMultiplier(float NewMinSlopeHeightMultiplier)
24082408
}
24092409
}
24102410

2411-
bool AFWGen::SetDivideChunkXCount(int32 DivideChunkXCount)
2411+
bool AFWGen::SetDivideChunkXCount(int32 DivideChunkXcount)
24122412
{
2413-
if (DivideChunkXCount < 1)
2413+
if (DivideChunkXcount < 1)
24142414
{
24152415
return true;
24162416
}
24172417
else
24182418
{
2419-
this->DivideChunkXCount = DivideChunkXCount;
2419+
this->DivideChunkXCount = DivideChunkXcount;
24202420

24212421
return false;
24222422
}
24232423
}
24242424

2425-
bool AFWGen::SetDivideChunkYCount(int32 DivideChunkYCount)
2425+
bool AFWGen::SetDivideChunkYCount(int32 DivideChunkYcount)
24262426
{
2427-
if (DivideChunkYCount < 1)
2427+
if (DivideChunkYcount < 1)
24282428
{
24292429
return true;
24302430
}
24312431
else
24322432
{
2433-
this->DivideChunkYCount = DivideChunkYCount;
2433+
this->DivideChunkYCount = DivideChunkYcount;
24342434

24352435
return false;
24362436
}

0 commit comments

Comments
 (0)