Skip to content

Commit

Permalink
switch to MSG_GAME_DELTA_WAIT-status before nthread is run the first …
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
pionere committed Nov 15, 2023
1 parent 41053ea commit 5852937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ bool DownloadDeltaInfo()
gsDeltaData.ddDeltaSender = SNPLAYER_ALL;
assert(gsDeltaData.ddSendRecvOffset == 0);
// trigger delta-download in nthread
geBufferMsgs = MSG_GAME_DELTA_WAIT;
// assert(geBufferMsgs == MSG_GAME_DELTA_WAIT);
//guDeltaStart = SDL_GetTicks();
success = UiProgressDialog("Waiting for game data...", msg_wait_for_delta);
assert(geBufferMsgs == MSG_NORMAL || !success || gbGameDeltaChunks != MAX_CHUNKS);
Expand Down
3 changes: 3 additions & 0 deletions Source/multi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,9 @@ bool NetInit(bool bSinglePlayer)
NetClose();
continue;
}
if (gbJoinGame) {
geBufferMsgs = MSG_GAME_DELTA_WAIT;
}
nthread_run();
SetupLocalPlr();
#ifndef NONET
Expand Down

0 comments on commit 5852937

Please sign in to comment.