summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-08-29 18:45:52 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-08-29 18:45:52 +0200
commit9bb34fab2511a4dce77775e445267d223fc5b064 (patch)
treeb6f6bbfe36fe73fbf4613a591002c5e2c7f5d560 /src/control
parentfix PS2 script (diff)
downloadre3-9bb34fab2511a4dce77775e445267d223fc5b064.tar
re3-9bb34fab2511a4dce77775e445267d223fc5b064.tar.gz
re3-9bb34fab2511a4dce77775e445267d223fc5b064.tar.bz2
re3-9bb34fab2511a4dce77775e445267d223fc5b064.tar.lz
re3-9bb34fab2511a4dce77775e445267d223fc5b064.tar.xz
re3-9bb34fab2511a4dce77775e445267d223fc5b064.tar.zst
re3-9bb34fab2511a4dce77775e445267d223fc5b064.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.h2
-rw-r--r--src/control/Script5.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index 22711005..d14abe9d 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -351,7 +351,9 @@ public:
void LocateCharObjectCommand(int32, uint32*);
#endif
void LocateCarCommand(int32, uint32*);
+#if GTA_VERSION > GTA3_PS2_160
void LocateSniperBulletCommand(int32, uint32*);
+#endif
void PlayerInAreaCheckCommand(int32, uint32*);
void PlayerInAngledAreaCheckCommand(int32, uint32*);
void CharInAreaCheckCommand(int32, uint32*);
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index 837e3582..ce5fa4ba 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -734,6 +734,7 @@ void CRunningScript::LocateCarCommand(int32 command, uint32* pIp)
}
}
+#if GTA_VERSION > GTA3_PS2_160
void CRunningScript::LocateSniperBulletCommand(int32 command, uint32* pIp)
{
bool b3D, result, debug;
@@ -772,6 +773,7 @@ void CRunningScript::LocateSniperBulletCommand(int32 command, uint32* pIp)
CTheScripts::DrawDebugSquare(X - dX, Y - dY, X + dX, Y + dY);
}
}
+#endif
void CRunningScript::PlayerInAreaCheckCommand(int32 command, uint32* pIp)
{