Fixed race messages appearing in wrong viewport when playing with 3 or 4 players

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7398 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-01-14 00:25:46 +00:00
parent 30e6f2323e
commit bf3b23210f

View File

@ -1004,8 +1004,8 @@ void RaceGUI::drawAllMessages(const Kart* kart,
{
int y = viewport.LowerRightCorner.Y - m_small_font_max_height - 10;
const int x = (viewport.LowerRightCorner.X - viewport.UpperLeftCorner.X)/2;
const int w = (viewport.LowerRightCorner.X + viewport.UpperLeftCorner.X)/2;
const int x = (viewport.LowerRightCorner.X + viewport.UpperLeftCorner.X)/2;
const int w = (viewport.LowerRightCorner.X - viewport.UpperLeftCorner.X);
// draw less important first, at the very top of the screen
for (AllMessageType::const_iterator i = m_messages.begin();