Skip to content

Commit

Permalink
Additional psBuilding->sDisplay.imd checks
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Aug 12, 2024
1 parent 5d5fc08 commit 56c55dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3791,7 +3791,8 @@ void structureUpdate(STRUCTURE *psBuilding, bool bMission)
psBuilding->animationEvent = ANIM_EVENT_NONE;
}
else if (psBuilding->pFunctionality->resourceExtractor.psPowerGen
&& psBuilding->animationEvent == ANIM_EVENT_NONE) // we have a power generator, but no animation
&& psBuilding->animationEvent == ANIM_EVENT_NONE // we have a power generator, but no animation
&& psBuilding->sDisplay.imd != nullptr)
{
psBuilding->animationEvent = ANIM_EVENT_ACTIVE;

Expand Down Expand Up @@ -3935,7 +3936,7 @@ void structureUpdate(STRUCTURE *psBuilding, bool bMission)
aDefaultRepair[psBuilding->player]].time);

//add the blue flashing effect for multiPlayer
if (bMultiPlayer && ONEINTEN && !bMission)
if (bMultiPlayer && ONEINTEN && !bMission && psBuilding->sDisplay.imd)
{
Vector3i position;
Vector3f *point;
Expand Down

0 comments on commit 56c55dd

Please sign in to comment.