summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-07 18:25:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-07 18:25:05 (GMT)
commit8ec66aede972f1edef43884d0f6b48306ba485c5 (patch)
treecbc75d63f742dae68924cd3470a0af2f17a34502 /src/game/GameView.cpp
parent0ef9519bab8a49956942608819aec31ee4463bbd (diff)
downloadpowder-8ec66aede972f1edef43884d0f6b48306ba485c5.zip
powder-8ec66aede972f1edef43884d0f6b48306ba485c5.tar.gz
Make intro text fade out correctly
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 84c305b..8d53439 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);