Skip to content

Commit

Permalink
Fixed initial flashing in load screen movie.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall23 committed Apr 17, 2020
1 parent 5cbe026 commit cbf9847
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/framework/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1563,8 +1563,6 @@ void idSessionLocal::ExecuteMapChange( bool noFadeWipe ) {
// and draw the loading gui instead of game draws
insideExecuteMapChange = true;

common->BeginLoadScreen();

// shut down the existing game if it is running
UnloadMap();

Expand All @@ -1589,6 +1587,8 @@ void idSessionLocal::ExecuteMapChange( bool noFadeWipe ) {
// set the loading gui that we will wipe to
LoadLoadingGui( mapString );

common->BeginLoadScreen();

// if this works out we will probably want all the sizes in a def file although this solution will
// work for new maps etc. after the first load. we can also drop the sizes into the default.cfg
fileSystem->ResetReadCount();
Expand All @@ -1600,9 +1600,6 @@ void idSessionLocal::ExecuteMapChange( bool noFadeWipe ) {

ClearWipe();

// let the loading gui spin for 1 second to animate out
ShowLoadingGui();

// note any warning prints that happen during the load process
common->ClearWarnings( mapString );

Expand Down

0 comments on commit cbf9847

Please sign in to comment.