From 4641b53603ea2d04eaca781ab609bfde8f29a00f Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 1 May 2020 17:57:07 -0700 Subject: [PATCH] Interpolate gravitron top line extending Otherwise it'll extend at 30 FPS only which would be kind of jarring. --- desktop_version/src/Graphics.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index ac8a0c9e..fb202459 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -1647,12 +1647,19 @@ void Graphics::drawentities() drawhuetile(xp, yp - yoff, obj.entities[i].tile); break; case 5: //Horizontal Line + { + int oldw = obj.entities[i].w; + if (game.swngame == 3 && obj.getlineat(84 - 32) == i) + { + oldw -= 24; + } line_rect.x = xp; line_rect.y = yp - yoff; - line_rect.w = obj.entities[i].w; + line_rect.w = lerp(oldw, obj.entities[i].w); line_rect.h = 1; drawgravityline(i); break; + } case 6: //Vertical Line line_rect.x = xp; line_rect.y = yp - yoff;