mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-11-28 10:41:14 +00:00
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:
parent
1afcef5f5f
commit
6a2940940b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user