Migrate more strings

FossilOrigin-Name: e7b5d33cada1ff8db653655ab2c77ead76ab7625a5d2f793b9aee3ec21e3778b
This commit is contained in:
Jonathan Schleifer 2025-03-03 23:52:52 +00:00
parent b00de734e8
commit 2860953c0b
24 changed files with 692 additions and 556 deletions

View file

@ -171,19 +171,19 @@ calclight()
{
sqr *s = S(x, y);
s->r = s->g = s->b = 10;
};
}
loopv(ents)
{
entity &e = ents[i];
if (e.type == LIGHT)
calclightsource(e);
};
}
block b = {1, 1, ssize - 2, ssize - 2};
postlightarea(b);
setvar("fullbright", 0);
};
setvar(@"fullbright", 0);
}
VARP(dynlight, 0, 16, 32);
@ -196,8 +196,8 @@ cleardlights()
block *backup = dlights.pop();
blockpaste(*backup);
free(backup);
};
};
}
}
void
dodynlight(vec &vold, vec &v, int reach, int strength, dynent *owner)
@ -230,7 +230,7 @@ dodynlight(vec &vold, vec &v, int reach, int strength, dynent *owner)
LIGHT, (uchar)strength, 0, 0};
calclightsource(l);
postlightarea(b);
};
}
// utility functions also used by editing code
@ -244,7 +244,7 @@ blockcopy(block &s)
for (int y = s.y; y < s.ys + s.y; y++)
*q++ = *S(x, y);
return b;
};
}
void
blockpaste(block &b)
@ -254,4 +254,4 @@ blockpaste(block &b)
for (int y = b.y; y < b.ys + b.y; y++)
*S(x, y) = *q++;
remipmore(b);
};
}