Skip to content

Commit

Permalink
Merge branch 'reverse/CPedGroup' of https://github.com/Pirulax/gta-re…
Browse files Browse the repository at this point in the history
…versed-modern into reverse/CPedGroup
  • Loading branch information
Pirulax committed Jul 12, 2023
2 parents 353cd15 + 7f36516 commit 1f1b964
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/game_sa/PedGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ float CPedGroup::FindDistanceToNearestMember(CPed** ppOutNearestMember) {
}
return std::sqrt(distSq);
}
return 1.0e10;
return 1.0e10f;
}

// 0x5FACD0
Expand Down
2 changes: 1 addition & 1 deletion source/game_sa/PedGroupMembership.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void CPedGroupMembership::AddMember(CPed* member, int32 memIdx) {
CEntity::RegisterReference(m_members[memIdx]);
/* dead code before checking if the member is in the player's group */
if (!member->IsPlayer()) {
member->GetIntelligence()->SetPedDecisionMakerType(0);
member->GetIntelligence()->SetPedDecisionMakerType(DM_EVENT_DRAGGED_OUT_CAR);
}
}

Expand Down
1 change: 0 additions & 1 deletion source/game_sa/PedGroupMembership.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class CPedGroupMembership {
if (!std::invoke(pred, mem)) {
continue;
}

if (const auto distSq = (pedPos - mem.GetPosition()).SquaredMagnitude(); closestDistSq > distSq) {
closestDistSq = distSq;
closest = &mem;
Expand Down

0 comments on commit 1f1b964

Please sign in to comment.