- warning removal

SVN r3043 (trunk)
This commit is contained in:
Christoph Oelckers 2010-12-15 18:57:39 +00:00
parent b42952b85c
commit 419a998bdf
3 changed files with 15 additions and 1 deletions

View file

@ -2328,9 +2328,10 @@ void D_DoomMain (void)
{ {
D_DoomLoop (); // never returns D_DoomLoop (); // never returns
} }
catch (CRestartException &ex) catch (CRestartException &)
{ {
// Music and sound should be stopped first // Music and sound should be stopped first
screen->GameRestart();
S_StopMusic(true); S_StopMusic(true);
S_StopAllChannels (); S_StopAllChannels ();

View file

@ -1384,6 +1384,16 @@ int DFrameBuffer::GetMaxViewPitch(bool down)
return down? MAX_DN_ANGLE*ANGLE_1 : -MAX_UP_ANGLE*ANGLE_1; return down? MAX_DN_ANGLE*ANGLE_1 : -MAX_UP_ANGLE*ANGLE_1;
} }
//==========================================================================
//
// DFrameBuffer :: GameRestart
//
//==========================================================================
void DFrameBuffer::GameRestart()
{
}
//=========================================================================== //===========================================================================
// //
// //

View file

@ -407,6 +407,9 @@ public:
virtual void GetHitlist(BYTE *hitlist); virtual void GetHitlist(BYTE *hitlist);
virtual void PrecacheTexture(FTexture *tex, int cache); virtual void PrecacheTexture(FTexture *tex, int cache);
// Report a game restart
virtual void GameRestart();
// Screen wiping // Screen wiping
virtual bool WipeStartScreen(int type); virtual bool WipeStartScreen(int type);
virtual void WipeEndScreen(); virtual void WipeEndScreen();