HUGAMES
[C++] Quickslot (Taskbar slot) bugfix - Printable Version

+- HUGAMES (http://hugames.hu)
+-- Forum: Metin2 (http://hugames.hu/forumdisplay.php?fid=1)
+--- Forum: General (http://hugames.hu/forumdisplay.php?fid=2)
+---- Forum: C++ / DIFF / Source (http://hugames.hu/forumdisplay.php?fid=10)
+---- Thread: [C++] Quickslot (Taskbar slot) bugfix (/showthread.php?tid=164)



[C++] Quickslot (Taskbar slot) bugfix - MyStic - 02-09-2018

[Image: screenshot_120.png]

Keresd meg ezt: (game/input_main.cpp)
Code:
void CInputMain::QuickslotAdd(LPCHARACTER ch, const char * data)

Cseréld ki ezzel az egész funkciót:
Code:
void CInputMain::QuickslotAdd(LPCHARACTER ch, const char * data)
{
  struct command_quickslot_add * pinfo = (struct command_quickslot_add *) data;
#ifdef ENABLE_FIX_QUICK_SLOT  
  if(pinfo->slot.type == QUICKSLOT_TYPE_ITEM)
  {
     LPITEM item = NULL;
     
     TItemPos srcCell(INVENTORY, pinfo->slot.pos);
     
     if (!(item = ch->GetItem(srcCell)))
        return;
     
     if (item->GetType() != ITEM_USE && item->GetType() != ITEM_QUEST)
        return;
  }
#endif
 
  ch->SetQuickslot(pinfo->pos, pinfo->slot);
}

common/sercice.h
Add hozzá ezt:

Code:
#define ENABLE_FIX_QUICK_SLOT