[Scummvm-cvs-logs] SF.net SVN: scummvm: [31793] scummvm/trunk/engines/gob

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Wed Apr 30 22:08:09 CEST 2008


Revision: 31793
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31793&view=rev
Author:   drmccoy
Date:     2008-04-30 13:08:08 -0700 (Wed, 30 Apr 2008)

Log Message:
-----------
Fixing path finding in Woodruff

Modified Paths:
--------------
    scummvm/trunk/engines/gob/gob.cpp
    scummvm/trunk/engines/gob/goblin_v4.cpp

Modified: scummvm/trunk/engines/gob/gob.cpp
===================================================================
--- scummvm/trunk/engines/gob/gob.cpp	2008-04-30 20:07:33 UTC (rev 31792)
+++ scummvm/trunk/engines/gob/gob.cpp	2008-04-30 20:08:08 UTC (rev 31793)
@@ -328,7 +328,7 @@
 			_draw = new Draw_v2(this);
 			_game = new Game_v2(this);
 			_map = new Map_v4(this);
-			_goblin = new Goblin_v3(this);
+			_goblin = new Goblin_v4(this);
 			_scenery = new Scenery_v2(this);
 			_saveLoad = new SaveLoad_v3(this, _targetName.c_str());
 			break;

Modified: scummvm/trunk/engines/gob/goblin_v4.cpp
===================================================================
--- scummvm/trunk/engines/gob/goblin_v4.cpp	2008-04-30 20:07:33 UTC (rev 31792)
+++ scummvm/trunk/engines/gob/goblin_v4.cpp	2008-04-30 20:08:08 UTC (rev 31793)
@@ -424,6 +424,8 @@
 	case 13:
 	case 16:
 	case 23:
+	case 40:
+	case 41:
 		animData->curLookDir = 0;
 		break;
 
@@ -431,6 +433,8 @@
 	case 15:
 	case 18:
 	case 21:
+	case 26:
+	case 38:
 		animData->curLookDir = 2;
 		break;
 
@@ -440,6 +444,8 @@
 	case 12:
 	case 19:
 	case 22:
+	case 42:
+	case 43:
 		animData->curLookDir = 4;
 		break;
 
@@ -447,13 +453,19 @@
 	case 14:
 	case 17:
 	case 20:
+	case 27:
+	case 39:
 		animData->curLookDir = 6;
 		break;
 
 	case 8:
 	case 9:
+	case 10:
+	case 11:
 	case 28:
 	case 29:
+	case 30:
+	case 31:
 		if (animData->pathExistence == 4)
 			animData->pathExistence = 5;
 		break;
@@ -530,14 +542,14 @@
 
 int16 Goblin_v4::sub_20430(int16 state, uint16 dir) {
 	static const int16 word_3F25E[8][8] = {
-		{0, 1, 10, 10, 10, 31, 31, 7},
-		{0, 1, 2, 29, 29, 29, 8, 8},
-		{10, 1, 2, 3, 11, 11, 11, 10},
-		{29, 29, 2, 3, 4, 9, 9, 9},
-		{30, 11, 11, 3, 4, 5, 30, 30},
-		{28, 28, 9, 9, 4, 5, 6, 28},
-		{31, 31, 31, 30, 30, 5, 6, 7},
-		{0, 8, 8, 8, 28, 28, 6, 7}
+		{ 0,  1, 10, 10, 10, 31, 31,  7},
+		{ 0,  1,  2, 29, 29, 29,  8,  8},
+		{10,  1,  2,  3, 11, 11, 11, 10},
+		{29, 29,  2,  3,  4,  9,  9,  9},
+		{30, 11, 11,  3,  4,  5, 30, 30},
+		{28, 28,  9,  9,  4,  5,  6, 28},
+		{31, 31, 31, 30, 30,  5,  6,  7},
+		{ 0,  8,  8,  8, 28, 28,  6,  7}
 	};
 	int16 dx = state, cx = 0;
 
@@ -594,7 +606,6 @@
 
 	// loc_2046C
 
-
 	switch (dir) {
 	case Map::kDirNW:
 		cx = 1;


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