summary refs log tree commit diff stats
path: root/src/simulation.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2019-02-16 10:02:05 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2019-02-16 10:02:05 -0500
commita34396730c8d993fea84a454690bd13ea9a9b403 (patch)
tree5f226ee45acaa7070a1bb821df3320e907a9ecb2 /src/simulation.cpp
parent8ffb27ab09ff567a159e5be5a243fd3967084977 (diff)
downloaddispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.tar.gz
dispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.tar.bz2
dispatcher-a34396730c8d993fea84a454690bd13ea9a9b403.zip
Started implementing pushing, but not really
Diffstat (limited to 'src/simulation.cpp')
-rw-r--r--src/simulation.cpp2
1 files changed, 1 insertions, 1 deletions
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(
12 Entity& entity = entities_.at(id); 12 Entity& entity = entities_.at(id);
13 13
14 // Control 14 // Control
15 if (entity.player && 15 if (entity.controllable &&
16 !entity.moving) 16 !entity.moving)
17 { 17 {
18 if (keystate[SDL_SCANCODE_LEFT] && 18 if (keystate[SDL_SCANCODE_LEFT] &&