git.ucc.asn.au
/
tpg
/
opendispense2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b161c
)
Fixed bug with item selection (>= instead of > for price check)
author
John Hodge
<
[email protected]
>
Sat, 9 Apr 2011 03:45:17 +0000
(11:45 +0800)
committer
John Hodge
<
[email protected]
>
Sat, 9 Apr 2011 03:45:17 +0000
(11:45 +0800)
src/client/main.c
patch
|
blob
|
history
diff --git
a/src/client/main.c
b/src/client/main.c
index
5601c08
..
2c2fb1a
100644
(file)
--- 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("
4
99 Client Connection Error\n");
+ return strdup("
5
99 Client Connection Error\n");
}
}
buf[bufPos+len] = '\0';
UCC
git Repository :: git.ucc.asn.au