entities: fix for handling of lightning/beam temp entities

Unintended re-use of loop variable 'i'.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-11-23 09:00:43 +10:30
parent 1afcef5f5f
commit 6a2940940b
2 changed files with 2 additions and 5 deletions

View File

@ -336,8 +336,7 @@ CL_UpdateTEnts(void)
ent->angles[1] = yaw;
ent->angles[2] = rand() % 360;
for (i = 0; i < 3; i++)
org[i] += dist[i] * 30;
VectorMA(org, 30, dist, org);
d -= 30;
}
}

View File

@ -404,12 +404,10 @@ CL_UpdateBeams(void)
ent->angles[1] = yaw;
ent->angles[2] = rand() % 360;
for (i = 0; i < 3; i++)
org[i] += dist[i] * 30;
VectorMA(org, 30, dist, org);
d -= 30;
}
}
}
/*