Continuing to refactor code to make room for larger features. Currently, attacking doesn't work

This commit is contained in:
2011-07-01 18:23:01 -04:00
parent c49fdb8169
commit bf151a928a
3 changed files with 26 additions and 13 deletions

View File

@ -151,5 +151,5 @@ void Game::on_key_down(SDLKey sym, SDLMod mod, Uint16 unicode)
if (sym == SDLK_a) data.set_mode(MODE_ATTACK);
if (sym == SDLK_m) data.set_mode(MODE_MOVE);
if (sym == SDLK_b) data.set_mode(MODE_BUILD);
if (sym == SDLK_s) data.set_mode(MODE_SELECT);
if (sym == SDLK_s || sym == SDLK_ESCAPE) data.set_mode(MODE_SELECT);
}