summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-22 17:47:14 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-22 17:47:14 +0100
commit861506d048b7c4370f066e62233448979824bd68 (patch)
treecaa435843c73aab13174a3b63bfb6dd759a9df73 /src/control/PathFind.cpp
parentmissing endlines (diff)
parentRemove all constexpr (diff)
downloadre3-861506d048b7c4370f066e62233448979824bd68.tar
re3-861506d048b7c4370f066e62233448979824bd68.tar.gz
re3-861506d048b7c4370f066e62233448979824bd68.tar.bz2
re3-861506d048b7c4370f066e62233448979824bd68.tar.lz
re3-861506d048b7c4370f066e62233448979824bd68.tar.xz
re3-861506d048b7c4370f066e62233448979824bd68.tar.zst
re3-861506d048b7c4370f066e62233448979824bd68.zip
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r--src/control/PathFind.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index 3a959049..daa27e57 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -991,7 +991,7 @@ float
CPathFind::FindNodeOrientationForCarPlacement(int32 nodeId)
{
if(m_pathNodes[nodeId].numLinks == 0)
- return 0.0;
+ return 0.0f;
CVector dir = m_pathNodes[m_connections[m_pathNodes[nodeId].firstLink]].pos - m_pathNodes[nodeId].pos;
dir.z = 0.0f;
dir.Normalise();
@@ -1008,7 +1008,7 @@ CPathFind::FindNodeOrientationForCarPlacementFacingDestination(int32 nodeId, flo
CVector dir;
if(m_pathNodes[nodeId].numLinks == 0)
- return 0.0;
+ return 0.0f;
int bestNode = m_connections[m_pathNodes[nodeId].firstLink];
#ifdef FIX_BUGS