[Scummvm-cvs-logs] scummvm master -> 8a72581bc830a124823e00f9e5a660d5f5d981f0

dreammaster dreammaster at scummvm.org
Fri Dec 2 22:02:26 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8a72581bc8 TSAGE: Fixed the R2R player initialisation.


Commit: 8a72581bc830a124823e00f9e5a660d5f5d981f0
    https://github.com/scummvm/scummvm/commit/8a72581bc830a124823e00f9e5a660d5f5d981f0
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2011-12-02T13:01:40-08:00

Commit Message:
TSAGE: Fixed the R2R player initialisation.

This fixes the problem where the player wouldn't face in the direction they were walking in.

Changed paths:
    engines/tsage/core.cpp



diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 266d39a..0ad1c43 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -2998,8 +2998,25 @@ void Player::postInit(SceneObjectList *OwnerList) {
 	_uiEnabled = true;
 	_percent = 100;
 	_field8C = 10;
-	_moveDiff.x = 4;
-	_moveDiff.y = 2;
+
+	if  (g_vm->getGameID() != GType_Ringworld2)
+	{
+		_moveDiff.x = 4;
+		_moveDiff.y = 2;
+	}
+	else
+	{
+		_moveDiff.x = 3;
+		_moveDiff.y = 2;
+		_effect = 1;
+		_shade = 0;
+
+		setObjectWrapper(new SceneObjectWrapper());
+		setPosition(_characterPos[_characterIndex]);
+		setStrip(_characterStrip[_characterIndex]);
+		setFrame(_characterFrame[_characterIndex]);
+		_characterScene[_characterIndex] = GLOBALS._sceneManager._sceneNumber;
+	}
 }
 
 void Player::disableControl() {






More information about the Scummvm-git-logs mailing list