Make intro text fade out correctly

This commit is contained in:
Simon Robertshaw 2012-08-07 19:25:05 +01:00
parent 0ef9519bab
commit 8ec66aede9

View File

@ -1088,7 +1088,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
if(colourRValue->IsFocused() || colourGValue->IsFocused() || colourBValue->IsFocused() || colourAValue->IsFocused()) if(colourRValue->IsFocused() || colourGValue->IsFocused() || colourBValue->IsFocused() || colourAValue->IsFocused())
return; return;
if(introText) if(introText > 50)
{ {
introText = 50; introText = 50;
} }
@ -1385,7 +1385,7 @@ void GameView::DoMouseMove(int x, int y, int dx, int dy)
void GameView::DoMouseDown(int x, int y, unsigned button) void GameView::DoMouseDown(int x, int y, unsigned button)
{ {
if(introText) if(introText > 50)
introText = 50; introText = 50;
if(c->MouseDown(x, y, button)) if(c->MouseDown(x, y, button))
Window::DoMouseDown(x, y, button); Window::DoMouseDown(x, y, button);