Remove loop[ijkl]

They confused clang-format a lot.

FossilOrigin-Name: 6b85eefc857c74c00d7ef693e312cc15df53201a6712aee8ba8d57c643c1703b
This commit is contained in:
Jonathan Schleifer 2025-03-23 02:47:40 +00:00
parent 2c5f2d0342
commit 006dba8370
22 changed files with 318 additions and 257 deletions

View file

@ -21,8 +21,7 @@ static void
newparticle(const OFVector3D *o, const OFVector3D *d, int fade, int type)
{
if (!parinit) {
loopi(MAXPARTICLES)
{
for (int i = 0; i < MAXPARTICLES; i++) {
particles[i].next = parempty;
parempty = &particles[i];
}
@ -138,8 +137,7 @@ render_particles(int time)
void
particle_splash(int type, int num, int fade, const OFVector3D *p)
{
loopi(num)
{
for (int i = 0; i < num; i++) {
const int radius = type == 5 ? 50 : 150;
int x, y, z;
do {
@ -158,8 +156,7 @@ particle_trail(int type, int fade, const OFVector3D *s, const OFVector3D *e)
vdist(d, v, *s, *e);
vdiv(v, d * 2 + 0.1f);
OFVector3D p = *s;
loopi((int)d * 2)
{
for (int i = 0; i < ((int)d * 2); i++) {
vadd(p, v);
OFVector3D d =
OFMakeVector3D(rnd(11) - 5, rnd(11) - 5, rnd(11) - 5);