comparison UI/UiGame.cpp @ 1384:b51332ab228f

changed a few member variables in Player to slightly less confusing names
author Grumpy7
date Tue, 16 Jul 2013 20:51:29 +0200
parents d6cf8ead9242
children 28f87f5234a1
comparison
equal deleted inserted replaced
1383:0a4254e80036 1384:b51332ab228f
58 if (pParty->pPickedItem.uItemID) 58 if (pParty->pPickedItem.uItemID)
59 { 59 {
60 //v3 = player; 60 //v3 = player;
61 if (auto slot = player->AddItem(-1, pParty->pPickedItem.uItemID)) 61 if (auto slot = player->AddItem(-1, pParty->pPickedItem.uItemID))
62 { 62 {
63 memcpy(&player->pInventoryItems[slot-1], &pParty->pPickedItem, 0x24u); 63 memcpy(&player->pInventoryItemList[slot-1], &pParty->pPickedItem, 0x24u);
64 viewparams->bRedrawGameUI = true; 64 viewparams->bRedrawGameUI = true;
65 pMouse->RemoveHoldingItem(); 65 pMouse->RemoveHoldingItem();
66 return; 66 return;
67 } 67 }
68 68
1967 } 1967 }
1968 } 1968 }
1969 uLastPointedObjectID = pMouse->uPointingObjectID; 1969 uLastPointedObjectID = pMouse->uPointingObjectID;
1970 return; 1970 return;
1971 } 1971 }
1972 pItemGen = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItems[v14-1]; 1972 pItemGen = (ItemGen *)&pPlayers[uActiveCharacter]->pInventoryItemList[v14-1];
1973 //goto LABEL_49; 1973 //goto LABEL_49;
1974 v17 = pItemGen->GetDisplayName(); 1974 v17 = pItemGen->GetDisplayName();
1975 GameUI_SetFooterString(v17); 1975 GameUI_SetFooterString(v17);
1976 uLastPointedObjectID = 1; 1976 uLastPointedObjectID = 1;
1977 if ( pMouse->uPointingObjectID == 0 ) 1977 if ( pMouse->uPointingObjectID == 0 )