[Scummvm-git-logs] scummvm master -> 06be112b22531f2658dbec0362beb66c32c0db9c
dreammaster
dreammaster at scummvm.org
Sun Apr 2 18:01:20 CEST 2017
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:
06be112b22 TITANIC: Temporarily hard-code random vectors to ease debuggin
Commit: 06be112b22531f2658dbec0362beb66c32c0db9c
https://github.com/scummvm/scummvm/commit/06be112b22531f2658dbec0362beb66c32c0db9c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-04-02T12:01:12-04:00
Commit Message:
TITANIC: Temporarily hard-code random vectors to ease debuggin
Changed paths:
engines/titanic/star_control/star_view.cpp
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp
index d315040..2f98ecc 100644
--- a/engines/titanic/star_control/star_view.cpp
+++ b/engines/titanic/star_control/star_view.cpp
@@ -439,6 +439,7 @@ void CStarView::fn18(CStarControlSub12 *sub12) {
}
void CStarView::randomizeVectors1(FVector &v1, FVector &v2) {
+ /* ***DEBUG***
v1._x = 3072.0 - g_vm->getRandomFloat() * -4096.0;
v1._y = 3072.0 - g_vm->getRandomFloat() * -4096.0;
v1._z = 3072.0 - g_vm->getRandomFloat() * -4096.0;
@@ -447,9 +448,14 @@ void CStarView::randomizeVectors1(FVector &v1, FVector &v2) {
v2._y = -v1._y;
v2._z = -v1._z;
v2.normalize();
+ */
+ // Values temporarily hardcoded to match hacked values in original EXE
+ v1 = FVector(69481544.0, 69481544.0, 69481544.0);
+ v2 = FVector(-0.577350259, -0.577350259, -0.577350259);
}
void CStarView::randomizeVectors2(FVector &v1, FVector &v2) {
+ /* ****DEBUG***
v1._x = 3072.0 - g_vm->getRandomFloat() * -4096.0;
v1._y = 3072.0 - g_vm->getRandomFloat() * -4096.0;
v1._z = 3072.0 - g_vm->getRandomFloat() * -4096.0;
@@ -458,7 +464,12 @@ void CStarView::randomizeVectors2(FVector &v1, FVector &v2) {
v2._y = g_vm->getRandomFloat() * 1024.0 - v1._y;
v2._z = -v1._z;
v2.normalize();
+ */
+ // Values temporarily hardcoded to match hacked values in original EXE
+ v1 = FVector(69481544.0, 69481544.0, 69481544.0);
+ v2 = FVector(0.624659300, -0.468542814, -0.624714553);
}
+
void CStarView::resizeSurface(CScreenManager *scrManager, int width, int height,
CVideoSurface **surface) {
if (!surface)
More information about the Scummvm-git-logs
mailing list