diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-10-02 17:19:07 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-10-02 17:19:07 +0000 |
commit | 2b2e3943f57f9ab62db769d0962ae49f17655293 (patch) | |
tree | fa15ba0594d967110cee43afa43dbbfdb7b236b5 /src/graphic/graphic.cpp | |
parent | ea9055acb5f76e73cec3c841a17ede059fa092a7 (diff) | |
download | mana-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.cpp | 5 |
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(); } |