Skip to content

Commit

Permalink
Fix rotation offset when starting to drag objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Mar 14, 2013
1 parent 1dbf15c commit f7f61f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/Interface.cpp
Expand Up @@ -7258,12 +7258,12 @@ long Manage3DCursor(long flags)
if (io->ioflags & IO_INVERTED)
{
temp.a=180.f;
temp.b = -MAKEANGLE(io->angle.b - ((player.angle.b) - (STARTED_ANGLE + 90)));
temp.b = -MAKEANGLE(270.f - io->angle.b - (player.angle.b - STARTED_ANGLE));
}
else
{
temp.a = 0;
temp.b = MAKEANGLE(io->angle.b - ((player.angle.b) - (STARTED_ANGLE + 90)));
temp.b = MAKEANGLE(270.f - io->angle.b - (player.angle.b - STARTED_ANGLE));
}

temp.g = 0;
Expand Down

0 comments on commit f7f61f3

Please sign in to comment.