Skip to content

Commit e67b295

Browse files
committed
small hotfix
Put a restriction back on accel lines, fixed a typo
1 parent 6f5d274 commit e67b295

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Addons/Coordinates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static class Coordinates
2929

3030
public static double[] CoordsX = new double[] { SledTLX, SledBLX, SledBRX, SledTRX, BodyBuX, BodyShX, BodyHLX, BodyHRX, BodyFLX, BodyFRX };
3131
public static double[] CoordsY = new double[] { SledTLY, SledBLY, SledBRY, SledTRY, BodyBuY, BodyShY, BodyHLY, BodyHRY, BodyFLY, BodyFRY };
32-
public static string[] ConPName = new string[] { "SledTL", "SledBR", "SledBR", "SledTR", "BodyBu", "BodySh", "BodyHL", "BodyHR", "BodyFL", "BodyFR" };
32+
public static string[] ConPName = new string[] { "SledTL", "SledBL", "SledBR", "SledTR", "BodyBu", "BodySh", "BodyHL", "BodyHR", "BodyFL", "BodyFR" };
3333
public static string[] CoordsData = new string[] { "", "", "", "", "", "", "", "", "", "" };
3434

3535
public static int frame;

src/Rendering/LineAccelRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public static GenericVertex[] GetAccelDecor(RedLine line)
272272
Angle angle = Angle.FromLine(line.End, line.Start);
273273
Angle angle2 = Angle.FromRadians(angle.Radians - 1.5708f);
274274
Vector2d start = line.Position2;
275-
for (int idx = 0; idx < shapecount; idx++)
275+
for (int idx = 0; idx < Math.Min(shapecount, 3); idx++)
276276
{
277277
Vector2d a = start;
278278
Vector2d b = angle.MovePoint(start, line.inv ? -8 : 8);

0 commit comments

Comments
 (0)