From 47825f7129f6eb3d8dcfae976fade920daa01067 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 17 Feb 2007 10:28:23 +0000 Subject: Updated release date and excluded sprites directory from installed files. --- src/gui/updatewindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/updatewindow.cpp') 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: -- cgit v1.2.3-70-g09d2