summaryrefslogtreecommitdiff
path: root/src/interface/SaveButton.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-13 20:08:55 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-13 20:08:55 (GMT)
commit651546b5bf9ad233b34aacf83f9cb6db2d5b6a28 (patch)
treeba3a7fc8b9c5a441d729fbc5a285dde50a52cea8 /src/interface/SaveButton.cpp
parent723677d43137e7e3686466cdbf348ddc7d7aeea0 (diff)
downloadpowder-651546b5bf9ad233b34aacf83f9cb6db2d5b6a28.zip
powder-651546b5bf9ad233b34aacf83f9cb6db2d5b6a28.tar.gz
Fix bug where thumbnails would not always show in the search
Diffstat (limited to 'src/interface/SaveButton.cpp')
-rw-r--r--src/interface/SaveButton.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interface/SaveButton.cpp b/src/interface/SaveButton.cpp
index cc90a2f..4e7c1de 100644
--- a/src/interface/SaveButton.cpp
+++ b/src/interface/SaveButton.cpp
@@ -1,4 +1,5 @@
#include <iostream>
+#include <typeinfo>
#include "SaveButton.h"
#include "client/SaveInfo.h"
@@ -19,7 +20,8 @@ SaveButton::SaveButton(Point position, Point size, SaveInfo * save):
actionCallback(NULL),
voteColour(255, 0, 0),
selectable(false),
- selected(false)
+ selected(false),
+ waitingForThumb(false)
{
if(save)
{
@@ -125,6 +127,7 @@ void SaveButton::Tick(float dt)
ThumbnailBroker::Ref().RenderThumbnail(file->GetGameSave(), Size.X-3, Size.Y-25, this);
}
}
+
/*Thumbnail * tempThumb;
float scaleFactorY = 1.0f, scaleFactorX = 1.0f;
if(!thumbnail)