summaryrefslogtreecommitdiffstats
path: root/src/peds/PedType.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-08 23:16:29 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-08 23:17:14 +0200
commite6476bafff7af47974482a4e70eaf762fa742e11 (patch)
tree49f2261c68aea522eac0f6241e59ef57907c8e00 /src/peds/PedType.h
parentfix bug (diff)
downloadre3-e6476bafff7af47974482a4e70eaf762fa742e11.tar
re3-e6476bafff7af47974482a4e70eaf762fa742e11.tar.gz
re3-e6476bafff7af47974482a4e70eaf762fa742e11.tar.bz2
re3-e6476bafff7af47974482a4e70eaf762fa742e11.tar.lz
re3-e6476bafff7af47974482a4e70eaf762fa742e11.tar.xz
re3-e6476bafff7af47974482a4e70eaf762fa742e11.tar.zst
re3-e6476bafff7af47974482a4e70eaf762fa742e11.zip
Diffstat (limited to 'src/peds/PedType.h')
-rw-r--r--src/peds/PedType.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/peds/PedType.h b/src/peds/PedType.h
index 1f3ecb59..3d927df5 100644
--- a/src/peds/PedType.h
+++ b/src/peds/PedType.h
@@ -85,6 +85,7 @@ 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 SetThreats(int type, uint32 threat) { ms_apPedType[type]->m_threats = threat; }
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; }