diff options
author | aap <aap@papnet.eu> | 2019-07-17 23:58:06 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-17 23:58:06 +0200 |
commit | ba242bcf584d885167a9499e53f5bcaf6c9cc866 (patch) | |
tree | 29477a626a36462ec3280081388ff1b965be860f /src/control/CarCtrl.cpp | |
parent | Merge pull request #145 from guard3/master (diff) | |
download | re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.gz re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.bz2 re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.lz re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.xz re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.tar.zst re3-ba242bcf584d885167a9499e53f5bcaf6c9cc866.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 7acfa64a..edf4d1ae 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -16,3 +16,11 @@ WRAPPER bool CCarCtrl::JoinCarWithRoadSystemGotoCoors(CVehicle*, CVector, bool) WRAPPER void CCarCtrl::JoinCarWithRoadSystem(CVehicle*) { EAXJMP(0x41F820); } WRAPPER void CCarCtrl::SteerAICarWithPhysics(CVehicle*) { EAXJMP(0x41DA60); } WRAPPER void CCarCtrl::UpdateCarOnRails(CVehicle*) { EAXJMP(0x418880); } + +bool +CCarCtrl::MapCouldMoveInThisArea(float x, float y) +{ + // bridge moves up and down + return x > -342.0f && x < -219.0f && + y > -677.0f && y < -580.0f; +} |