From 1285cdb05953fe80ae67c53a8ab8a920a86661c8 Mon Sep 17 00:00:00 2001 From: two-six Date: Thu, 12 Oct 2023 20:40:02 +0200 Subject: [PATCH] Fixed and tested --- main.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/main.go b/main.go index 2569be0..65c7c2f 100644 --- a/main.go +++ b/main.go @@ -80,16 +80,6 @@ func (m *neko) Update() error { // or randomly travelling to another monitor m.x = max(0, min(m.x, monitorWidth)) m.y = max(0, min(m.y, monitorHeight)) - if m.x < 0 { - m.x = 0 - } else if m.x >= monitorWidth { - m.x = monitorWidth - } - if m.y < 0 { - m.y = 0 - } else if m.y >= monitorHeight { - m.y = monitorHeight - } ebiten.SetWindowPosition(m.x, m.y) mx, my := ebiten.CursorPosition()