mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix bullet trace end being out of bounds, causing clients to have a strange bullet trace
This commit is contained in:
parent
5052449e38
commit
76f0e17987
1 changed files with 2 additions and 1 deletions
|
@ -2127,7 +2127,7 @@ float BulletAttack(
|
|||
qboolean bBulletDone;
|
||||
qboolean bThroughThing;
|
||||
int iContinueCount;
|
||||
float vEndArray[64][3];
|
||||
vec3_t vEndArray[64];
|
||||
int iTracerCount = 0;
|
||||
int iNumHit;
|
||||
int lastSurfaceFlags;
|
||||
|
@ -2186,6 +2186,7 @@ float BulletAttack(
|
|||
);
|
||||
|
||||
vTmpEnd = trace.endpos;
|
||||
vTraceEnd = vTmpEnd;
|
||||
|
||||
if (bThroughThing) {
|
||||
bThroughThing = qfalse;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue