Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -884,12 +884,16 @@ void AIUpdateInterface::chooseGoodLocomotorFromCurrentSet()
}

//----------------------------------------------------------------------------------------------------------
// TheSuperHackers @bugfix WebbontheWeb 07/10/2026 The function can now return the crate object.
Object* AIUpdateInterface::checkForCrateToPickup()
{
if (m_crateCreated != INVALID_ID)
{
#if RETAIL_COMPATIBLE_CRC
m_crateCreated = INVALID_ID; // we have processed it, so clear it.
Comment thread
Caball009 marked this conversation as resolved.
#endif
Object* crate = TheGameLogic->findObjectByID(m_crateCreated);
m_crateCreated = INVALID_ID; // we have processed it, so clear it.
if (crate)
{
for (BehaviorModule** m = crate->getBehaviorModules(); *m; ++m)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,16 @@ void AIUpdateInterface::chooseGoodLocomotorFromCurrentSet()
}

//----------------------------------------------------------------------------------------------------------
// TheSuperHackers @bugfix WebbontheWeb 07/10/2026 The function can now return the crate object.
Object* AIUpdateInterface::checkForCrateToPickup()
{
if (m_crateCreated != INVALID_ID)
{
#if RETAIL_COMPATIBLE_CRC
m_crateCreated = INVALID_ID; // we have processed it, so clear it.
#endif
Object* crate = TheGameLogic->findObjectByID(m_crateCreated);
m_crateCreated = INVALID_ID; // we have processed it, so clear it.
if (crate)
{
for (BehaviorModule** m = crate->getBehaviorModules(); *m; ++m)
Expand Down
Loading