[Scummvm-cvs-logs] SF.net SVN: scummvm:[44012] scummvm/trunk/engines/teenagent

megath at users.sourceforge.net megath at users.sourceforge.net
Tue Sep 8 16:26:15 CEST 2009


Revision: 44012
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44012&view=rev
Author:   megath
Date:     2009-09-08 14:26:14 +0000 (Tue, 08 Sep 2009)

Log Message:
-----------
removed ann's house music hack from scene. 

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/callbacks.cpp
    scummvm/trunk/engines/teenagent/scene.cpp

Modified: scummvm/trunk/engines/teenagent/callbacks.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/callbacks.cpp	2009-09-08 12:14:17 UTC (rev 44011)
+++ scummvm/trunk/engines/teenagent/callbacks.cpp	2009-09-08 14:26:14 UTC (rev 44012)
@@ -193,7 +193,7 @@
 			Dialog::show(scene, 0x62dc);
 
 			SET_FLAG(0xDBDF, 1);
-			SET_FLAG(0xDB90, 5);
+			playMusic(5);
 		}
 		return true;
 
@@ -1254,7 +1254,10 @@
 	
 	case 0x593e://Enter annes house
 		playSound(89, 4);
+		playAnimation(980);
 		loadScene(23, 76, 199, 1);
+		if (CHECK_FLAG(0xDBEE, 1)) 
+			playMusic(7);
 		return true;
 		
 	case 0x5994:
@@ -1403,9 +1406,9 @@
 		}
 		return true;
 
-	case 0x5f73://Exit annes house
-		//Need to fully understand what this does, there is a compare in the asm
-		//I assume it is probably to do with the music
+	case 0x5f73: //exiting ann's house
+		if (CHECK_FLAG(0xDBEE, 1))
+			playMusic(6);
 		loadScene(21, 161, 165);
 
 		return true;
@@ -2407,7 +2410,7 @@
 			displayMessage(0x4a6f);
 			inventory->clear();
 			inventory->add(29);
-			setMusic(10);
+			playMusic(10);
 		} else
 			displayMessage(0x4a29);
 		return true;

Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp	2009-09-08 12:14:17 UTC (rev 44011)
+++ scummvm/trunk/engines/teenagent/scene.cpp	2009-09-08 14:26:14 UTC (rev 44012)
@@ -203,18 +203,11 @@
 		walkbox[i]->dump();
 	}
 	
-	if (id == 23 && res->dseg.get_byte(0xdbee) == 1) {
-		//talked to anne, lovers music
-		if (_engine->music->getId() != 7)
-			_engine->music->load(7);
-	} else {
-		//check music
-		int now_playing = _engine->music->getId();
-		
-		if (now_playing != res->dseg.get_byte(0xDB90)) 
-			_engine->music->load(res->dseg.get_byte(0xDB90));
-	}
+	//check music
+	int now_playing = _engine->music->getId();
 	
+	if (now_playing != res->dseg.get_byte(0xDB90)) 
+		_engine->music->load(res->dseg.get_byte(0xDB90));
 }
 
 void Scene::playAnimation(byte idx, uint id) {
@@ -345,7 +338,7 @@
 	busy |= processEventQueue();
 	//if (!current_event.empty())
 	//	current_event.dump();
-    /*
+	/*
 	for (byte i = 0; i < walkboxes; ++i) {
 		Walkbox * w = walkbox[i];
 		w->rect.render(surface, 0xd0 + i);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list