[Scummvm-cvs-logs] SF.net SVN: scummvm: [29603] scummvm/trunk/engines/lure

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Thu Nov 22 11:09:26 CET 2007


Revision: 29603
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29603&view=rev
Author:   dreammaster
Date:     2007-11-22 02:09:26 -0800 (Thu, 22 Nov 2007)

Log Message:
-----------
Changed animation constants to clarify standard indexes versus custom voice bubble Ids

Modified Paths:
--------------
    scummvm/trunk/engines/lure/hotspots.cpp
    scummvm/trunk/engines/lure/luredefs.h
    scummvm/trunk/engines/lure/res.cpp

Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp	2007-11-22 10:07:47 UTC (rev 29602)
+++ scummvm/trunk/engines/lure/hotspots.cpp	2007-11-22 10:09:26 UTC (rev 29603)
@@ -105,8 +105,6 @@
 	assert(character);
 
 	Common::Language language = LureEngine::getReference().getLanguage();
-	uint16 animId = 0x5810;
-	if (language == IT_ITA) animId = 0x58D0;
 
 	_originalId = objType;
 	_data = NULL;
@@ -125,7 +123,7 @@
 	_skipFlag = false;
 
 	switch (objType) {
-	case VOICE_ANIM_INDEX:
+	case VOICE_ANIM_IDX:
 		_roomNumber = character->roomNumber();
 		_destHotspotId = character->hotspotId();
 		_startX = character->x() + character->talkX() + 12;
@@ -143,11 +141,11 @@
 		_voiceCtr = 40;
 
 		_tickHandler = HotspotTickHandlers::getHandler(VOICE_TICK_PROC_ID);
-		setAnimation(animId);
+		setAnimationIndex(VOICE_ANIM_INDEX);
 		break;
 
-	case PUZZLED_ANIM_INDEX:
-	case EXCLAMATION_ANIM_INDEX:
+	case PUZZLED_ANIM_IDX:
+	case EXCLAMATION_ANIM_IDX:
 		_roomNumber = character->roomNumber();
 		_hotspotId = 0xfffe;
 		_startX = character->x() + character->talkX() + 12;
@@ -163,8 +161,8 @@
 
 		_destHotspotId = character->hotspotId();
 		_tickHandler = HotspotTickHandlers::getHandler(PUZZLED_TICK_PROC_ID);
-		setAnimation(animId);
-		setFrameNumber(objType == PUZZLED_ANIM_INDEX ? 1 : 2);
+		setAnimation(VOICE_ANIM_INDEX);
+		setFrameNumber(objType == PUZZLED_ANIM_IDX ? 1 : 2);
 		
 		character->setFrameCtr(_voiceCtr);
 		break;
@@ -787,12 +785,12 @@
 
 	if (idVal == 0x76) {
 		// Special code id for showing the puzzled talk bubble
-		hotspot = new Hotspot(this, PUZZLED_ANIM_INDEX);
+		hotspot = new Hotspot(this, PUZZLED_ANIM_IDX);
 		res.addHotspot(hotspot);
 
 	} else if (idVal == 0x120) {
 		// Special code id for showing the exclamation talk bubble
-		hotspot = new Hotspot(this, EXCLAMATION_ANIM_INDEX);
+		hotspot = new Hotspot(this, EXCLAMATION_ANIM_IDX);
 		res.addHotspot(hotspot);
 
 	} else if (idVal >= 0x8000) {

Modified: scummvm/trunk/engines/lure/luredefs.h
===================================================================
--- scummvm/trunk/engines/lure/luredefs.h	2007-11-22 10:07:47 UTC (rev 29602)
+++ scummvm/trunk/engines/lure/luredefs.h	2007-11-22 10:09:26 UTC (rev 29603)
@@ -34,7 +34,7 @@
 
 #define SUPPORT_FILENAME "lure.dat"
 #define LURE_DAT_MAJOR 1
-#define LURE_DAT_MINOR 24
+#define LURE_DAT_MINOR 25
 
 #define LURE_DEBUG 1
 
@@ -286,13 +286,14 @@
 
 // Misc constants
 #define GENERAL_MAGIC_ID 42
-#define VOICE_ANIM_INDEX 1
-#define PUZZLED_ANIM_INDEX 2
-#define EXCLAMATION_ANIM_INDEX 3
+#define VOICE_ANIM_IDX 1
+#define PUZZLED_ANIM_IDX 2
+#define EXCLAMATION_ANIM_IDX 3
 #define DEFAULT_VOLUME 192
 
 // Animation record indexes
 #define PLAYER_FIGHT_ANIM_INDEX 10
+#define VOICE_ANIM_INDEX 20
 #define BLACKSMITH_HAMMERING_ANIM_INDEX 21
 #define EWAN_ANIM_INDEX 22
 #define EWAN_ALT_ANIM_INDEX 23

Modified: scummvm/trunk/engines/lure/res.cpp
===================================================================
--- scummvm/trunk/engines/lure/res.cpp	2007-11-22 10:07:47 UTC (rev 29602)
+++ scummvm/trunk/engines/lure/res.cpp	2007-11-22 10:09:26 UTC (rev 29603)
@@ -498,7 +498,7 @@
 		assert(character);
 
 		// Add the special "voice" animation above the character
-		Hotspot *hotspot = new Hotspot(character, VOICE_ANIM_INDEX);
+		Hotspot *hotspot = new Hotspot(character, VOICE_ANIM_IDX);
 		addHotspot(hotspot);
 	}
 }


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