Skip to content

Commit

Permalink
Minor marine fixes
Browse files Browse the repository at this point in the history
* Fixed crash when requesting HMG/GL when there was no advanced armoury present
* Fixed marines trying to build structures which were not finished building, but are now recycling
  • Loading branch information
RGreenlees committed Sep 12, 2023
1 parent 602edad commit b6b85c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion evobot/src/bot_commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ void CommanderReceiveWeaponRequest(bot_t* pBot, edict_t* Requestor, NSStructureT
sprintf(buf, "Get near an armoury, %s", STRING(Requestor->v.netname));
}


return;
}

pBot->SupportAction.ActionType = ACTION_DEPLOY;
Expand Down
1 change: 1 addition & 0 deletions evobot/src/bot_tactical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3370,6 +3370,7 @@ edict_t* UTIL_FindClosestMarineStructureUnbuiltWithoutBuilders(bot_t* pBot, cons
{
if (!it.second.bOnNavmesh) { continue; }
if (it.second.bFullyConstructed) { continue; }
if (UTIL_StructureIsRecycling(it.second.edict)) { continue; }
bool bReachable = (IsPlayerOnMarineTeam(pBot->pEdict)) ? it.second.bIsReachableMarine : it.second.bIsReachableAlien;

if (!bReachable) { continue; }
Expand Down

0 comments on commit b6b85c1

Please sign in to comment.