diff options
| author | Filippos Karapetis | 2015-07-18 15:28:10 +0300 | 
|---|---|---|
| committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 | 
| commit | 21e360b9b18e887bb35efaf21a16bf7f97338a35 (patch) | |
| tree | e5e4eb9c15e918231e42b0e93a562315c604b971 /engines/lab/engine.cpp | |
| parent | 27683945e609d50947cecaf1b947fd85e40e9159 (diff) | |
| download | scummvm-rg350-21e360b9b18e887bb35efaf21a16bf7f97338a35.tar.gz scummvm-rg350-21e360b9b18e887bb35efaf21a16bf7f97338a35.tar.bz2 scummvm-rg350-21e360b9b18e887bb35efaf21a16bf7f97338a35.zip | |
LAB: Remove dead/superfluous code, and remove the newCheckMusic() wrapper
Diffstat (limited to 'engines/lab/engine.cpp')
| -rw-r--r-- | engines/lab/engine.cpp | 14 | 
1 files changed, 4 insertions, 10 deletions
| diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 661cbdfb84..8960464aeb 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -397,8 +397,6 @@ void eatMessages() {  	do {  		Msg = getMsg(); -		if (Msg) -			replyMsg((void *) Msg);  	} while (Msg);  	return; @@ -787,7 +785,7 @@ static void mainGameLoop() {  		if (Msg == NULL) { /* Does music load and next animation frame when you've run out of messages */  			GotMessage = false;  			checkRoomMusic(); -			g_music->newCheckMusic(); +			g_music->checkMusic();  			diffNextFrame();  			if (FollowingCrumbs) { @@ -830,8 +828,6 @@ static void mainGameLoop() {  			MouseY    = Msg->MouseY;  			GadID     = Msg->GadgetID; -			replyMsg((void *) Msg); -  			FollowingCrumbs = false;  from_crumbs: @@ -893,11 +889,9 @@ from_crumbs:  						Msg = getMsg();  						if (Msg == NULL) { /* Does music load and next animation frame when you've run out of messages */ -							g_music->newCheckMusic(); +							g_music->checkMusic();  							diffNextFrame();  						} else { -							replyMsg((void *) Msg);    /* Can't do this in non-IBM versions */ -  							if (Msg->Class == RAWKEY) {  								if ((Msg->Code == 'Y') || (Msg->Code == 'y') || (Msg->Code == 'Q') || (Msg->Code == 'q')) {  									doit = true; @@ -1406,7 +1400,7 @@ void LabEngine::go() {  		readPict("P:End/L2In.1", true);  		for (counter = 0; counter < 120; counter++) { -			g_music->newCheckMusic(); +			g_music->checkMusic();  			waitTOF();  		} @@ -1415,7 +1409,7 @@ void LabEngine::go() {  		warning("STUB: waitForPress");  		while (!1) { // 1 means ignore SDL_ProcessInput calls -			g_music->newCheckMusic(); +			g_music->checkMusic();  			diffNextFrame();  			waitTOF();  		} | 
