diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-02 21:21:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-02 21:21:13 +0000 |
commit | 6e08b92bd4f3e32fdf550f0a3e950e3101a1b06f (patch) | |
tree | 602e344c9506949f1a3f2d71875778baa23a7e36 /src/core/entity.cc | |
parent | a2acf0f1b4aa830929507c70483f0b1885bf4426 (diff) |
Rotated world
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r-- | src/core/entity.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index 2fe381b..2a0518a 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -198,7 +198,7 @@ void EntityDynamic::frame(float seconds) // location avoid sin/cos calculations entity_location.x += cosf(entity_direction * M_PI / 180) * entity_speed * seconds; - entity_location.z -= sinf(entity_direction * M_PI / 180) * entity_speed * seconds; + entity_location.y += sinf(entity_direction * M_PI / 180) * entity_speed * seconds; entity_dirty = true; } |