Fix laser targeting draw when creature offscreen
This commit is contained in:
+2
-1
@@ -71,6 +71,7 @@ data World = World
|
||||
, _cameraRot :: Float
|
||||
, _cameraZoom :: Float
|
||||
, _cameraViewFrom :: Point2
|
||||
, _viewDistance :: Float
|
||||
, _creatures :: IM.IntMap Creature
|
||||
, _creaturesZone :: Zone (IM.IntMap Creature)
|
||||
, _creatureGroups :: IM.IntMap CrGroupParams
|
||||
@@ -381,7 +382,7 @@ data Targeting
|
||||
= NoTargeting
|
||||
| TargetingOnHeld
|
||||
{ _tgPos :: Maybe Point2
|
||||
, _tgUpdate :: Item -> Creature -> World -> Targeting -> Targeting
|
||||
, _tgUpdate :: Item -> Creature -> World -> Targeting -> (World, Targeting)
|
||||
, _tgDraw :: Int -> Item -> Creature -> World -> Picture
|
||||
, _tgID :: Maybe Int
|
||||
, _tgActive :: Bool
|
||||
|
||||
Reference in New Issue
Block a user