Refactor crPos to be a V3

This commit is contained in:
2025-10-10 13:47:31 +01:00
parent 98ece551c7
commit 49fb982877
58 changed files with 375 additions and 307 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ module Dodge.Inventory (
destroyAllInvItems,
) where
import Linear
import Data.Function
import Data.Maybe
import Dodge.Base
@@ -128,7 +129,7 @@ updateCloseObjects w =
return (x /= TerminalDeactivated)
_ -> True
isclose x = dist y x < 40 && hasButtonLOS y x w
y = _crPos $ you w
y = you w ^. crPos . _xy
changeSwapSel :: Int -> World -> World
changeSwapSel yi w