From c313c239b7182f4713b96d3f5ebfe4e48ed462c7 Mon Sep 17 00:00:00 2001 From: Trsdy <914137150@qq.com> Date: Wed, 23 Nov 2022 18:35:52 +0800 Subject: [PATCH] Fix Raider->Piggybackee typo --- BuildingClass.h | 8 ++++---- DriveLocomotionClass.h | 2 +- FootClass.h | 2 +- JumpjetLocomotionClass.h | 2 +- ShipLocomotionClass.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/BuildingClass.h b/BuildingClass.h index c4624b8b..f22c44a5 100644 --- a/BuildingClass.h +++ b/BuildingClass.h @@ -303,12 +303,12 @@ class NOVTABLE BuildingClass : public TechnoClass AudioController Audio8; bool WasOnline; // the the last state when Update()ing. if this changed since the last Update(), UpdatePowered is called. - bool ShowRealName; - bool BeingProduced; - bool ShouldRebuild; + bool ShowRealName; // is also NOMINAL under [Structures] + bool BeingProduced; // is also AI_REBUILDABLE under [Structures] + bool ShouldRebuild; // is also AI_REPAIRABLE under [Structures] bool HasEngineer; // used to pass the NeedsEngineer check CDTimerClass CashProductionTimer; - bool unknown_bool_6DC; + bool AI_Sellable; // AI_SELLABLE under [Structures] bool IsReadyToCommence; bool NeedsRepairs; // AI handholder for repair logic, bool C4Applied; diff --git a/DriveLocomotionClass.h b/DriveLocomotionClass.h index a0f3fc24..bebe7762 100644 --- a/DriveLocomotionClass.h +++ b/DriveLocomotionClass.h @@ -43,7 +43,7 @@ class NOVTABLE DriveLocomotionClass : public LocomotionClass, public IPiggyback bool IsDriving; bool IsRocking; bool IsLocked; - AbstractClass* Raider; + ILocomotion* Piggybackee; int field_6C; }; diff --git a/FootClass.h b/FootClass.h index f561536e..a576f574 100644 --- a/FootClass.h +++ b/FootClass.h @@ -165,7 +165,7 @@ class NOVTABLE FootClass : public TechnoClass double SpeedPercentage; double SpeedMultiplier; DECLARE_PROPERTY(DynamicVectorClass, unknown_abstract_array_588); - DWORD unknown_5A0; + AbstractClass* unknown_5A0; AbstractClass* Destination; // possibly other objects as well AbstractClass* LastDestination; DECLARE_PROPERTY(DynamicVectorClass, unknown_abstract_array_5AC); diff --git a/JumpjetLocomotionClass.h b/JumpjetLocomotionClass.h index a962f38a..47a3b03c 100644 --- a/JumpjetLocomotionClass.h +++ b/JumpjetLocomotionClass.h @@ -96,7 +96,7 @@ class NOVTABLE JumpjetLocomotionClass : public LocomotionClass, public IPiggybac BYTE unknown_91; BYTE unknown_92; BYTE unknown_93; - AbstractClass* Raider; + ILocomotion* Piggybackee; }; static_assert(sizeof(JumpjetLocomotionClass) == 0x98); diff --git a/ShipLocomotionClass.h b/ShipLocomotionClass.h index 19d2d0d0..e14049ac 100644 --- a/ShipLocomotionClass.h +++ b/ShipLocomotionClass.h @@ -43,7 +43,7 @@ class __declspec(align(4)) NOVTABLE ShipLocomotionClass : public LocomotionClass bool IsDriving; bool IsRocking; bool IsLocked; - DWORD field_68; + ILocomotion* Piggybackee; }; static_assert(sizeof(ShipLocomotionClass) == 0x70);