From 7d365dad3ca15281ead0d97d37d71fbba0e5d09f Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@heathred.ucc.asn.au>
Date: Sat, 9 Apr 2011 11:45:17 +0800
Subject: [PATCH] Fixed bug with item selection (>= instead of > for price
 check)

---
 src/client/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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';
-- 
GitLab