diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-12 00:33:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 00:33:55 +0100 |
commit | 3e78600420e4ba0f49a140dd365f44fd600ec057 (patch) | |
tree | df50a5dc9037b336d48e12bfc8f2394592808c8e /src/vehicles | |
parent | Merge pull request #343 from Nick007J/master (diff) | |
parent | Merge branch 'master' into erorcun (diff) | |
download | re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.gz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.bz2 re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.lz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.xz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.zst re3-3e78600420e4ba0f49a140dd365f44fd600ec057.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Automobile.cpp | 4 | ||||
-rw-r--r-- | src/vehicles/Train.cpp | 4 |
2 files changed, 4 insertions, 4 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(); diff --git a/src/vehicles/Train.cpp b/src/vehicles/Train.cpp index f3a669d6..1c73ed05 100644 --- a/src/vehicles/Train.cpp +++ b/src/vehicles/Train.cpp @@ -261,9 +261,9 @@ CTrain::ProcessControl(void) if(xmin < 0) xmin = 0; xmax = CWorld::GetSectorIndexX(front.x + 3.0f); if(xmax > NUMSECTORS_X-1) xmax = NUMSECTORS_X-1; - ymin = CWorld::GetSectorIndexX(front.y - 3.0f); + ymin = CWorld::GetSectorIndexY(front.y - 3.0f); if(ymin < 0) ymin = 0; - ymax = CWorld::GetSectorIndexX(front.y + 3.0f); + ymax = CWorld::GetSectorIndexY(front.y + 3.0f); if(ymax > NUMSECTORS_Y-1) ymax = NUMSECTORS_X-1; CWorld::AdvanceCurrentScanCode(); |