forked from brmlab/brmbar-github
fix sign
This commit is contained in:
parent
9d4739bae0
commit
a26d1eeb95
3 changed files with 56 additions and 53 deletions
2
brmbar.c
2
brmbar.c
|
@ -102,7 +102,7 @@ void read_input()
|
|||
last_item = -2;
|
||||
printf("\n%s\n\n", items[i].name);
|
||||
} else
|
||||
if (items[i].price > 0) {
|
||||
if (items[i].price < 0) {
|
||||
last_item = i;
|
||||
printf("\n%s %d Kc\n\n", items[i].name, abs(items[i].price));
|
||||
} else
|
||||
|
|
|
@ -18,3 +18,6 @@ RST;RESET credit;30000
|
|||
5449000000286;Coca-Cola 2L;-50
|
||||
8801043263108;Shin Cup Noodle Soup;-25
|
||||
8934646229308;Lucky Beef Flavor;-10
|
||||
8594033171902;Big Shock tycinka;-15
|
||||
85909311;Margot tycinka;-15
|
||||
8584004041198;Tatranky;-8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue