This commit is contained in:
2022-07-20 12:34:52 +01:00
parent 577cf0c44e
commit 8142899be1
3 changed files with 24 additions and 168 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ import Control.Lens
updateProjectile :: Proj -> World -> World
updateProjectile pj = case pj of
Shell{} -> updateShell pj . decTimMvVel pj . upsProjectile pj
RemoteShell{} -> _prjUpdate pj pj
RemoteShell{} -> updateShell pj . decTimMvVel pj . upsProjectile pj
updateShell :: Proj -> World -> World
updateShell pj w
@@ -72,7 +72,7 @@ upProjectile pu pj = case pu of
PJSetScope itid -> setRemoteScope itid (_prjPos pj)
where
time = _prjTimer pj
act st et = time >= st && time <= et
act st et = time <= st && time >= et
ain t = time == t
setRemoteDir :: Int -> Int -> Proj -> World -> World