Skip to content

Commit

Permalink
TEENAGENT: Fix likely cut-and-paste error in Message positioning code.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitall committed Jul 31, 2012
1 parent d62bb98 commit 6949b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/teenagent/scene.cpp
Expand Up @@ -1205,7 +1205,7 @@ Common::Point Scene::messagePosition(const Common::String &str, Common::Point me
message_position.x = screenWidth - w;
if (message_position.x < 0)
message_position.x = 0;
if (message_position.y + h > screenWidth) // FIXME - Error? Should be screenHeight?
if (message_position.y + h > screenHeight)
message_position.y = screenHeight - h;
if (message_position.y < 0)
message_position.y = 0;
Expand Down

0 comments on commit 6949b30

Please sign in to comment.