1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-12 16:19:43 +00:00

ru:: fixed wide platform rendering

This commit is contained in:
Zeno Rogue
2025-12-22 13:45:43 +01:00
parent 70eb0e13df
commit 7fa8775785

View File

@@ -582,9 +582,9 @@ void moving_platform::draw() {
double d = get_scale();
auto wi = width();
for(int w=0; w<wi; w++) {
ld minx = where.x + siz().x * d * (w - 0.5) / wi;
ld minx = where.x + siz().x * d * (((w+0.) / wi ) - 0.5);
ld miny = where.y - siz().y * d / 2;
ld maxx = where.x + siz().x * d * (w + 0.5) / wi;
ld maxx = where.x + siz().x * d * (((w+1.) / wi) - 0.5);
ld maxy = where.y + siz().y * d / 2;
asciiletter(minx, miny, maxx, maxy, glyph(), color());
}