summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-12 17:53:24 +0200
committerGitHub <noreply@github.com>2020-04-12 17:53:24 +0200
commit9044f57a0e4f27d388d8d7af5309cab59089900c (patch)
tree626c8a08028e1bab949cb788751523a8de761516 /src/peds
parentMerge pull request #407 from erorcun/erorcun (diff)
parentRevert "fix" (diff)
downloadre3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar.gz
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar.bz2
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar.lz
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar.xz
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.tar.zst
re3-9044f57a0e4f27d388d8d7af5309cab59089900c.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 83d335aa..cee2b323 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -2724,10 +2724,7 @@ CPed::SetObjective(eObjective newObj, void *entity)
break;
}
} else {
- if ((newObj == OBJECTIVE_WAIT_IN_CAR_THEN_GETOUT || newObj == OBJECTIVE_KILL_CHAR_ON_FOOT ||
- newObj == OBJECTIVE_KILL_CHAR_ANY_MEANS || newObj == OBJECTIVE_FLEE_CHAR_ON_FOOT_TILL_SAFE ||
- newObj == OBJECTIVE_FLEE_CHAR_ON_FOOT_ALWAYS || newObj == OBJECTIVE_GOTO_CHAR_ON_FOOT ||
- newObj == OBJECTIVE_FOLLOW_PED_IN_FORMATION || newObj == OBJECTIVE_LEAVE_VEHICLE
+ if ((newObj == OBJECTIVE_LEAVE_VEHICLE
#ifdef VC_PED_PORTS
|| newObj == OBJECTIVE_LEAVE_CAR_AND_DIE
#endif