| 680 | } |
| 681 | |
| 682 | const char *CBaseMenu::GetItemInfo(unsigned int position, ItemDrawInfo *draw/* =NULL */, int client/* =0 */) |
| 683 | { |
| 684 | if (position >= m_items.size()) |
| 685 | return NULL; |
| 686 | |
| 687 | if (client > 0 && position < m_RandomMaps[client].size()) |
| 688 | { |
| 689 | position = m_RandomMaps[client][position]; |
| 690 | } |
| 691 | |
| 692 | if (draw) |
| 693 | { |
| 694 | draw->display = m_items[position].display->c_str(); |
| 695 | draw->style = m_items[position].style; |
| 696 | } |
| 697 | |
| 698 | return m_items[position].info.c_str(); |
| 699 | } |
| 700 | |
| 701 | void CBaseMenu::ShufflePerClient(int start, int stop) |
| 702 | { |
no test coverage detected