Skip to content

Commit b43d336

Browse files
committed
Fixed aircraft takeoff synchronization.
1 parent c08e01d commit b43d336

File tree

1 file changed

+7
-0
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate

1 file changed

+7
-0
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/JetAIUpdate.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,8 +1350,15 @@ class JetPauseBeforeTakeoffState : public AIFaceState
13501350
// always call this.
13511351
StateReturnType superStatus = AIFaceState::update();
13521352

1353+
// TheSuperHackers @tweak Don't wait for the next aircraft in line to finish taxiing, but follow scheduled takeoff to avoid delays.
1354+
// Otherwise aircraft may miss their original takeoff frame and take off in an unsynchronized fashion.
1355+
#if RETAIL_COMPATIBLE_CRC
13531356
if (findWaiter())
13541357
return STATE_CONTINUE;
1358+
#else
1359+
if (!m_resetTimer && findWaiter())
1360+
return STATE_CONTINUE;
1361+
#endif
13551362

13561363
UnsignedInt now = TheGameLogic->getFrame();
13571364
if (!m_resetTimer)

0 commit comments

Comments
 (0)