From 6a55426a506c63eee7b8dea2967a6a5f5ecde038 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 25 Nov 2016 19:29:33 -0500 Subject: wandering --- src/player.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/player.cpp') 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().get(); auto& vel = *player.component().get(); - auto& faceLeft = player.component().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().get()); -- cgit v1.2.3