diff options
author | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-04-27 13:08:12 +0000 |
commit | a4b36e6d1e20b5036d1ed7cf9f61a48dbbf77812 (patch) | |
tree | 7efd0048fd8c10b1f04d427c78e3ac8da402f059 /src/game/game.cc | |
parent | fe95954f9d17c9dade1827fe5d4cf8cffffddbce (diff) |
3D flight
Diffstat (limited to 'src/game/game.cc')
-rw-r--r-- | src/game/game.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/game.cc b/src/game/game.cc index 88718b4..07327d9 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -128,6 +128,8 @@ void Game::init() Star *star = 0; core::Entity *entity = 0; + float direction; + while (worldini.getline()) { if (worldini.got_key()) { if (worldini.section().compare("star") == 0) { @@ -163,9 +165,10 @@ void Game::init() continue; else if (worldini.got_key_string("model", entity->entity_modelname)) continue; - else if (worldini.got_key_angle("direction", entity->entity_direction)) + else if (worldini.got_key_angle("direction", direction)) { + entity->axis().change_direction(direction); continue; - else if (worldini.got_key_angle("radius", entity->entity_radius)) + } else if (worldini.got_key_angle("radius", entity->entity_radius)) continue; else if (worldini.got_key_vector3f("location", entity->entity_location)) continue; |