Skip to content

Commit bd177ab

Browse files
committed
Fix spelling and move/adjust docs for BuildingWaypoint(s)
1 parent 0ee8090 commit bd177ab

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

docs/Fixed-or-Improved-Logics.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,16 @@ Units.RepairPercent= ; floating point value, percents or absolute
500500
Units.UseRepairCost= ; boolean
501501
```
502502

503+
### Waypoints for buildings
504+
505+
- In vanilla, buildings are forbidden to use waypoints. Now you can allow that using the following flag.
506+
507+
In `rulesmd.ini`:
508+
```ini
509+
[General]
510+
BuildingWaypoints=false ; boolean
511+
```
512+
503513
## Particle systems
504514

505515
### Fire particle target coordinate adjustment when firer rotates

docs/New-or-Enhanced-Logics.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,16 +1585,6 @@ Convert.HumanToComputer = ; TechnoType
15851585
Convert.ComputerToHuman = ; TechnoType
15861586
```
15871587

1588-
### Waypoint for building
1589-
1590-
- In vanilla, building and aircraft is forbiddened to use waypoint. Now you can turn it on by the following flags.
1591-
1592-
In `rulesmd.ini`:
1593-
```ini
1594-
[General]
1595-
BuildingWaypoint=false ; boolean
1596-
```
1597-
15981588
## Terrain
15991589

16001590
### Destroy animation & sound

src/Ext/Building/Hooks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,11 @@ DEFINE_HOOK(0x44B630, BuildingClass_MissionAttack_AnimDelayedFire, 0x6)
705705

706706
#pragma endregion
707707

708-
#pragma region BuildingWaypoint
708+
#pragma region BuildingWaypoints
709709

710710
bool __fastcall BuildingTypeClass_CanUseWaypoint(BuildingTypeClass* pThis)
711711
{
712-
return RulesExt::Global()->BuildingWaypoint;
712+
return RulesExt::Global()->BuildingWaypoints;
713713
}
714714
DEFINE_JUMP(VTABLE, 0x7E4610, GET_OFFSET(BuildingTypeClass_CanUseWaypoint))
715715

src/Ext/Rules/Body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void RulesExt::ExtData::LoadBeforeTypeData(RulesClass* pThis, CCINIClass* pINI)
187187
this->DropPodTrailer = droppod_trailer.Get(AnimTypeClass::Find("SMOKEY"));// Ares convention
188188
this->PodImage = FileSystem::LoadSHPFile("POD.SHP");
189189

190-
this->BuildingWaypoint.Read(exINI, GameStrings::General, "BuildingWaypoint");
190+
this->BuildingWaypoints.Read(exINI, GameStrings::General, "BuildingWaypoints");
191191

192192
this->Buildings_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Buildings.DefaultDigitalDisplayTypes");
193193
this->Infantry_DefaultDigitalDisplayTypes.Read(exINI, GameStrings::AudioVisual, "Infantry.DefaultDigitalDisplayTypes");
@@ -403,7 +403,7 @@ void RulesExt::ExtData::Serialize(T& Stm)
403403
.Process(this->JumpjetLevelLightMultiplier)
404404
.Process(this->VoxelLightSource)
405405
// .Process(this->VoxelShadowLightSource)
406-
.Process(this->BuildingWaypoint)
406+
.Process(this->BuildingWaypoints)
407407
.Process(this->CombatAlert)
408408
.Process(this->CombatAlert_Default)
409409
.Process(this->CombatAlert_IgnoreBuilding)

src/Ext/Rules/Body.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class RulesExt
182182
Valueable<int> CombatLightDetailLevel;
183183
Valueable<int> LightFlashAlphaImageDetailLevel;
184184

185-
Valueable<bool> BuildingWaypoint;
185+
Valueable<bool> BuildingWaypoints;
186186
Valueable<bool> BuildingTypeSelectable;
187187

188188
ExtData(RulesClass* OwnerObject) : Extension<RulesClass>(OwnerObject)
@@ -320,7 +320,7 @@ class RulesExt
320320
, WarheadParticleAlphaImageIsLightFlash { false }
321321
, CombatLightDetailLevel { 0 }
322322
, LightFlashAlphaImageDetailLevel { 0 }
323-
, BuildingWaypoint { false }
323+
, BuildingWaypoints { false }
324324
, BuildingTypeSelectable { false }
325325
{ }
326326

0 commit comments

Comments
 (0)