Fix bullet trace end being out of bounds, causing clients to have a strange bullet trace

This commit is contained in:
smallmodel 2024-09-02 00:42:29 +02:00
parent 5052449e38
commit 76f0e17987
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;