From 138dbc83d5720c8baa7270ece183ce356f619fce Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 18 Nov 2010 15:36:02 +0000 Subject: Have core::Parser handle axis rotations in the same manner as model::MapFile. --- src/model/mapfile.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/model') 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; } -- cgit v1.2.3