Client - Allowed menu to cursor onto expensive items (not selectable)
[tpg/opendispense2.git] / 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