diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-25 19:29:33 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-25 19:29:33 -0500 |
commit | 6a55426a506c63eee7b8dea2967a6a5f5ecde038 (patch) | |
tree | 174aa1905db2831311e2bf961e83047f5ecb81bc /src/player.cpp | |
parent | 58b469223e6aef6323791141fb66d72d7d86d983 (diff) |
wandering
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/player.cpp b/src/player.cpp index 1bbfaea..2694a54 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -85,7 +85,6 @@ void PlayerSystem::receive(const KeyDownEvent &kde) auto kc = kde.keycode; auto& loc = *player.component<Position>().get(); auto& vel = *player.component<Direction>().get(); - auto& faceLeft = player.component<Sprite>().get()->faceLeft; if ((kc == SDLK_SPACE) && game::canJump && ((vel.y > -0.01) & (vel.y < 0.01))) { loc.y += HLINES(2); @@ -97,14 +96,14 @@ void PlayerSystem::receive(const KeyDownEvent &kde) } else if (kc == getControl(1)) { if (!ui::fadeEnable) { - moveLeft = faceLeft = true; + moveLeft = true; moveRight = false; worldSystem.goWorldLeft(loc); } } else if (kc == getControl(2)) { if (!ui::fadeEnable) { - moveLeft = faceLeft = false; + moveLeft = false; moveRight = true; worldSystem.goWorldRight(loc, *player.component<Solid>().get()); |