Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc7
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;