summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-08 02:29:08 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-08 02:29:08 +0100
commitaae4f3319f4dcc4b3338116572bcb3f6d0f05b7e (patch)
tree7bfa5dede4a4b1b54be7c7ede73926272d4d0ee9 /src/control/Garages.h
parentFix vanilla font bug (diff)
downloadre3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.gz
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.bz2
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.lz
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.xz
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.tar.zst
re3-aae4f3319f4dcc4b3338116572bcb3f6d0f05b7e.zip
Diffstat (limited to 'src/control/Garages.h')
-rw-r--r--src/control/Garages.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Garages.h b/src/control/Garages.h
index 04c01719..d570c5b3 100644
--- a/src/control/Garages.h
+++ b/src/control/Garages.h
@@ -148,8 +148,8 @@ class CGarage
return Abs(TheCamera.GetPosition().x - GetGarageCenterX()) > SWITCH_GARAGE_DISTANCE_CLOSE ||
Abs(TheCamera.GetPosition().y - GetGarageCenterY()) > SWITCH_GARAGE_DISTANCE_CLOSE;
#else
- return Abs(TheCamera.GetPosition().x - m_fX1) > SWITCH_GARAGE_DISTANCE_CLOSE ||
- Abs(TheCamera.GetPosition().y - m_fY1) > SWITCH_GARAGE_DISTANCE_CLOSE;
+ return Abs(TheCamera.GetPosition().x - m_fInfX) > SWITCH_GARAGE_DISTANCE_CLOSE ||
+ Abs(TheCamera.GetPosition().y - m_fInfY) > SWITCH_GARAGE_DISTANCE_CLOSE;
#endif
}
void TidyUpGarageClose();