From 8ec66aede972f1edef43884d0f6b48306ba485c5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 7 Aug 2012 19:25:05 +0100 Subject: [PATCH] Make intro text fade out correctly --- src/game/GameView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 84c305b46..8d5343912 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -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()) return; - if(introText) + if(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) { - if(introText) + if(introText > 50) introText = 50; if(c->MouseDown(x, y, button)) Window::DoMouseDown(x, y, button);