aboutsummaryrefslogtreecommitdiff
path: root/trade.c
diff options
context:
space:
mode:
authorNathan Vance <nathav63@gmail.com>2015-03-19 17:47:35 -0400
committerNathan Vance <nathav63@gmail.com>2015-03-19 17:47:35 -0400
commit6946460b7752ddd9b4f77ff4d28dbff9bda247b1 (patch)
tree8b1f0cb15e4163f2dd77deed3718dec50b908b2e /trade.c
parentFixed bug causing trade to print incorrectly (diff)
download7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.tar.gz
7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.tar.bz2
7w-6946460b7752ddd9b4f77ff4d28dbff9bda247b1.zip
ui and trading bug fixes
Diffstat (limited to 'trade.c')
-rw-r--r--trade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trade.c b/trade.c
index 4bfb625..002dcac 100644
--- a/trade.c
+++ b/trade.c
@@ -94,7 +94,7 @@ void trade_print(int x, int y, int player, int cursorx, int cursory)
y = io_printtext(x, y, width, s);
int i;
for(i = 0; i < GOLD+1; i++) {
- sprintf(s, "%-7s %d %c| %-7s %d %c", getname(i), west[i], (cursorx == 1 && cursory == i)? '*' : ' ', getname(i), east[i], (cursorx == 0 && cursory == i)? '*' : ' ');
+ sprintf(s, "%-7s%2d %c| %-7s %d %c", getname(i), west[i], (cursorx == 1 && cursory == i)? '*' : ' ', getname(i), east[i], (cursorx == 0 && cursory == i)? '*' : ' ');
y = io_printtext(x, y, width, s);
if(tradebuffer[1][i])
io_printcolor(x+10, y-1, 31, itoa(west[i]));
bgstack15