summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-06 21:54:43 +0200
committeraap <aap@papnet.eu>2020-05-06 21:54:43 +0200
commit965ea93a616575ef483c21f38c715b6559b18d4a (patch)
tree7ac8493ed384631a2956c599d0f2f62f730119dd /src/control/PathFind.cpp
parentMerge pull request #516 from Nick007J/miami (diff)
downloadre3-965ea93a616575ef483c21f38c715b6559b18d4a.tar
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.gz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.bz2
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.lz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.xz
re3-965ea93a616575ef483c21f38c715b6559b18d4a.tar.zst
re3-965ea93a616575ef483c21f38c715b6559b18d4a.zip
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r--src/control/PathFind.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index 22221e73..08eadb25 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -501,13 +501,13 @@ CPathFind::PreparePathData(void)
}
for(i = 0; i < NUMDETACHED_CARS; i++)
for(j = 0; j < 12; j++)
- if(DetachedInfoForTilePeds[i*12 + j].type == NodeTypeExtern){
+ if(DetachedInfoForTileCars[i*12 + j].type == NodeTypeExtern){
// MI:%d here but no argument for it
- if(DetachedInfoForTilePeds[i*12 + j].numLeftLanes < 0)
+ if(DetachedInfoForTileCars[i*12 + j].numLeftLanes < 0)
printf("ILLEGAL BLOCK. NEGATIVE NUMBER OF LANES (Obj:%d)\n", i);
- if(DetachedInfoForTilePeds[i*12 + j].numRightLanes < 0)
+ if(DetachedInfoForTileCars[i*12 + j].numRightLanes < 0)
printf("ILLEGAL BLOCK. NEGATIVE NUMBER OF LANES (Obj:%d)\n", i);
- if(DetachedInfoForTilePeds[i*12 + j].numLeftLanes + DetachedInfoForTilePeds[i*12 + j].numRightLanes <= 0)
+ if(DetachedInfoForTileCars[i*12 + j].numLeftLanes + DetachedInfoForTileCars[i*12 + j].numRightLanes <= 0)
printf("ILLEGAL BLOCK. NO LANES IN NODE (Obj:%d)\n", i);
}