diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2010-03-05 04:38:31 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2010-03-05 04:38:31 +0100 |
commit | 0fb75af68220527fb10ab0ce39e35f61cba67e4c (patch) | |
tree | 6bc7dd114daa0b74cb7d25743741de90dfc5a768 /HTanks.hs | |
parent | 1020310190063279b7951e44d8ae21fe3a623aa3 (diff) | |
download | htanks-0fb75af68220527fb10ab0ce39e35f61cba67e4c.tar htanks-0fb75af68220527fb10ab0ce39e35f61cba67e4c.zip |
Aim with mouse in DefaultPlayer
Diffstat (limited to 'HTanks.hs')
-rw-r--r-- | HTanks.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -164,7 +164,8 @@ simulationStep = do handleEvents :: Main () handleEvents = do - event <- gets driver >>= liftIO . nextEvent + (newgl, event) <- gets driver >>= liftIO . nextEvent + modify $ \state -> state {driver = newgl} when (isJust event) $ do Main.handleEvent $ fromJust event modify $ \state -> state {players = map (\p -> Player.handleEvent p $ fromJust event) $ players state} |