Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index 07327d9..74aa2d9 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -129,6 +129,8 @@ void Game::init()
core::Entity *entity = 0;
float direction;
+ float pitch;
+ float roll;
while (worldini.getline()) {
if (worldini.got_key()) {
@@ -168,6 +170,12 @@ void Game::init()
else if (worldini.got_key_angle("direction", direction)) {
entity->axis().change_direction(direction);
continue;
+ } else if (worldini.got_key_angle("pitch", pitch)) {
+ entity->axis().change_pitch(pitch);
+ continue;
+ } else if (worldini.got_key_angle("roll", roll)) {
+ entity->axis().change_roll(roll);
+ continue;
} else if (worldini.got_key_angle("radius", entity->entity_radius))
continue;
else if (worldini.got_key_vector3f("location", entity->entity_location))