comparison Indoor.cpp @ 2140:4c0c475917dd

drawing items in the dragon's cave and GetFloorLevel for BModels
author Ritor1
date Thu, 02 Jan 2014 17:56:55 +0600
parents ee2724b9ca05
children cfe04d858766
comparison
equal deleted inserted replaced
2139:f9b55be70c1b 2140:4c0c475917dd
2202 { 2202 {
2203 SpriteObject* pItem = &pSpriteObjects[i]; 2203 SpriteObject* pItem = &pSpriteObjects[i];
2204 2204
2205 if (pItem->stru_24.uItemID && !(pItem->uAttributes & 0x0100)) 2205 if (pItem->stru_24.uItemID && !(pItem->uAttributes & 0x0100))
2206 { 2206 {
2207 pItem->uType = pItemsTable->pItems[pItem->stru_24.uItemID - 1].uSpriteID; 2207 pItem->uType = pItemsTable->pItems[pItem->stru_24.uItemID].uSpriteID;
2208 2208
2209 uint uObjectID = 0; 2209 uint uObjectID = 0;
2210 for (uint j = 0; j < pObjectList->uNumObjects; ++j) 2210 for (uint j = 0; j < pObjectList->uNumObjects; ++j)
2211 if (pItem->uType == pObjectList->pObjects[j].uObjectID) 2211 if (pItem->uType == pObjectList->pObjects[j].uObjectID)
2212 { 2212 {