OSDN Git Service

[Fix] store.c の整形ミスを修正 / Resolved mistakes in store.c
authorHourier <hourier@users.sourceforge.jp>
Sun, 24 May 2020 06:34:54 +0000 (15:34 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 24 May 2020 06:34:54 +0000 (15:34 +0900)
src/store/store.c

index f7b7d1c..5bd9c4d 100644 (file)
@@ -851,6 +851,7 @@ static int get_haggle(concptr pmt, s32b *poffer, PRICE price, int final)
 
                        msg_print(_("値がおかしいです。", "Invalid response."));
                        msg_print(NULL);
+                       continue;
                }
 
                s32b i = atol(p);
@@ -1022,6 +1023,8 @@ static bool purchase_haggle(player_type *player_ptr, object_type *o_ptr, s32b *p
                        *price = offer;
                }
 
+               if (flag) continue;
+
                last_offer = offer;
                allow_inc = TRUE;
                prt("", 1, 0);