mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix multiple bullet hole effects unnecessarily spawning
This commit is contained in:
parent
33dbb07559
commit
1fc36fce9b
1 changed files with 3 additions and 3 deletions
|
@ -584,7 +584,8 @@ static void CG_MakeBulletTracerInternal(
|
|||
|| (trace.contents & CONTENTS_WATER))
|
||||
&& iContinueCount < 5) {
|
||||
if (bInWater) {
|
||||
VectorSubtract(trace.endpos, vDir, vTmp);
|
||||
VectorMA(trace.endpos, -1.0, vDir, vTmp);
|
||||
|
||||
if (!(trace.contents & CONTENTS_FLUID) && !(trace.surfaceFlags & SURF_PUDDLE)
|
||||
&& !(cgi.CM_PointContents(vTmp, 0) & CONTENTS_FLUID)) {
|
||||
CG_MakeBubbleTrail(vTrailStart, trace.endpos, iLarge, alpha);
|
||||
|
@ -596,8 +597,7 @@ static void CG_MakeBulletTracerInternal(
|
|||
bInWater = qtrue;
|
||||
}
|
||||
|
||||
VectorAdd(vDir, vDir, vTraceStart);
|
||||
VectorAdd(vTraceStart, vTraceStart, trace.endpos);
|
||||
VectorMA(trace.endpos, 2.0, vDir, vTraceStart);
|
||||
|
||||
iContinueCount++;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue