diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-27 22:51:43 +0100 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-01-27 22:51:43 +0100 |
commit | be88a42bad207a2c723c3cdb152a872e1a7f14af (patch) | |
tree | 5d8feabe58566914f6f08d2e4a5d49e3321e28c4 /src/core/World.cpp | |
parent | Change joystick DB with latest offical one (diff) | |
download | re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar.gz re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar.bz2 re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar.lz re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar.xz re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.tar.zst re3-be88a42bad207a2c723c3cdb152a872e1a7f14af.zip |
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r-- | src/core/World.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp index bc698c83..9da36e7a 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -452,10 +452,10 @@ CWorld::ProcessVerticalLineSector(CSector §or, const CColLine &line, CColPoi } bool -CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CColPoint &point, float &dist, +CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CColPoint &point, float &mindist, CEntity *&entity, bool ignoreSeeThrough, CStoredCollPoly *poly) { - float mindist = dist; + float dist = mindist; CPtrNode *node; CEntity *e; CColModel *colmodel; @@ -472,8 +472,8 @@ CWorld::ProcessVerticalLineSectorList(CPtrList &list, const CColLine &line, CCol } } - if(mindist < dist) { - dist = mindist; + if(dist < mindist) { + mindist = dist; return true; } else return false; |