Skip to content

Commit

Permalink
Merge branch 'develop-FloatMinerPathFix' into develop-Mix4BEtest
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimRecya committed Feb 19, 2025
2 parents 17f8144 + fac6abb commit 240efea
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ This page lists all the individual contributions to the project by their author.
- Tunnel/Walk/Mech locomotor being stuck when moving too fast bugfix
- Assign Super Weapon cameo to any sidebar tab
- Fix impassable invisible barrier created by chronosphere on uncrushable unit.
- Fix amphibious harvesters can not automatically return to refineries with `WaterBound`
- Exclusive SuperWeapon Sidebar
- **Apollo** - Translucent SHP drawing patches
- **ststl**
Expand Down
1 change: 1 addition & 0 deletions docs/Fixed-or-Improved-Logics.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ This page describes all ingame logics that are fixed or improved in Phobos witho
- Fix the bug that parasite will vanish if it missed its target when its previous cell is occupied.
- Prevent the units with locomotors that cause problems from entering the tank bunker.
- Fix an issue where a unit will leave an impassable invisible barrier in its original position when it is teleported by ChronoSphere onto an uncrushable unit and self destruct.
- Fix an issue that harvesters with amphibious movement zone can not automatically return to refineries with `WaterBound` on water surface.

## Fixes / interactions with other extensions

Expand Down
1 change: 1 addition & 0 deletions docs/Whats-New.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ Vanilla fixes:
- Fix the bug that parasite will vanish if it missed its target when its previous cell is occupied (by 航味麻酱)
- Prevent the units with locomotors that cause problems from entering the tank bunker (by TaranDahl)
- Fix an issue where a unit will leave an impassable invisible barrier in its original position when it is teleported by ChronoSphere onto an uncrushable unit and self destruct (by NetsuNegi)
- Fix an issue that harvesters with amphibious movement zone can not automatically return to refineries with `WaterBound` on water surface (by NetsuNegi)
- Units are now unable to kick out from a factory that is in construction process, and will not always stuck in the factory (by CrimRecya & TaranDahl)
- Observer sidebar in skirmish game mode (by CrimRecya)

Expand Down
19 changes: 19 additions & 0 deletions src/Misc/Hooks.BugFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,25 @@ DEFINE_HOOK(0x71872C, TeleportLocomotionClass_MakeRoom_OccupationFix, 0x9)

#pragma endregion

#pragma region AmphibiousHarvester

DEFINE_HOOK(0x73ED66, UnitClass_Mission_Harvest_PathfindingFix, 0x5)
{
GET(UnitClass*, pThis, EBP);
REF_STACK(SpeedType, speedType, STACK_OFFSET(0xA0, -0x98));
REF_STACK(int, currentZoneType, STACK_OFFSET(0xA0, -0x94));
REF_STACK(MovementZone, movementZone, STACK_OFFSET(0xA0, -0x90));

const auto pType = pThis->Type;
speedType = pType->SpeedType;
movementZone = pType->MovementZone;
currentZoneType = MapClass::Instance->GetMovementZoneType(pThis->GetMapCoords(), movementZone, pThis->OnBridge);

return 0;
}

#pragma endregion

#pragma region StopEventFix

DEFINE_HOOK(0x4C75DA, EventClass_RespondToEvent_Stop, 0x6)
Expand Down

0 comments on commit 240efea

Please sign in to comment.