From a34396730c8d993fea84a454690bd13ea9a9b403 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Feb 2019 10:02:05 -0500 Subject: Started implementing pushing, but not really --- src/simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/simulation.cpp') diff --git a/src/simulation.cpp b/src/simulation.cpp index 3079f56..7dfc83c 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -12,7 +12,7 @@ void Simulation::tick( Entity& entity = entities_.at(id); // Control - if (entity.player && + if (entity.controllable && !entity.moving) { if (keystate[SDL_SCANCODE_LEFT] && -- cgit 1.4.1