Client Sourceden Fixleyecez
Client Source / EterPythonLib/PythonGridSlotWindow.cpp
Ac
Sonra
Client Source / EterPythonLib/PythonGridSlotWindow.cpp
Ac
Sonra
Kod:
BOOL CGridSlotWindow::CheckMoving(DWORD dwSlotNumber,
DWORD dwItemIndex, const std::list<TSlot*>& c_rSlotList)
1.) PythonGridSlotWindow.cpp 2.) Aratılır.
3.) Degiştirilir.
Kod:
BOOL CGridSlotWindow::CheckMoving(DWORD dwSlotNumber, DWORD dwItemIndex, const std::list<TSlot*> & c_rSlotList)
{
if (m_dwSlotStyle != SLOT_STYLE_PICK_UP)
return TRUE;
while (dwSlotNumber >= 45)
dwSlotNumber -= 45;
for (std::list<TSlot*>::const_iterator itor = c_rSlotList.begin(); itor != c_rSlotList.end(); ++itor)
{
TSlot * pSlot = *itor;
if (dwSlotNumber == pSlot->dwSlotNumber && itor == c_rSlotList.begin())
return true;
if (0 != pSlot->dwItemIndex || pSlot->dwCenterSlotNumber != pSlot->dwSlotNumber)
{
if (dwItemIndex != pSlot->dwItemIndex || c_rSlotList.size() != 1)
return false;
}
}
return true;
}
Moderatör tarafında düzenlendi:
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 12
- Görüntüleme
- 1K
- Cevaplar
- 15
- Görüntüleme
- 896
- Cevaplar
- 3
- Görüntüleme
- 652