git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Client - Allowed menu to cursor onto expensive items (not selectable)
[tpg/opendispense2.git]
/
src
/
client
/
menu.c
diff --git
a/src/client/menu.c
b/src/client/menu.c
index
8e57b06
..
f30e480
100644
(file)
--- a/
src/client/menu.c
+++ b/
src/client/menu.c
@@
-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 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;
}
return Index;
}
UCC
git Repository :: git.ucc.asn.au