[Scummvm-cvs-logs] SF.net SVN: scummvm: [28564] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sun Aug 12 15:54:03 CEST 2007


Revision: 28564
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28564&view=rev
Author:   peres001
Date:     2007-08-12 06:54:01 -0700 (Sun, 12 Aug 2007)

Log Message:
-----------
Added first location selection for each part.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/parallaction.h
    scummvm/trunk/engines/parallaction/parallaction_br.cpp

Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h	2007-08-12 13:47:19 UTC (rev 28563)
+++ scummvm/trunk/engines/parallaction/parallaction.h	2007-08-12 13:54:01 UTC (rev 28564)
@@ -596,6 +596,7 @@
 
 	void		initPart();
 	void		freePart();
+	void		startPart();
 
 	void setMousePointer(int16 index);
 	void initCursors();

Modified: scummvm/trunk/engines/parallaction/parallaction_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction_br.cpp	2007-08-12 13:47:19 UTC (rev 28563)
+++ scummvm/trunk/engines/parallaction/parallaction_br.cpp	2007-08-12 13:54:01 UTC (rev 28564)
@@ -49,6 +49,14 @@
 	"PART4"
 };
 
+const char *partFirstLocation[] = {
+	"intro",
+	"museo",
+	"start",
+	"bolscoi",
+	"treno"
+};
+
 int Parallaction_br::init() {
 
 	// Detect game
@@ -63,6 +71,7 @@
 	if (getGameType() == GType_BRA) {
 		if (getPlatform() == Common::kPlatformPC) {
 			_disk = new DosDisk_br(this);
+			_disk->setLanguage(2);					// NOTE: language is now hardcoded to English. Original used command-line parameters.
 		} else
 			error("unsupported platform for Big Red Adventure");
 	} else
@@ -124,7 +133,7 @@
 		default:
 			_part = option;
 			_disk->selectArchive(partNames[_part]);
-			initPart();
+			startPart();
 			break;
 		}
 
@@ -277,10 +286,9 @@
 
 void Parallaction_br::initFonts() {
 
-	// TODO: find out which font is used for labels
-
 	_menuFont = _disk->loadFont("russia");
 	_dialogueFont = _disk->loadFont("comic");
+	_labelFont = _menuFont;
 
 }
 
@@ -327,5 +335,16 @@
 
 }
 
+void Parallaction_br::startPart() {
 
+	initPart();
+
+	strcpy(_location._name, partFirstLocation[_part]);
+
+	parseLocation("common");
+	parseLocation(_location._name);
+
+}
+
+
 } // namespace Parallaction


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