Merge pull request #60 from erorcun/erorcun

Fix 3 bugs
This commit is contained in:
aap
2019-06-27 09:46:41 +02:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@ -249,7 +249,7 @@ CheckForPedsOnGroundToAttack(CPlayerPed *player, CPed **pedOnGround)
foundDead = 1;
if (!deadPed)
deadPed = (CPed*)currentPed;
} else if (currentPed->IsPedHeadAbovePos(-0.6f)) {
} else if (!currentPed->IsPedHeadAbovePos(-0.6f)) {
foundOnTheFloor = 1;
if (!pedOnTheFloor)
pedOnTheFloor = (CPed*)currentPed;