diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-15 16:47:36 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-15 16:47:36 +0100 |
commit | 1971b3db62c5eec1bc6400fe85455eb9596f18b9 (patch) | |
tree | 1912abb1478fcfc1db697e3bb9b172f1119c3f56 /src/vehicles/Train.cpp | |
parent | replay bug fixes, script bug fix (diff) | |
parent | Merge pull request #344 from erorcun/erorcun (diff) | |
download | re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.gz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.bz2 re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.lz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.xz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.zst re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Train.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |