diff --git a/source/core/automap.cpp b/source/core/automap.cpp index 51df70fdf..8f3f2e0f2 100644 --- a/source/core/automap.cpp +++ b/source/core/automap.cpp @@ -322,7 +322,7 @@ void MarkSectorSeen(int i) void drawlinergb(int32_t x1, int32_t y1, int32_t x2, int32_t y2, PalEntry p) { if (am_linethickness >= 2) { - twod->AddThickLine(x1 / 4096.f, y1 / 4096.f, x2 / 4096.f, y2 / 4096.f, am_linethickness, p, uint8_t(am_linealpha * 255)); + twod->AddThickLine(x1 / 4096, y1 / 4096, x2 / 4096, y2 / 4096, am_linethickness, p, uint8_t(am_linealpha * 255)); } else { // Use more efficient thin line drawing routine. twod->AddLine(x1 / 4096.f, y1 / 4096.f, x2 / 4096.f, y2 / 4096.f, windowxy1.x, windowxy1.y, windowxy2.x, windowxy2.y, p, uint8_t(am_linealpha * 255));