diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-18 15:36:02 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-18 15:36:02 +0000 |
commit | 138dbc83d5720c8baa7270ece183ce356f619fce (patch) | |
tree | 94cebeb8c5cef1a2550ea4d6414af6729c832def /src/model | |
parent | 847f84e1e3797277407bc34f5acc51b801b2bf29 (diff) |
Have core::Parser handle axis rotations in the same manner as model::MapFile.
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/mapfile.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc index b74cdbe..f8e541c 100644 --- a/src/model/mapfile.cc +++ b/src/model/mapfile.cc @@ -816,22 +816,15 @@ bool MapFile::got_key_axis(math::Axis &axis) return true; } else if (got_key_float("pitch", pitch)) { - // TODO this warning should eventually disappear - unknown_error("'" + classname() + ":" + key() + "' has switched sign"); - axis.change_pitch(-pitch); - + axis.change_pitch(-pitch); return true; } else if (got_key_float("yaw", yaw)) { axis.change_direction(yaw); - return true; } else if (got_key_float("roll", roll)) { - // TODO this warning should eventually disappear - unknown_error("'" + classname() + ":" + key() + "' has switched sign"); axis.change_roll(-roll); - return true; } |