From 1337a9b6034570861a7cadaf5338d0cbb5b06255 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 16 Feb 2020 23:08:54 +0300 Subject: script 1000-1154 --- src/peds/PedType.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/peds') diff --git a/src/peds/PedType.h b/src/peds/PedType.h index 9d284318..797344ab 100644 --- a/src/peds/PedType.h +++ b/src/peds/PedType.h @@ -85,6 +85,9 @@ public: static uint32 GetFlag(int type) { return ms_apPedType[type]->m_flag; } static uint32 GetAvoid(int type) { return ms_apPedType[type]->m_avoid; } static uint32 GetThreats(int type) { return ms_apPedType[type]->m_threats; } + static void AddThreat(int type, int threat) { ms_apPedType[type]->m_threats |= threat; } + static void RemoveThreat(int type, int threat) { ms_apPedType[type]->m_threats &= ~threat; } + static bool IsThreat(int type, int threat) { return ms_apPedType[type]->m_threats & threat; } }; static_assert(sizeof(CPedType) == 0x20, "CPedType: error"); -- cgit v1.2.3