Fix creation of invalid wall tiles by sign tool

This commit is contained in:
jacksonmj 2011-12-29 06:15:55 +08:00 committed by Simon Robertshaw
parent 2553dac942
commit f04577598b
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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;