Skip to content

Commit

Permalink
Fix VTOL rearming bug where it would not use all pads
Browse files Browse the repository at this point in the history
Bug introduced with removal of cluster code.

Closes ticket:4697
  • Loading branch information
perim committed Jan 9, 2018
1 parent f7f1771 commit 86acb94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6657,7 +6657,6 @@ STRUCTURE *findNearestReArmPad(DROID *psDroid, STRUCTURE *psTarget, bool bClear)
for (STRUCTURE *psStruct = apsStructLists[psDroid->player]; psStruct; psStruct = psStruct->psNext)
{
if (psStruct->pStructureType->type == REF_REARM_PAD
&& psTarget == nullptr
&& (!bClear || clearRearmPad(psStruct)))
{
xdiff = (SDWORD)psStruct->pos.x - cx;
Expand Down

0 comments on commit 86acb94

Please sign in to comment.