comparison Chest.cpp @ 2334:ddb803517a48

unused local variables I commented
author Ritor1
date Wed, 02 Apr 2014 21:05:19 +0600
parents 9551756f46c4
children d6887ee81068
comparison
equal deleted inserted replaced
2333:82851980e3d8 2334:ddb803517a48
222 int chest_item_index; // ecx@3 222 int chest_item_index; // ecx@3
223 unsigned int item_texture_id; // eax@4 223 unsigned int item_texture_id; // eax@4
224 Texture *item_texture; // esi@4 224 Texture *item_texture; // esi@4
225 signed int itemPixelWidth; // ecx@4 225 signed int itemPixelWidth; // ecx@4
226 signed int itemPixelHeght; // edx@4 226 signed int itemPixelHeght; // edx@4
227 signed int v11; // eax@4 227 // signed int v11; // eax@4
228 int v12; // eax@6 228 int v12; // eax@6
229 int v13; // eax@6 229 int v13; // eax@6
230 unsigned int itemPixelPosX; // ST34_4@8 230 unsigned int itemPixelPosX; // ST34_4@8
231 int itemPixelPosY; // edi@8 231 int itemPixelPosY; // edi@8
232 int *v16; // [sp+Ch] [bp-28h]@1 232 int *v16; // [sp+Ch] [bp-28h]@1
233 int v17; // [sp+10h] [bp-24h]@4 233 // int v17; // [sp+10h] [bp-24h]@4
234 int chest_offs_y; // [sp+14h] [bp-20h]@1 234 int chest_offs_y; // [sp+14h] [bp-20h]@1
235 signed int chestHeghtCells; // [sp+18h] [bp-1Ch]@1 235 signed int chestHeghtCells; // [sp+18h] [bp-1Ch]@1
236 int chest_offs_x; // [sp+1Ch] [bp-18h]@1 236 int chest_offs_x; // [sp+1Ch] [bp-18h]@1
237 signed int chestWidthCells; // [sp+20h] [bp-14h]@1 237 signed int chestWidthCells; // [sp+20h] [bp-14h]@1
238 signed int item_counter; // [sp+30h] [bp-4h]@1 238 signed int item_counter; // [sp+30h] [bp-4h]@1
278 278
279 279
280 //----- (0041FE71) -------------------------------------------------------- 280 //----- (0041FE71) --------------------------------------------------------
281 bool Chest::CanPlaceItemAt( signed int test_cell_position, int item_id, signed int uChestID ) 281 bool Chest::CanPlaceItemAt( signed int test_cell_position, int item_id, signed int uChestID )
282 { 282 {
283 int v3; // eax@1 283 // int v3; // eax@1
284 unsigned int item_texture_id; // eax@1 284 unsigned int item_texture_id; // eax@1
285 Texture *item_texture; // ecx@1 285 Texture *item_texture; // ecx@1
286 signed int v6; // eax@1 286 signed int v6; // eax@1
287 signed int v7; // edi@3 287 // signed int v7; // edi@3
288 signed int v8; // eax@3 288 signed int v8; // eax@3
289 int texture_cell_width; // edi@3 289 int texture_cell_width; // edi@3
290 int texture_cell_height; // ebx@5 290 int texture_cell_height; // ebx@5
291 int _row; // esi@9 291 int _row; // esi@9
292 int _cell_rows; // edx@10 292 int _cell_rows; // edx@10
293 int _column; // ecx@11 293 int _column; // ecx@11
294 char *v14; // eax@12 294 // char *v14; // eax@12
295 int chest_cell_heght; // [sp+Ch] [bp-Ch]@1 295 int chest_cell_heght; // [sp+Ch] [bp-Ch]@1
296 signed int v17; // [sp+10h] [bp-8h]@1 296 // signed int v17; // [sp+10h] [bp-8h]@1
297 signed int chest_cell_width; // [sp+14h] [bp-4h]@1 297 signed int chest_cell_width; // [sp+14h] [bp-4h]@1
298 298
299 chest_cell_heght = pChestHeightsByType[pChests[uChestID].uChestBitmapID]; 299 chest_cell_heght = pChestHeightsByType[pChests[uChestID].uChestBitmapID];
300 chest_cell_width = pChestWidthsByType[pChests[uChestID].uChestBitmapID]; 300 chest_cell_width = pChestWidthsByType[pChests[uChestID].uChestBitmapID];
301 item_texture_id = pIcons_LOD->LoadTexture(pItemsTable->pItems[item_id].pIconName, TEXTURE_16BIT_PALETTE); 301 item_texture_id = pIcons_LOD->LoadTexture(pItemsTable->pItems[item_id].pIconName, TEXTURE_16BIT_PALETTE);
388 ItemGen *Src; // [sp+Ch] [bp-18h]@1 388 ItemGen *Src; // [sp+Ch] [bp-18h]@1
389 signed int item_in_chest_count; // [sp+10h] [bp-14h]@2 389 signed int item_in_chest_count; // [sp+10h] [bp-14h]@2
390 int v19; // [sp+14h] [bp-10h]@1 390 int v19; // [sp+14h] [bp-10h]@1
391 int v20; // [sp+18h] [bp-Ch]@19 391 int v20; // [sp+18h] [bp-Ch]@19
392 signed int v21; // [sp+1Ch] [bp-8h]@1 392 signed int v21; // [sp+1Ch] [bp-8h]@1
393 signed int v22; // [sp+20h] [bp-4h]@3 393 // signed int v22; // [sp+20h] [bp-4h]@3
394 int v23; // [sp+20h] [bp-4h]@19 394 int v23; // [sp+20h] [bp-4h]@19
395 395
396 v21 = 0; 396 v21 = 0;
397 v4 = put_item; 397 v4 = put_item;
398 v5 = pChestWidthsByType[pChests[uChestID].uChestBitmapID] * pChestHeightsByType[pChests[uChestID].uChestBitmapID]; 398 v5 = pChestWidthsByType[pChests[uChestID].uChestBitmapID] * pChestHeightsByType[pChests[uChestID].uChestBitmapID];