Make PIPE reset (ready to generate pattern) when ctype is cleared and life is 0
This commit is contained in:
parent
93dc4cc477
commit
05fbb92420
@ -191,14 +191,16 @@ int update_PIPE(UPDATE_FUNC_ARGS) {
|
|||||||
// make a border
|
// make a border
|
||||||
for (rx=-2; rx<3; rx++)
|
for (rx=-2; rx<3; rx++)
|
||||||
for (ry=-2; ry<3; ry++)
|
for (ry=-2; ry<3; ry++)
|
||||||
|
{
|
||||||
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
||||||
{
|
{
|
||||||
r = pmap[y+ry][x+rx];
|
r = pmap[y+ry][x+rx];
|
||||||
if (!r)
|
if (!r)
|
||||||
create_part(-1,x+rx,y+ry,PT_BRCK);//BRCK border, people didn't like DMND
|
create_part(-1,x+rx,y+ry,PT_BRCK);//BRCK border, people didn't like DMND
|
||||||
}
|
}
|
||||||
if (parts[i].life==1)
|
}
|
||||||
parts[i].ctype = 1;
|
if (parts[i].life<=1)
|
||||||
|
parts[i].ctype = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (parts[i].ctype==1)//wait for empty space before starting to generate automatic pipe pattern
|
else if (parts[i].ctype==1)//wait for empty space before starting to generate automatic pipe pattern
|
||||||
|
Loading…
Reference in New Issue
Block a user