mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix the bullet stopping after the first entity
This commit is contained in:
parent
a7dc8b3493
commit
ffdfbc3c7d
1 changed files with 2 additions and 1 deletions
|
@ -2455,9 +2455,10 @@ float BulletAttack(
|
|||
trace.fraction = 1;
|
||||
}
|
||||
|
||||
vDeltaTrace = vTmpEnd - vTraceStart;
|
||||
vDeltaTrace = vTraceStart - vTmpEnd;
|
||||
if (!bBulletDone && DotProduct(vDeltaTrace, vDir) < 0) {
|
||||
// Fixed in OPM
|
||||
// Make sure the new trace doesn't start behind the end
|
||||
// This can happen in rare circumstances if the trace is out of the world limit
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue