mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 03:09:53 +02:00
fix 1px brush replace mode
This commit is contained in:
@@ -6130,8 +6130,16 @@ int create_parts(int x, int y, int rx, int ry, int c)
|
|||||||
{
|
{
|
||||||
if(rx==0&&ry==0)
|
if(rx==0&&ry==0)
|
||||||
{
|
{
|
||||||
|
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);
|
create_part(-2, x, y, c);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
for(j=-ry; j<=ry; j++)
|
for(j=-ry; j<=ry; j++)
|
||||||
for(i=-rx; i<=rx; i++)
|
for(i=-rx; i<=rx; i++)
|
||||||
|
Reference in New Issue
Block a user