Mercurial > hg > openttd
changeset 14091:870f180bc519 draft
(svn r18638) -Fix: downloading music sets would fail
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sat, 26 Dec 2009 09:38:41 +0000 |
parents | ad7b9541cf58 |
children | 4565c8ca35d3 |
files | src/network/network_content.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -87,6 +87,10 @@ proc = BaseGraphics::HasSet; break; + case CONTENT_TYPE_BASE_MUSIC: + proc = BaseMusic::HasSet; + break; + case CONTENT_TYPE_BASE_SOUNDS: proc = BaseSounds::HasSet; break; @@ -158,6 +162,7 @@ { if (type == CONTENT_TYPE_END) { this->RequestContentList(CONTENT_TYPE_BASE_GRAPHICS); + this->RequestContentList(CONTENT_TYPE_BASE_MUSIC); this->RequestContentList(CONTENT_TYPE_BASE_SOUNDS); this->RequestContentList(CONTENT_TYPE_SCENARIO); this->RequestContentList(CONTENT_TYPE_HEIGHTMAP); @@ -300,6 +305,7 @@ switch (ci->type) { default: return NULL; case CONTENT_TYPE_BASE_GRAPHICS: dir = DATA_DIR; break; + case CONTENT_TYPE_BASE_MUSIC: dir = GM_DIR; break; case CONTENT_TYPE_BASE_SOUNDS: dir = DATA_DIR; break; case CONTENT_TYPE_NEWGRF: dir = DATA_DIR; break; case CONTENT_TYPE_AI: dir = AI_DIR; break;