summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-02-17 10:28:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-02-17 10:28:23 +0000
commit47825f7129f6eb3d8dcfae976fade920daa01067 (patch)
tree719071d9e9ac0cf028d2e06384cc1ef9df3733d3 /src/gui/updatewindow.cpp
parentd83f83d051dc521a89241abf17a099ef62cb69a9 (diff)
downloadmana-47825f7129f6eb3d8dcfae976fade920daa01067.tar.gz
mana-47825f7129f6eb3d8dcfae976fade920daa01067.tar.bz2
mana-47825f7129f6eb3d8dcfae976fade920daa01067.tar.xz
mana-47825f7129f6eb3d8dcfae976fade920daa01067.zip
Updated release date and excluded sprites directory from installed files.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 45211b3e..24084fe4 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -331,7 +331,6 @@ int UpdaterWindow::downloadThread(void *ptr)
if (!uw->mStoreInMemory)
{
-
// Don't check resources2.txt checksum
if (uw->mDownloadStatus == UPDATE_RESOURCES)
{
@@ -348,7 +347,7 @@ int UpdaterWindow::downloadThread(void *ptr)
uw->mCurrentFile.c_str(),
adler, uw->mCurrentChecksum);
attempts++;
- continue; //Bail out her to avoid the renaming
+ continue; // Bail out here to avoid the renaming
}
}
fclose(outfile);
@@ -362,7 +361,8 @@ int UpdaterWindow::downloadThread(void *ptr)
::remove(newName.c_str());
::rename(outFilename.c_str(), newName.c_str());
- //Check if we can open it and no errors were encountered during renaming
+ // Check if we can open it and no errors were encountered
+ // during renaming
newfile = fopen(newName.c_str(), "rb");
if (newfile)
{
@@ -372,7 +372,8 @@ int UpdaterWindow::downloadThread(void *ptr)
}
else
{
- uw->mDownloadComplete = true; // it's stored in memory, we're done
+ // It's stored in memory, we're done
+ uw->mDownloadComplete = true;
}
}
attempts++;
@@ -434,7 +435,7 @@ void UpdaterWindow::logic()
mCurrentFile = "resources2.txt";
mStoreInMemory = false;
mDownloadStatus = UPDATE_LIST;
- download(); //download() changes mDownloadComplete to false
+ download(); // download() changes mDownloadComplete to false
}
break;
case UPDATE_LIST: