fixed amb1468 - renderer marked disabled items as valid selections
authorDavid Anderson <dvander@alliedmods.net>
Fri Feb 22 01:56:22 2008 +0000 (2008-02-22)
changeset 1873ab97c6372375
parent 1872 c53001c1df36
child 1874 6bd98dba0f2a
fixed amb1468 - renderer marked disabled items as valid selections
core/MenuManager.cpp
     1.1 --- a/core/MenuManager.cpp	Thu Feb 21 01:03:35 2008 +0000
     1.2 +++ b/core/MenuManager.cpp	Fri Feb 22 01:56:22 2008 +0000
     1.3 @@ -448,7 +448,14 @@
     1.4  			if (position != 0)
     1.5  			{
     1.6  				slots[position].item = drawItems[i].position;
     1.7 -				slots[position].type = ItemSel_Item;
     1.8 +				if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
     1.9 +				{
    1.10 +					slots[position].type = ItemSel_None;
    1.11 +				}
    1.12 +				else
    1.13 +				{
    1.14 +					slots[position].type = ItemSel_Item;
    1.15 +				}
    1.16  			}
    1.17  		}
    1.18  	}
    1.19 @@ -469,7 +476,14 @@
    1.20  			if (position != 0)
    1.21  			{
    1.22  				slots[position].item = drawItems[i].position;
    1.23 -				slots[position].type = ItemSel_Item;
    1.24 +				if ((dr.style & ITEMDRAW_DISABLED) == ITEMDRAW_DISABLED)
    1.25 +				{
    1.26 +					slots[position].type = ItemSel_None;
    1.27 +				}
    1.28 +				else
    1.29 +				{
    1.30 +					slots[position].type = ItemSel_Item;
    1.31 +				}
    1.32  			}
    1.33  		}
    1.34  	}