comparison mm7_4.cpp @ 86:ec84db4c8f9d

4.01.13
author Ritor1
date Mon, 04 Feb 2013 09:17:35 +0600
parents 653fdf29c654
children 170259c8c71f
comparison
equal deleted inserted replaced
85:3f2d5c80e162 86:ec84db4c8f9d
1707 } 1707 }
1708 1708
1709 //----- (00487E3B) -------------------------------------------------------- 1709 //----- (00487E3B) --------------------------------------------------------
1710 TileDesc *TileTable::GetTileById(unsigned int uTileID) 1710 TileDesc *TileTable::GetTileById(unsigned int uTileID)
1711 { 1711 {
1712 TileDesc *result; // eax@3 1712 /*TileDesc *result; // eax@3
1713 1713
1714 if ( (uTileID & 0x80000000u) != 0 || (signed int)uTileID > (signed int)(this->uNumTiles - 1) ) 1714 if ( (uTileID & 0x80000000u) != 0 || (signed int)uTileID > (signed int)(this->uNumTiles - 1) )
1715 result = this->pTiles; 1715 result = this->pTiles;
1716 else 1716 else
1717 result = &this->pTiles[uTileID]; 1717 result = &this->pTiles[uTileID];
1718 return result; 1718 return result;*/
1719
1720 if (uTileID < 0 || uTileID > this->uNumTiles - 1)
1721 return this->pTiles;
1722 else
1723 return &this->pTiles[uTileID];
1719 } 1724 }
1720 1725
1721 //----- (00487E58) -------------------------------------------------------- 1726 //----- (00487E58) --------------------------------------------------------
1722 void TileTable::InitializeTileset(int uTerrainType) 1727 void TileTable::InitializeTileset(int uTerrainType)
1723 { 1728 {