summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-18 22:00:12 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-18 22:00:12 +0100
commit03cf1e7535791bc85426efd9a373309b52c25d7c (patch)
tree637b5acb01a5d392b861c07e819b2143aaa5dcf5 /src/control/PathFind.cpp
parentfix (diff)
parentwrong ifdef (diff)
downloadre3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.gz
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.bz2
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.lz
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.xz
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.tar.zst
re3-03cf1e7535791bc85426efd9a373309b52c25d7c.zip
Diffstat (limited to '')
-rw-r--r--src/control/PathFind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index aa453701..0f135029 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -1820,6 +1820,12 @@ CPathFind::Load(uint8 *buf, uint32 size)
m_pathNodes[i].bBetweenLevels = true;
else
m_pathNodes[i].bBetweenLevels = false;
+
+#ifdef SECUROM
+ // if pirated game
+ for(i = 0; i < m_numPathNodes; i++)
+ m_pathNodes[i].bDisabled = true;
+#endif
}
void