Permalink
Browse files

changing hero selection takes no time now

Via a tmp hack, until the TODOs below playerCommand implemented.
  • Loading branch information...
1 parent e9b28ba commit f4f946ce66c820f2bd77e50432258c91b0543d5d @Mikolaj Mikolaj committed Feb 5, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Command.hs
  2. +1 −1 src/Turn.hs
View
@@ -27,7 +27,7 @@ saveCommand = Described "save and quit the game" saveGame
quitCommand = Described "quit without saving" quitGame
cancelCommand = Described "cancel current action" cancelCurrent
historyCommand = Described "display previous messages" displayHistory
-heroCommand = Described "cycle among heroes on level" cycleHero -- TODO: should take 0 turns!
+heroCommand = Described "cycle among heroes on level" cycleHero -- TODO: should take 0 turns! When it does, use in Turn.hs.
moveDirCommand = Described "move in direction" move
runDirCommand = Described "run in direction" run
View
@@ -230,7 +230,7 @@ stdKeybindings = Keybindings
(K.Char '>', descendCommand),
(K.Char ':', lookCommand),
- (K.Tab , heroCommand),
+ (K.Tab , Described "cycle among heroes on level" $ cycleHero >> playerCommand),
-- items
(K.Char ',', pickupCommand),

0 comments on commit f4f946c

Please sign in to comment.