From: John Hodge Date: Sat, 9 Apr 2011 03:45:17 +0000 (+0800) Subject: Fixed bug with item selection (>= instead of > for price check) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7d365dad3ca15281ead0d97d37d71fbba0e5d09f;p=tpg%2Fopendispense2.git Fixed bug with item selection (>= instead of > for price check) --- diff --git a/src/client/main.c b/src/client/main.c index 5601c08..2c2fb1a 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -1125,7 +1125,7 @@ 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 ) + if( status || price > giUserBalance ) Index = -1; return Index; @@ -2214,7 +2214,7 @@ char *ReadLine(int Socket) len = recv(Socket, buf+bufPos, BUFSIZ-1-bufPos, 0); if( len < 0 ) { free(ret); - return strdup("499 Client Connection Error\n"); + return strdup("599 Client Connection Error\n"); } } buf[bufPos+len] = '\0';