I added a second checkpoint for starting to prevent DeadOnStart issue.

This commit is contained in:
Charles Lohr
2004-04-06 02:05:34 +00:00
parent fb9ad46efd
commit be6a396bab
+13 -1
View File
@@ -396,6 +396,16 @@ void ScreenGameplay::Init()
break; break;
} }
//
// Before the lifemeter loads, if Networking is required
// we need to wait, so that there is no Dead On Start issues.
// if you wait too long at the second checkpoint, you will
// appear dead when you begin your game.
//
NSMAN->StartRequest();
// //
// Add individual life meter // Add individual life meter
// //
@@ -1057,7 +1067,9 @@ float ScreenGameplay::StartPlayingSong(float MinTimeToNotes, float MinTimeToMusi
p.StopMode = RageSoundParams::M_CONTINUE; p.StopMode = RageSoundParams::M_CONTINUE;
p.m_StartSecond = fStartSecond; p.m_StartSecond = fStartSecond;
NSMAN->StartRequest(); //Network Code. //Secondary (Precice) start request
//used for syncing up songs.
NSMAN->StartRequest();
m_soundMusic->Play( &p ); m_soundMusic->Play( &p );