summaryrefslogtreecommitdiffstats
path: root/HTanks.hs
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2010-03-09 02:00:21 +0100
committerMatthias Schiffer <matthias@gamezock.de>2010-03-09 02:00:21 +0100
commitd3e50ab004d80943e456aee8e425f69ca3d01d5d (patch)
tree11db3970172b124d0e8373c662480cd246891a0c /HTanks.hs
parente03de6bfe6b90f8862e405c3797503ccd2722e1b (diff)
downloadhtanks-d3e50ab004d80943e456aee8e425f69ca3d01d5d.tar
htanks-d3e50ab004d80943e456aee8e425f69ca3d01d5d.zip
Migrated from Make to Cabal
Diffstat (limited to 'HTanks.hs')
-rw-r--r--HTanks.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/HTanks.hs b/HTanks.hs
index 1937693..5e980fc 100644
--- a/HTanks.hs
+++ b/HTanks.hs
@@ -165,13 +165,13 @@ simulationStep = do
shootingtanks = map (\(tank, _, n) -> (tank, n)) $ filter (\(tank, shoot, _) -> shoot && (shootsLeft tank) > 0) $ ts
newtanks = map (\(tank, shoot, _) -> if shoot then tank {shootsLeft = (shootsLeft tank) - 1} else tank) $ ts
newshoots = map (\(tank, n) -> Shoot
- { shootX = posx tank
- , shootY = posy tank
- , shootDir = aim tank
- , shootSpeed = tankShootSpeed tank
- , bouncesLeft = tankShootBounces tank
- , shootTank = n
- }) shootingtanks
+ { shootX = posx tank
+ , shootY = posy tank
+ , shootDir = aim tank
+ , shootSpeed = tankShootSpeed tank
+ , bouncesLeft = tankShootBounces tank
+ , shootTank = n
+ }) shootingtanks
modify $ \state -> state {players = p}