Fix ignition issues when block launch time is less than 0.
This commit is contained in:
parent
a0d3bb3135
commit
9da25c010a
BIN
Meteo_Engine.jar
BIN
Meteo_Engine.jar
Binary file not shown.
@ -157,7 +157,7 @@ public class Board {
|
||||
b.y-=minY;
|
||||
}
|
||||
blockClumpAddList.add(
|
||||
new BlockClump(newClumpBlocks, blocks.x, blocks.y+minY*block_height, launch_power, width, 120)
|
||||
new BlockClump(newClumpBlocks, blocks.x, blocks.y+minY*block_height+4, launch_power, width, 120)
|
||||
);
|
||||
}
|
||||
return markedBlocks.size()>0;
|
||||
@ -216,12 +216,14 @@ public class Board {
|
||||
blocks.launched--;
|
||||
} else
|
||||
if (blocks.launched==0) {
|
||||
SplitBlockClump(blocks);
|
||||
}
|
||||
if (blocks.launched<=0) {
|
||||
for (Block b : blocks.getBlocks()) {
|
||||
if (b.state==BlockState.IGNITED) {
|
||||
b.state=STARTINGSTATES[(int)(Meteo.r.nextInt(3))];
|
||||
}
|
||||
}
|
||||
SplitBlockClump(blocks);
|
||||
}
|
||||
}
|
||||
private void SplitBlockClump(BlockClump blocks) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user