Commit 0a38d036 authored by Jordon Moss's avatar Jordon Moss
Browse files

NetDuke32: Limit hitscan projectile trail range to pProj->range.

parent 911b8b88
......@@ -267,7 +267,9 @@ static void A_HitscanProjTrail(const vec3_t *startPos, const vec3_t *endPos, int
spawnPos.y += increment.y;
spawnPos.z += increment.z;
// To-do: Add range check so we stop if we're beyond pProj->range.
// Range check so we stop if we're beyond pProj->range.
if (pProj->range > 0 && (klabs(startPos->x - spawnPos.x) + klabs(startPos->y - spawnPos.y)) > pProj->range)
break;
updatesectorz(spawnPos.x, spawnPos.y, spawnPos.z, &sectNum);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment