From e261f3880a4dc501639a46c27c37680e46e6f50d Mon Sep 17 00:00:00 2001 From: nothere Date: Tue, 27 Jan 2004 02:13:50 +0000 Subject: [PATCH] =?utf8?q?add=5Ftext()=E3=81=A7=E8=8B=B1=E5=8D=98=E8=AA=9E?= =?utf8?q?=E3=81=8C=E7=B9=8B=E3=81=8C=E3=82=89=E3=81=AA=E3=81=84=E3=82=88?= =?utf8?q?=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B=E5=87=A6=E7=90=86=E3=81=8Cv?= =?utf8?q?ault=E3=83=9E=E3=83=83=E3=83=97=E3=83=87=E3=83=BC=E3=82=BF?= =?utf8?q?=E3=81=AB=E3=82=82=E5=BD=B1=20=E9=9F=BF=E3=81=97,=20=E5=B4=A9?= =?utf8?q?=E3=82=8C=E3=81=9Fvault=E3=81=8C=E7=94=9F=E6=88=90=E3=81=95?= =?utf8?q?=E3=82=8C=E3=82=8B=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3.?= =?utf8?q?=20=E3=81=AA=E3=81=8Alib/data/v=5Finfo=5Fj.raw=E3=81=AF=20?= =?utf8?q?=E8=87=AA=E5=8B=95=E6=9B=B4=E6=96=B0=E3=81=95=E3=82=8C=E3=81=AA?= =?utf8?q?=E3=81=84=E3=81=AE=E3=81=A7,=20=E6=89=8B=E5=8B=95=E3=81=A7?= =?utf8?q?=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=E5=BF=85=E8=A6=81=E3=81=8C?= =?utf8?q?=E3=81=82=E3=82=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/init1.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/init1.c b/src/init1.c index d8d3a091a..b137c1e0f 100644 --- a/src/init1.c +++ b/src/init1.c @@ -857,7 +857,7 @@ static cptr d_info_flags1[] = * Returns FALSE when there isn't enough space available to store * the text. */ -static bool add_text(u32b *offset, header *head, cptr buf) +static bool add_text(u32b *offset, header *head, cptr buf, bool normal_text) { /* Hack -- Verify space */ if (head->text_size + strlen(buf) + 8 > FAKE_TEXT_SIZE) @@ -867,11 +867,11 @@ static bool add_text(u32b *offset, header *head, cptr buf) if (*offset == 0) { /* Advance and save the text index */ - *offset = ++head->text_size; + *offset = ++head->text_size; } /* Additional text */ - else + else if (normal_text) { /* * If neither the end of the last line nor @@ -1136,7 +1136,7 @@ errr parse_v_info(char *buf, header *head) s = buf+2; /* Store the text */ - if (!add_text(&v_ptr->text, head, s)) return (7); + if (!add_text(&v_ptr->text, head, s, FALSE)) return (7); } /* Process 'X' for "Extra info" (one line only) */ @@ -1949,7 +1949,7 @@ errr parse_k_info(char *buf, header *head) #endif /* Store the text */ - if (!add_text(&k_ptr->text, head, s)) return (7); + if (!add_text(&k_ptr->text, head, s, TRUE)) return (7); } /* Process 'G' for "Graphics" (one line only) */ @@ -2217,7 +2217,7 @@ errr parse_a_info(char *buf, header *head) #endif /* Store the text */ - if (!add_text(&a_ptr->text, head, s)) return (7); + if (!add_text(&a_ptr->text, head, s, TRUE)) return (7); } @@ -2424,7 +2424,7 @@ errr parse_e_info(char *buf, header *head) s = buf+2; /* Store the text */ - if (!add_text(&e_ptr->text, head, s)) return (7); + if (!add_text(&e_ptr->text, head, s, TRUE)) return (7); } #endif @@ -2664,7 +2664,7 @@ errr parse_r_info(char *buf, header *head) #endif /* Store the text */ - if (!add_text(&r_ptr->text, head, s)) return (7); + if (!add_text(&r_ptr->text, head, s, TRUE)) return (7); } /* Process 'G' for "Graphics" (one line only) */ @@ -3018,7 +3018,7 @@ errr parse_d_info(char *buf, header *head) #endif /* Store the text */ - if (!add_text(&d_ptr->text, head, s)) return (7); + if (!add_text(&d_ptr->text, head, s, TRUE)) return (7); } /* Process 'W' for "More Info" (one line only) */ -- 2.11.0