From 2b2e3943f57f9ab62db769d0962ae49f17655293 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 2 Oct 2004 17:19:07 +0000 Subject: *** empty log message *** --- src/graphic/graphic.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphic/graphic.cpp') 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(); } -- cgit v1.2.3-70-g09d2