Client - Allowed menu to cursor onto expensive items (not selectable)
authorJohn Hodge <[email protected]>
Fri, 22 Feb 2013 02:03:04 +0000 (10:03 +0800)
committerJohn Hodge <[email protected]>
Fri, 22 Feb 2013 02:03:04 +0000 (10:03 +0800)
src/client/menu.c

index 8e57b06..f30e480 100644 (file)
@@ -360,8 +360,8 @@ int ShowItemAt(int Row, int Col, int Width, int Index, int bHilighted)
        }
        
        // If the item isn't availiable for sale, return -1 (so it's skipped)
-       if( status || (price > giUserBalance && gbDisallowSelectWithoutBalance) )
-               Index = -1;
+       if( status > 0 || (price > giUserBalance && gbDisallowSelectWithoutBalance) )
+               Index = -2;
        
        return Index;
 }

UCC git Repository :: git.ucc.asn.au