Skip to content

Commit

Permalink
Fix merge and fit with subterrannean
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimRecya committed Feb 16, 2025
1 parent bb62e4a commit 3db2dfc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Phobos.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<ClCompile Include="src\Ext\TEvent\Body.cpp" />
<ClCompile Include="src\Ext\Trigger\Hooks.cpp" />
<ClCompile Include="src\Ext\Unit\Hooks.Crushing.cpp" />
<ClCompile Include="src\Ext\Unit\Hooks.Harvester.cpp" />
<ClCompile Include="src\Locomotion\TestLocomotionClass.cpp" />
<ClCompile Include="src\Misc\Hooks.Gamespeed.cpp" />
<ClCompile Include="src\Misc\Hooks.Ares.cpp" />
Expand Down Expand Up @@ -127,7 +128,6 @@
<ClCompile Include="src\Ext\Techno\Hooks.ReceiveDamage.cpp" />
<ClCompile Include="src\Ext\Techno\Hooks.TargetEvaluation.cpp" />
<ClCompile Include="src\Ext\Techno\Hooks.Transport.cpp" />
<ClCompile Include="src\Ext\Techno\Hooks.Harvester.cpp" />
<ClCompile Include="src\Ext\TerrainType\Body.cpp" />
<ClCompile Include="src\Ext\TerrainType\Hooks.cpp" />
<ClCompile Include="src\Ext\TerrainType\Hooks.Passable.cpp" />
Expand Down
2 changes: 1 addition & 1 deletion YRpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#include <AircraftClass.h>
#include "Body.h"
#include <ScenarioClass.h>
#include <TunnelLocomotionClass.h>
#include "Ext/Techno/Body.h"

#include <Ext/BuildingType/Body.h>
#include <Ext/House/Body.h>
#include <Ext/Anim/Body.h>
#include <Ext/WarheadType/Body.h>
#include <Ext/WeaponType/Body.h>
#include <Utilities/EnumFunctions.h>

#pragma region HarvesterQuickUnloader

void __fastcall ArrivingRefineryNearBy(UnitClass* pThis, BuildingClass* pDock)
{
pDock->UpdateRefinerySmokeSystems();
Expand Down Expand Up @@ -185,6 +182,8 @@ DEFINE_HOOK(0x73EB2C, UnitClass_MissionHarvest_Status2, 0x6)

if (pType->Teleporter && (move == MovementZone::AmphibiousCrusher || move == MovementZone::AmphibiousDestroyer))
move = MovementZone::Amphibious;
else if (move == MovementZone::Subterrannean)
move = MovementZone::Fly;

const auto destLocation = pThis->GetDestination();
auto destCell = CellStruct { static_cast<short>(destLocation.X >> 8), static_cast<short>(destLocation.Y >> 8) };
Expand Down Expand Up @@ -295,3 +294,5 @@ DEFINE_HOOK(0x441226, BuildingClass_Unlimbo_RecheckRefinery, 0x6)

return 0;
}

#pragma endregion

0 comments on commit 3db2dfc

Please sign in to comment.