diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-03-07 20:22:43 +0100 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-03-11 22:48:33 +0100 |
commit | 934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b (patch) | |
tree | 26b313998ecea484fc7d81d32c1bdfc8b19deacf /src/vehicles/Automobile.cpp | |
parent | Merge pull request #342 from Nick007J/master (diff) | |
download | re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.gz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.bz2 re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.lz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.xz re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.tar.zst re3-934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 64f756ad..a05a1236 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -3002,9 +3002,9 @@ CAutomobile::RcbanditCheckHitWheels(void) if(xmin < 0) xmin = 0; xmax = CWorld::GetSectorIndexX(GetPosition().x + 2.0f); if(xmax > NUMSECTORS_X-1) xmax = NUMSECTORS_X-1; - ymin = CWorld::GetSectorIndexX(GetPosition().y - 2.0f); + ymin = CWorld::GetSectorIndexY(GetPosition().y - 2.0f); if(ymin < 0) ymin = 0; - ymax = CWorld::GetSectorIndexX(GetPosition().y + 2.0f); + ymax = CWorld::GetSectorIndexY(GetPosition().y + 2.0f); if(ymax > NUMSECTORS_Y-1) ymax = NUMSECTORS_X-1; CWorld::AdvanceCurrentScanCode(); |