summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 00:59:09 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 01:01:56 +0100
commit416e28057f5a6073a2ef44f296ed1c8bc1280bf6 (patch)
treed7b2f322f1adec25f2b6165cc8c041904e29c365
parentcabf8905526b6601813573d049f6afaf364e1cac (diff)
downloadmana-client-416e28057f5a6073a2ef44f296ed1c8bc1280bf6.tar.gz
mana-client-416e28057f5a6073a2ef44f296ed1c8bc1280bf6.tar.bz2
mana-client-416e28057f5a6073a2ef44f296ed1c8bc1280bf6.tar.xz
mana-client-416e28057f5a6073a2ef44f296ed1c8bc1280bf6.zip
Some code reformatting and updated NEWS
-rw-r--r--NEWS2
-rw-r--r--src/gui/updatewindow.cpp22
2 files changed, 14 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index 56beff06..52dbf700 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@
- Extended particle emitters with properties that can change over time
- Extended the GUI font to support more characters
- Only require a restart to switch to full screen with OpenGL on Windows
+- Make sure news and update file list aren't cached (from Aethyra)
+- Made NPC dialogs resizable (from Aethyra)
- Fixed visibility of trade window on startup
- Fixed a client input freeze when closing NPC script from server
- Fixed dead players to lie on the ground instead of standing around
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 2edb1a9a..7f7d45fc 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -310,14 +310,15 @@ int UpdaterWindow::downloadThread(void *ptr)
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 15);
- struct curl_slist *pHeaders=NULL;
- if(uw->mDownloadStatus != UPDATE_RESOURCES){
- /*caching breaks things when resources2.txt is cached
- *so caching is turned off on the proxy with this header
- *change*/
- pHeaders = curl_slist_append(pHeaders, "pragma: no-cache");
- pHeaders = curl_slist_append(pHeaders, "Cache-Control: no-cache");
- curl_easy_setopt(curl, CURLOPT_HTTPHEADER, pHeaders);
+ struct curl_slist *pHeaders = NULL;
+ if (uw->mDownloadStatus != UPDATE_RESOURCES)
+ {
+ // Make sure the resources2.txt and news.txt aren't cached,
+ // in order to always get the latest version.
+ pHeaders = curl_slist_append(pHeaders, "pragma: no-cache");
+ pHeaders =
+ curl_slist_append(pHeaders, "Cache-Control: no-cache");
+ curl_easy_setopt(curl, CURLOPT_HTTPHEADER, pHeaders);
}
if ((res = curl_easy_perform(curl)) != 0)
@@ -344,8 +345,9 @@ int UpdaterWindow::downloadThread(void *ptr)
curl_easy_cleanup(curl);
- if(uw->mDownloadStatus != UPDATE_RESOURCES){
- curl_slist_free_all(pHeaders);
+ if (uw->mDownloadStatus != UPDATE_RESOURCES)
+ {
+ curl_slist_free_all(pHeaders);
}
if (!uw->mStoreInMemory)