From b8d62ce8d2f7c8f38aa9c52ab8d7dd32dc3aba64 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 13 Mar 2015 11:14:01 -0400 Subject: Fixed my timestep! http://gafferongames.com/game-physics/fix-your-timestep/ --- src/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index 38ddffe..2b6cd7f 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -13,11 +13,11 @@ void Entity::send(Game& game, const Message& msg) } } -void Entity::tick(Game& game) +void Entity::tick(Game& game, double dt) { for (auto component : components) { - component->tick(game, *this); + component->tick(game, *this, dt); } } -- cgit 1.4.1