From 9e8f126215374b34ddfcc4c3105dadaca25d90d0 Mon Sep 17 00:00:00 2001 From: mateuszb Date: Mon, 9 Jul 2007 15:02:08 +0000 Subject: [PATCH] =?UTF-8?q?cz=C4=99=C5=9Bciowy=20bugfix,=20nie=20mam=20mo?= =?UTF-8?q?=C5=BCliwo=C5=9Bci=20doko=C5=84czy=C4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CAmbarCendamo.cpp | 5 +++-- SDL_Extensions.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CAmbarCendamo.cpp b/CAmbarCendamo.cpp index 0db932ab4..29eb0c819 100644 --- a/CAmbarCendamo.cpp +++ b/CAmbarCendamo.cpp @@ -1311,8 +1311,9 @@ void CAmbarCendamo::deh3m() for(int vv=0; vv<7; ++vv) { - nce.gen[vv] = readNormalNr(i, 2); + nce.gen[vv] = readNormalNr(i, 2); i+=2; } + i+=4; spec->events.push_back(nce); } @@ -1778,7 +1779,7 @@ EDefType CAmbarCendamo::getDefType(DefInfo &a) return EDefType::HERO_DEF; //handled case 36: return EDefType::GRAIL_DEF; //hanled - case 53: case 17: case 18: case 19: case 20: case 42: case 87: //cases 17 - 20 and 42 - tests + case 53: case 17: case 18: case 19: case 20: case 42: case 87: case 220://cases 17 - 20 and 42 - tests return EDefType::PLAYERONLY_DEF; //handled case 54: case 71: case 72: case 73: case 74: case 75: case 162: case 163: case 164: return EDefType::CREATURES_DEF; //handled diff --git a/SDL_Extensions.cpp b/SDL_Extensions.cpp index 793c58180..777e6dd4c 100644 --- a/SDL_Extensions.cpp +++ b/SDL_Extensions.cpp @@ -363,7 +363,7 @@ SDL_Surface * CSDL_Ext::alphaTransform(SDL_Surface *src) SDL_Surface * CSDL_Ext::secondAlphaTransform(SDL_Surface * src, SDL_Surface * alpha) { - Uint32 pompom[224][224]; + Uint32 pompom[256][256]; for(int i=0; iw; ++i) { for(int j=0; jh; ++j) @@ -371,7 +371,7 @@ SDL_Surface * CSDL_Ext::secondAlphaTransform(SDL_Surface * src, SDL_Surface * al pompom[i][j] = 0xffffffff - (SDL_GetPixel(src, i, j, true) & 0xff000000); } } - Uint32 pompom2[224][224]; + Uint32 pompom2[256][256]; for(int i=0; iw; ++i) { for(int j=0; jh; ++j)