diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:48 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 14:18:48 +0100 |
commit | e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e (patch) | |
tree | 924da3fee9f1013e15de1ffa6a7f72e9537e46e1 /src/peds | |
parent | Merge pull request #895 from ShFil119/miami_audio (diff) | |
download | re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.gz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.bz2 re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.lz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.xz re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.tar.zst re3-e00b8a93bf7a53ef09bc349aefd3a2a37d58f09e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedFight.cpp | 4 | ||||
-rw-r--r-- | src/peds/PedType.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/peds/PedFight.cpp b/src/peds/PedFight.cpp index 3e0dfb6d..151d3806 100644 --- a/src/peds/PedFight.cpp +++ b/src/peds/PedFight.cpp @@ -2393,8 +2393,8 @@ CPed::LoadFightData(void) break; } - if (strncmp(animName, "default", 8) != 0) { - if (strncmp(animName, "null", 5) != 0) { + if (strcmp(animName, "default") != 0) { + if (strcmp(animName, "null") != 0) { animAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, animName); tFightMoves[moveId].animId = (AnimationId)animAssoc->animId; } else { diff --git a/src/peds/PedType.cpp b/src/peds/PedType.cpp index 746eb3a5..5565b90f 100644 --- a/src/peds/PedType.cpp +++ b/src/peds/PedType.cpp @@ -81,7 +81,7 @@ CPedType::LoadPedData(void) // Game uses just "line" here since sscanf already trims whitespace, but this is safer sscanf(&line[lp], "%s", word); - if(strncmp(word, "Threat", 7) == 0){ + if(strcmp(word, "Threat") == 0){ flags = 0; lp += 7; while(sscanf(&line[lp], "%s", word) == 1 && lp <= linelen){ @@ -94,7 +94,7 @@ CPedType::LoadPedData(void) lp++; } ms_apPedType[type]->m_threats = flags; - }else if(strncmp(word, "Avoid", 6) == 0){ + }else if(strcmp(word, "Avoid") == 0){ flags = 0; lp += 6; while(sscanf(&line[lp], "%s", word) == 1 && lp <= linelen){ |