summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-08 20:32:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-08 20:32:10 (GMT)
commitd352a10d802e7358c5034f500bfec21cc55e7e6e (patch)
tree36a4c2e3cd2ec200aa716cb194cd694c8fdcb565 /src/game/GameView.cpp
parent435c680f010508eced376dbe7e6fd659fbbb3415 (diff)
downloadpowder-d352a10d802e7358c5034f500bfec21cc55e7e6e.zip
powder-d352a10d802e7358c5034f500bfec21cc55e7e6e.tar.gz
PTsave opening
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 8d53439..65c0ddd 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -819,6 +819,9 @@ void GameView::NotifySaveChanged(GameModel * sender)
{
if(sender->GetSave())
{
+ if(introText > 50)
+ introText = 50;
+
saveSimulationButton->SetText(sender->GetSave()->GetName());
if(sender->GetSave()->GetUserName() == sender->GetUser().Username)
((SplitButton*)saveSimulationButton)->SetShowSplit(true);
@@ -1324,7 +1327,7 @@ void GameView::OnTick(float dt)
}
if(introText)
{
- introText -= int(dt)>0?int(dt):1;
+ introText -= int(dt)>0?std::min(int(dt), 5):1;
if(introText < 0)
introText = 0;
}