Skip to content

Commit ec1f933

Browse files
author
Ibra
committed
Tweak: Set minimum load screen display time to allow for reading player ELO and stats
1 parent 8aa90e2 commit ec1f933

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameLogic/System/GameLogic.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,7 +2356,15 @@ void GameLogic::tryStartNewGame( Bool loadingSaveGame )
23562356
TheNetwork->liteupdate();
23572357
}
23582358

2359+
#if defined(GENERALS_ONLINE)
2360+
// set a minimum display time for the load screen on GO to allow players to read ELO, army, stats, etc.
2361+
const UnsignedInt minLoadScreenDisplayTime = 2000;
2362+
UnsignedInt minLoadScreenEndTime = isInInternetGame() ? (timeGetTime() + minLoadScreenDisplayTime) : 0;
2363+
2364+
while (!isProgressComplete() || (minLoadScreenEndTime != 0 && timeGetTime() < minLoadScreenEndTime))
2365+
#else
23592366
while (!isProgressComplete())
2367+
#endif
23602368
{
23612369
updateLoadProgress(101); // keep greater then 100
23622370
testTimeOut();

0 commit comments

Comments
 (0)