diff options
author | Paul Gilbert | 2017-04-02 12:01:12 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-04-02 12:01:12 -0400 |
commit | 06be112b22531f2658dbec0362beb66c32c0db9c (patch) | |
tree | ad2ca53ace5184a2416c6af32961ab25f9505f94 | |
parent | fb10aec9cd961565f115c57ffe6ad9102cdac9e6 (diff) | |
download | scummvm-rg350-06be112b22531f2658dbec0362beb66c32c0db9c.tar.gz scummvm-rg350-06be112b22531f2658dbec0362beb66c32c0db9c.tar.bz2 scummvm-rg350-06be112b22531f2658dbec0362beb66c32c0db9c.zip |
TITANIC: Temporarily hard-code random vectors to ease debuggin
-rw-r--r-- | engines/titanic/star_control/star_view.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/star_control/star_view.cpp b/engines/titanic/star_control/star_view.cpp index d3150404c0..2f98ecc5e6 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) |