diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:50:21 +0000 |
commit | 561b25d0319674716b51d63594e146132d0a33e3 (patch) | |
tree | 9329a875bcf71cf40becc5b8a254db8ddfdcf05e /src/network/network_content.cpp | |
parent | bcbdc3933c4aeff90692a1059375b1f590e7c904 (diff) | |
download | openttd-561b25d0319674716b51d63594e146132d0a33e3.tar.xz |
(svn r23601) -Fix: fix the conflict in window number
Diffstat (limited to 'src/network/network_content.cpp')
-rw-r--r-- | src/network/network_content.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 6499e5274..0e08cb705 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -475,7 +475,7 @@ bool ClientNetworkContentSocketHandler::Receive_SERVER_CONTENT(Packet *p) /* We have a file opened, thus are downloading internal content */ size_t toRead = (size_t)(p->size - p->pos); if (fwrite(p->buffer + p->pos, 1, toRead, this->curFile) != toRead) { - DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); + DeleteWindowById(WC_NETWORK_STATUS_WINDOW, WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD); ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_DOWNLOAD, STR_CONTENT_ERROR_COULD_NOT_DOWNLOAD_FILE_NOT_WRITABLE, WL_ERROR); this->Close(); fclose(this->curFile); @@ -509,7 +509,7 @@ bool ClientNetworkContentSocketHandler::BeforeDownload() const char *filename = GetFullFilename(this->curInfo, true); if (filename == NULL || (this->curFile = fopen(filename, "wb")) == NULL) { /* Unless that fails ofcourse... */ - DeleteWindowById(WC_NETWORK_STATUS_WINDOW, 0); + DeleteWindowById(WC_NETWORK_STATUS_WINDOW, WN_NETWORK_STATUS_WINDOW_CONTENT_DOWNLOAD); ShowErrorMessage(STR_CONTENT_ERROR_COULD_NOT_DOWNLOAD, STR_CONTENT_ERROR_COULD_NOT_DOWNLOAD_FILE_NOT_WRITABLE, WL_ERROR); return false; } |