diff options
author | Matthew Hoops | 2011-10-28 11:19:27 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-28 11:19:27 -0400 |
commit | 88360741bdcc8a5456dd719bac8678d9cbaddfe3 (patch) | |
tree | f9adc14fafc2f341d3782fda00b0a459a83b743d | |
parent | 59f7d432d11f7527a01e04be09c8afaef3d1cb1d (diff) | |
download | scummvm-rg350-88360741bdcc8a5456dd719bac8678d9cbaddfe3.tar.gz scummvm-rg350-88360741bdcc8a5456dd719bac8678d9cbaddfe3.tar.bz2 scummvm-rg350-88360741bdcc8a5456dd719bac8678d9cbaddfe3.zip |
PEGASUS: Fix the planet mover
-rwxr-xr-x | engines/pegasus/neighborhood/mars/planetmover.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/pegasus/neighborhood/mars/planetmover.cpp b/engines/pegasus/neighborhood/mars/planetmover.cpp index 2fa8a771f5..2b287547b5 100755 --- a/engines/pegasus/neighborhood/mars/planetmover.cpp +++ b/engines/pegasus/neighborhood/mars/planetmover.cpp @@ -76,10 +76,7 @@ void PlanetMover::newDestination() { _p1 = _p4; _r1 = _r4; - // Slightly worked differently than the original to work into our random number stuff - uint diff = ABS(kPlanetStopTop - kPlanetStartTop); - _p4 = kPlanetStopTop + (diff != 0) ? ((PegasusEngine *)g_engine)->getRandomNumber(diff - 1) : 0; - + _p4 = kPlanetStopTop + ((PegasusEngine *)g_engine)->getRandomNumber(kPlanetStartTop - kPlanetStopTop - 1); _r4 = ((PegasusEngine *)g_engine)->getRandomNumber(kMaxVelocity - 1); if (_r4 + _p4 < kPlanetStopTop) |