Mercurial > mm7
comparison UI/UIShops.cpp @ 1683:96d567a7d15f
moving OnInventoryLeftClick to Player::
author | Grumpy7 |
---|---|
date | Fri, 20 Sep 2013 10:34:07 +0200 |
parents | 9f8b3e904e14 |
children | f44b6e02e81c |
comparison
equal
deleted
inserted
replaced
1682:3c451fd02fcf | 1683:96d567a7d15f |
---|---|
2315 unsigned int v79; // [sp+A8h] [bp-Ch]@9 | 2315 unsigned int v79; // [sp+A8h] [bp-Ch]@9 |
2316 int uPriceItemService; // [sp+ACh] [bp-8h]@12 | 2316 int uPriceItemService; // [sp+ACh] [bp-8h]@12 |
2317 | 2317 |
2318 if ( pCurrentScreen == SCREEN_E ) | 2318 if ( pCurrentScreen == SCREEN_E ) |
2319 { | 2319 { |
2320 OnInventoryLeftClick(); | 2320 pPlayers[uActiveCharacter]->OnInventoryLeftClick(); |
2321 return; | 2321 return; |
2322 } | 2322 } |
2323 if ( !HouseUI_CheckIfPlayerCanInteract() ) | 2323 if ( !HouseUI_CheckIfPlayerCanInteract() ) |
2324 { | 2324 { |
2325 pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0); | 2325 pAudioPlayer->PlaySound(SOUND_27, 0, 0, -1, 0, 0, 0, 0); |
2329 switch(dialog_menu_id) | 2329 switch(dialog_menu_id) |
2330 { | 2330 { |
2331 case HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT: | 2331 case HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT: |
2332 { | 2332 { |
2333 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; | 2333 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; |
2334 OnInventoryLeftClick(); | 2334 pPlayers[uActiveCharacter]->OnInventoryLeftClick(); |
2335 break; | 2335 break; |
2336 } | 2336 } |
2337 case HOUSE_DIALOGUE_GUILD_BUY_BOOKS: | 2337 case HOUSE_DIALOGUE_GUILD_BUY_BOOKS: |
2338 { | 2338 { |
2339 pCursorPos = pMouse->GetCursorPos(&cursor); | 2339 pCursorPos = pMouse->GetCursorPos(&cursor); |