summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-10-02 17:19:07 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-10-02 17:19:07 +0000
commit2b2e3943f57f9ab62db769d0962ae49f17655293 (patch)
treefa15ba0594d967110cee43afa43dbbfdb7b236b5 /src/graphic/graphic.cpp
parentea9055acb5f76e73cec3c841a17ede059fa092a7 (diff)
downloadmana-2b2e3943f57f9ab62db769d0962ae49f17655293.tar.gz
mana-2b2e3943f57f9ab62db769d0962ae49f17655293.tar.bz2
mana-2b2e3943f57f9ab62db769d0962ae49f17655293.tar.xz
mana-2b2e3943f57f9ab62db769d0962ae49f17655293.zip
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 4840e0a9..bda6a7dc 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -313,6 +313,10 @@ void do_graphic(void) {
break;
case 4:
sell_dialog[3].d1 = get_item_quantity(sell_dialog[4].d1);
+ /*if(sell_dialog[3].d2>sell_dialog[3].d1) {
+ sell_dialog[3].d2 = sell_dialog[3].d1;
+ sprintf((char *)sell_dialog[5].dp, "%i %i", sell_dialog[3].d1, sell_dialog[3].d2);
+ }*/
dialog_message(sell_dialog, MSG_DRAW, 0, 0);
if(!gui_update(sell_player)) {
show_npc_dialog = shutdown_dialog(sell_player);
@@ -325,6 +329,7 @@ void do_graphic(void) {
WFIFOSET(8);
}
show_npc_dialog = 0;
+ sell_dialog[3].d2 = 0;
sell_player = init_dialog(sell_dialog, -1);
close_shop();
}