From f04577598b48c9e294b102395afc94023df8c92c Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Thu, 29 Dec 2011 06:15:55 +0800 Subject: [PATCH] Fix creation of invalid wall tiles by sign tool --- src/main.c | 3 +-- src/powder.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 74074cec4..d021e1927 100644 --- a/src/main.c +++ b/src/main.c @@ -3109,8 +3109,7 @@ int main(int argc, char *argv[]) if (!bq) add_sign_ui(vid_buf, x, y); } - - if (c==PT_FIGH) + else if (c==PT_FIGH) { if (!bq) create_part(-1, x, y, PT_FIGH); diff --git a/src/powder.c b/src/powder.c index 4acd33404..ca629cf5f 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2940,7 +2940,7 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags) { if (wall==r) { - if (c == SPC_AIR || c == SPC_HEAT || c == SPC_COOL || c == SPC_VACUUM || c == SPC_PGRV || c == SPC_NGRV) + if (c == SPC_AIR || c == SPC_HEAT || c == SPC_COOL || c == SPC_VACUUM || c == SPC_PGRV || c == SPC_NGRV || wall == WL_SIGN) break; if (wall == WL_ERASE) b = 0;