mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
fix 1px brush replace mode
This commit is contained in:
10
src/powder.c
10
src/powder.c
@@ -6130,7 +6130,15 @@ int create_parts(int x, int y, int rx, int ry, int c)
|
||||
{
|
||||
if(rx==0&&ry==0)
|
||||
{
|
||||
create_part(-2, x, y, c);
|
||||
if((pmap[y][x]&0xFF)==SLALT || SLALT==0)
|
||||
{
|
||||
if((pmap[y][x]))
|
||||
{
|
||||
delete_part(x, y);
|
||||
if(c!=0)
|
||||
create_part(-2, x, y, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
for(j=-ry; j<=ry; j++)
|
||||
|
Reference in New Issue
Block a user