Fix creation of invalid wall tiles by sign tool
This commit is contained in:
parent
2553dac942
commit
f04577598b
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user