From db12ede83706403f5ffbb0298c1ec8ef7ff1af0f Mon Sep 17 00:00:00 2001 From: mateuszb Date: Thu, 20 Mar 2008 14:23:54 +0000 Subject: [PATCH] added requirements for some towns (to be tested - they're probably good, but seem to don't work) --- config/requirements.txt | 145 +++++++++++++++++++++++++++++++++++++++- hch/CMusicHandler.cpp | 8 +-- 2 files changed, 146 insertions(+), 7 deletions(-) diff --git a/config/requirements.txt b/config/requirements.txt index fe0d046e9..6916aa687 100644 --- a/config/requirements.txt +++ b/config/requirements.txt @@ -1,16 +1,22 @@ -1 +2 0 1 0 2 1 3 2 4 3 +8 7 +9 8 11 5 12 11 0 14 16 13 12 7 8 9 -22 5 -21 7 16 30 33 +15 14 +16 10 +17 6 18 7 16 30 32 33 19 7 16 30 39 33 +20 6 +21 7 16 30 33 +22 5 30 7 31 7 30 32 7 16 30 33 @@ -26,3 +32,136 @@ 42 35 43 36 -1 +1 +1 0 +2 1 +3 2 +4 3 +8 7 +9 8 +11 5 +12 11 0 14 16 +13 12 7 8 9 +15 14 +16 10 +18 31 +19 38 +21 17 +22 31 +24 34 +25 41 +30 7 +31 30 +32 30 +33 32 +34 32 +35 33 34 +36 35 1 +37 30 +38 31 +39 32 +40 33 +41 34 +42 35 +43 36 2 +-1 +2 +1 0 +2 1 +3 2 +4 3 +8 7 +9 8 +11 5 +12 11 0 14 16 +13 12 7 8 9 +15 14 +16 10 +17 14 +18 31 +19 38 +21 7 +22 0 +23 0 +30 7 +31 30 +32 30 +33 0 31 32 +34 33 +35 33 +36 34 35 +37 30 +38 31 +39 32 +40 33 22 +41 34 +42 35 +43 36 +-1 +3 +1 0 +2 1 +3 2 +4 3 +8 7 +9 8 +11 5 +12 11 0 14 16 +13 12 7 8 9 +15 14 +16 10 +18 30 +19 37 +21 7 +22 8 +23 0 +24 32 +25 39 +30 7 +31 30 +32 30 +33 31 +34 33 +35 0 33 +36 34 35 +37 30 +38 31 +39 32 +40 33 +41 34 1 +42 35 +43 36 +-1 +4 +1 0 +2 1 +3 2 +4 3 +8 7 +9 8 +11 5 +12 11 0 14 16 +13 12 7 8 9 +15 14 +16 10 +17 7 +18 30 +19 37 +20 6 +21 0 +22 30 +30 7 +31 30 +32 30 +33 31 +34 0 31 +35 33 34 +36 35 +37 30 +38 31 +39 32 +40 33 21 +41 34 +42 35 +43 36 +-1 \ No newline at end of file diff --git a/hch/CMusicHandler.cpp b/hch/CMusicHandler.cpp index a962d810e..f771b8871 100644 --- a/hch/CMusicHandler.cpp +++ b/hch/CMusicHandler.cpp @@ -71,13 +71,13 @@ void CMusicHandler::playClick() void CMusicHandler::playLodSnd(std::string sndname) { - int size; - unsigned char *data; + int size; + unsigned char *data; SDL_RWops *ops; Mix_Chunk *chunk; int channel; - - if ((data = sndh->extract(sndname, size)) == NULL) + + if ((data = sndh->extract(sndname, size)) == NULL) return; ops = SDL_RWFromConstMem(data, size);