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:
parent
648df91b9d
commit
b1f2cc6ef9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue