@@ -490,16 +490,18 @@ for (a = rangestart; a <= rangeend; a ++) {
490490entries = rangeend - rangestart
491491for (c = 0 ; c < sch_exp_chords; c ++) { // Corrections hack
492492 for (a = 0 ; a <= entries; a ++) {
493- if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a], 1 ) = 25 ) {
494- schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a], 2 , 0 )
495- }
496- if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a], 1 ) = sch_exp_circuit_block) {
497- noteblockx[c, a] -= 1
498- }
499- if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 ) = sch_exp_circuit_block) || (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 ) = 0 ) {
500- if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 0 ) != sch_exp_circuit_block) {
501- schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 , 0 )
502- schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 0 , 0 )
493+ if nblockkey[z, a] != 0 {
494+ if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a], 1 ) = 25 ) {
495+ schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a], 2 , 0 )
496+ }
497+ if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a], 1 ) = sch_exp_circuit_block) {
498+ noteblockx[c, a] -= 1
499+ }
500+ if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 ) = sch_exp_circuit_block) || (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 ) = 0 ) {
501+ if (schematic_block_get (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 0 ) != sch_exp_circuit_block) {
502+ schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 1 , 0 )
503+ schematic_block_set (mySchematic, noteblockz[c, a], noteblockx[c, a] - 1 , 0 , 0 )
504+ }
503505 }
504506 }
505507 }
0 commit comments