aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-11-25 19:29:33 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-11-25 19:29:33 -0500
commit6a55426a506c63eee7b8dea2967a6a5f5ecde038 (patch)
tree174aa1905db2831311e2bf961e83047f5ecb81bc /src/player.cpp
parent58b469223e6aef6323791141fb66d72d7d86d983 (diff)
wandering
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp5
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());