| 1301 | |
| 1302 | |
| 1303 | void cClientHandle::HandleWindowClick(char a_WindowID, short a_SlotNum, eClickAction a_ClickAction, const cItem & a_HeldItem) |
| 1304 | { |
| 1305 | LOGD("WindowClick: WinID %d, SlotNum %d, action: %s, Item %s x %d", |
| 1306 | a_WindowID, a_SlotNum, ClickActionToString(a_ClickAction), |
| 1307 | ItemToString(a_HeldItem).c_str(), a_HeldItem.m_ItemCount |
| 1308 | ); |
| 1309 | |
| 1310 | cWindow * Window = m_Player->GetWindow(); |
| 1311 | if (Window == NULL) |
| 1312 | { |
| 1313 | LOGWARNING("Player \"%s\" clicked in a non-existent window. Ignoring", m_Username.c_str()); |
| 1314 | return; |
| 1315 | } |
| 1316 | |
| 1317 | Window->Clicked(*m_Player, a_WindowID, a_SlotNum, a_ClickAction, a_HeldItem); |
| 1318 | } |
| 1319 | |
| 1320 | |
| 1321 |
no test coverage detected