diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-13 11:14:01 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-13 11:14:01 -0400 |
commit | b8d62ce8d2f7c8f38aa9c52ab8d7dd32dc3aba64 (patch) | |
tree | 42720ef2eefaf42abc25937e9a2a78cd6998f0f6 /src/entity.cpp | |
parent | 47d9d7884c57c2c14dd363b4ccb0df1dcbb5375e (diff) | |
download | therapy-b8d62ce8d2f7c8f38aa9c52ab8d7dd32dc3aba64.tar.gz therapy-b8d62ce8d2f7c8f38aa9c52ab8d7dd32dc3aba64.tar.bz2 therapy-b8d62ce8d2f7c8f38aa9c52ab8d7dd32dc3aba64.zip |
Fixed my timestep!
http://gafferongames.com/game-physics/fix-your-timestep/
Diffstat (limited to 'src/entity.cpp')
-rw-r--r-- | src/entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
13 | } | 13 | } |
14 | } | 14 | } |
15 | 15 | ||
16 | void Entity::tick(Game& game) | 16 | void Entity::tick(Game& game, double dt) |
17 | { | 17 | { |
18 | for (auto component : components) | 18 | for (auto component : components) |
19 | { | 19 | { |
20 | component->tick(game, *this); | 20 | component->tick(game, *this, dt); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | 23 | ||