summary refs log tree commit diff stats
path: root/src/simulation.cpp
diff options
context:
space:
mode:
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] &&