Decompile fn_01951 (DrawScreenLine)

Batch #17466 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_01951 DrawScreenLine: logic confirmed by peer review

Peer-reviewed-by: Yommy, cremane, Eofim
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-12 00:19:24 +00:00
commit b1f2cc6ef9

View file

@ -25,8 +25,8 @@ void DrawScreenLine(float startX, float startY, float endX, float endY, int thic
angle += 1.570796f;
const float width = static_cast<float>(thickness);
const float offsetY = std::sin(angle) * width;
const float offsetX = std::cos(angle) * width;
const float offsetY = ClientSin(angle) * width;
const float offsetX = ClientCos(angle) * width;
DrawScreenQuad(
startX - offsetX, startY - offsetY, startX + offsetX, startY + offsetY, endX - offsetX, endY - offsetY, endX + offsetX, endY + offsetY, texture, color
);