- removed old unused files

- improved CWindow and CTextBox Classes


git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@206 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
gerstrong
2009-08-03 13:50:09 +00:00
parent 89dd1e260c
commit 53b822f703
9 changed files with 80 additions and 622 deletions

View File

@@ -165,7 +165,7 @@ void CTileLoader::assignChangeTileAttribute(stTile *tile)
// At any other case, than the special ones, the tile is always 143 for pickuppable items
// 17 is tile for an exit. Until row 19, this seems to be valid
for(int i=0 ; i<numtiles ; i++)
if(canbePickedup(i) )
if(canbePickedup(i) || isaDoor(i) )
tile[i].chgtile = 143;
switch(m_episode)
@@ -201,8 +201,7 @@ void CTileLoader::assignChangeTileAttribute(stTile *tile)
}
// Only for Doors! Tile is always 182
if(TileProperty[i][BEHAVIOR] >= 2 &&
TileProperty[i][BEHAVIOR] <= 5)
if(isaDoor(i))
tile[i].chgtile = 182;
}
@@ -219,3 +218,8 @@ bool CTileLoader::canbePickedup(int tile)
TileProperty[tile][BEHAVIOR] == 27 ||
TileProperty[tile][BEHAVIOR] == 28);
}
bool CTileLoader::isaDoor(int tile)
{
return (TileProperty[tile][BEHAVIOR] >= 2 && TileProperty[tile][BEHAVIOR] <= 5);
}

View File

@@ -45,6 +45,7 @@ private:
void assignChangeTileAttribute(stTile *tile);
bool setProperOffset();
bool canbePickedup(int tile);
bool isaDoor(int tile);
};
#endif /* CTILELOADER_H_ */