Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-02 13:05:03 +0000
committerStijn Buys <ingar@osirion.org>2008-05-02 13:05:03 +0000
commit3dedab035c98772fd9607480bddc8ffd9d7dc799 (patch)
tree2d346751841dd85e9bf0edc421469239fead10c7 /src/game/game.cc
parent36ce28a7557c4b2b73316621471558354024ca54 (diff)
additional light properties
Diffstat (limited to 'src/game/game.cc')
-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))