removed an API feature that was not only in the wrong place but was not implemented at all
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401353
This commit is contained in:
parent
874e3d6ed2
commit
cb7f62246a
@ -617,8 +617,6 @@ bool CBaseMenu::AppendItem(const char *info, const ItemDrawInfo &draw)
|
||||
item.displayString = m_Strings.AddString(draw.display);
|
||||
}
|
||||
item.style = draw.style;
|
||||
item.access = draw.access;
|
||||
|
||||
|
||||
m_items.push_back(item);
|
||||
|
||||
@ -645,7 +643,6 @@ bool CBaseMenu::InsertItem(unsigned int position, const char *info, const ItemDr
|
||||
item.displayString = m_Strings.AddString(draw.display);
|
||||
}
|
||||
item.style = draw.style;
|
||||
item.access = draw.access;
|
||||
|
||||
CVector<CItem>::iterator iter = m_items.iterAt(position);
|
||||
m_items.insert(iter, item);
|
||||
|
@ -108,12 +108,11 @@ namespace SourceMod
|
||||
{
|
||||
ItemDrawInfo(const char *DISPLAY=NULL, unsigned int STYLE=ITEMDRAW_DEFAULT,
|
||||
unsigned int FLAGS=0, const char *HELPTEXT=NULL)
|
||||
: display(DISPLAY), style(STYLE), access(FLAGS)
|
||||
: display(DISPLAY), style(STYLE)
|
||||
{
|
||||
}
|
||||
const char *display; /**< Display text (NULL for none) */
|
||||
unsigned int style; /**< ITEMDRAW style flags */
|
||||
unsigned int access; /**< Access flags required to see */
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user