dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 15a643239c97fec9d167f1d804c189dd846ce340
parent 28936f809d83f3189e6a239a91e9c45d36208df7
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 16 Jun 2023 18:30:26 -0700

cleanup

Diffstat:
Mpkg/web/handlers/chess.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go @@ -935,7 +935,7 @@ func arrow(s1, s2 chess.Square, isFlipped bool) (out string) { cx1, cy1 := squareCoord(s1, isFlipped) cx2, cy2 := squareCoord(s2, isFlipped) dist, isDiag, isLine := calcDisc(cx1, cy1, cx2, cy2) - a := math.Atan2(float64(cy1-cy2), float64(cx1-cx2)) + math.Pi/2 + math.Pi + a := math.Atan2(float64(cy1-cy2), float64(cx1-cx2)) + 3*math.Pi/2 out += fmt.Sprintf("#arrow { "+ "display: block !important; "+ "transform: rotate(%.9frad) !important; "+