Skip to content

Commit

Permalink
Fix bullet trace end being out of bounds, causing clients to have a s…
Browse files Browse the repository at this point in the history
…trange bullet trace
  • Loading branch information
smallmodel committed Sep 1, 2024
1 parent 5052449 commit 76f0e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/fgame/weaputils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -2186,6 +2186,7 @@ float BulletAttack(
);

vTmpEnd = trace.endpos;
vTraceEnd = vTmpEnd;

if (bThroughThing) {
bThroughThing = qfalse;
Expand Down

0 comments on commit 76f0e17

Please sign in to comment.