- Backend update from Raze.
This is mainly code cleanup from setting the compiler to a stricter warning level.
This commit is contained in:
parent
6aea7694bc
commit
1c517d19fa
102 changed files with 493 additions and 590 deletions
|
|
@ -340,6 +340,10 @@ static void DoParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc, bool &s
|
|||
{
|
||||
desc->mCenter = true;
|
||||
}
|
||||
else if (sc.Compare("Selecteditem"))
|
||||
{
|
||||
desc->mSelectedItem = desc->mItems.Size() - 1;
|
||||
}
|
||||
else if (sc.Compare("animatedtransition"))
|
||||
{
|
||||
desc->mAnimatedTransition = true;
|
||||
|
|
@ -563,8 +567,8 @@ static void DoParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc, bool &s
|
|||
// NB: index has been incremented, so we're not affecting the newly inserted item here.
|
||||
for (unsigned int i = insertIndex; i < desc->mItems.Size(); i++)
|
||||
{
|
||||
auto item = desc->mItems[i];
|
||||
if (item->GetClass()->IsDescendantOf("ListMenuItemSelectable"))
|
||||
auto litem = desc->mItems[i];
|
||||
if (litem->GetClass()->IsDescendantOf("ListMenuItemSelectable"))
|
||||
{
|
||||
desc->mItems[i]->mYpos += desc->mLinespacing;
|
||||
}
|
||||
|
|
@ -660,9 +664,9 @@ static bool FindMatchingItem(DMenuItemBase *desc)
|
|||
MenuDescriptorList::Pair *pair;
|
||||
while (it.NextPair(pair))
|
||||
{
|
||||
for (auto it : pair->Value->mItems)
|
||||
for (auto item : pair->Value->mItems)
|
||||
{
|
||||
if (it->mAction == name && GetGroup(it) == grp) return true;
|
||||
if (item->mAction == name && GetGroup(item) == grp) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue