simplify. Don't separate "next" and "cancel" as much: to cancel, set the next screen to PREV_SCREEN, and use SM_GoToNextScreen.

This commit is contained in:
Glenn Maynard
2006-06-25 18:11:09 +00:00
parent cee1f2205c
commit b0055b0853
5 changed files with 8 additions and 13 deletions
+2
View File
@@ -285,6 +285,8 @@ void ScreenWithMenuElements::TweenOffScreen()
void ScreenWithMenuElements::Cancel( ScreenMessage smSendWhenDone )
{
m_sNextScreen = GetPrevScreen();
if( CANCEL_TRANSITIONS_OUT )
{
SCREENMAN->PlayCancelSound();