Skip to content

Commit 2856a23

Browse files
authored
[GEN][ZH] Fix ParticleUplinkCannonUpdate mismatch, introduced by previous refactoring (#1012)
1 parent ef17abf commit 2856a23

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ UpdateSleepTime ParticleUplinkCannonUpdate::update()
455455
break;
456456
}
457457

458-
if( orbitalBirthFrame <= now && now < orbitalDeathFrame )
458+
const Bool isFiring = m_laserStatus != LASERSTATUS_NONE && m_laserStatus != LASERSTATUS_DEAD;
459+
if ( isFiring )
459460
{
460461

461462
if( !m_manualTargetMode )

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ UpdateSleepTime ParticleUplinkCannonUpdate::update()
502502
break;
503503
}
504504

505-
if( orbitalBirthFrame <= now && now < orbitalDeathFrame )
505+
const Bool isFiring = m_laserStatus != LASERSTATUS_NONE && m_laserStatus != LASERSTATUS_DEAD;
506+
if ( isFiring )
506507
{
507508

508509
if( !m_manualTargetMode && !m_scriptedWaypointMode )

0 commit comments

Comments
 (0)