Skip to content

Commit ca262c8

Browse files
committed
Fix replacing note with custom instrument not triggering compatibility check
Fixes #88
1 parent 67b47eb commit ca262c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/change_block_manual/change_block_manual.gml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ if (ins.loaded) play_sound(ins, key, vel, pan, pit)
2222

2323
history_set(h_changeblock, xx, yy, ins, key, vel, pan, pit, pins, pkey, pvel, ppan, ppit)
2424
changed = 1
25+
26+
if (!pins.user && ins.user) block_custom += 1
27+
if (pins.user && !ins.user) block_custom -= 1
2528
if (pkey >= 33 && pkey <= 57 && (key < 33 || key > 57)) block_outside += 1
2629
if (key >= 33 && key <= 57 && (pkey < 33 || pkey > 57)) block_outside -= 1
2730
if (ppit = 0 && pit != 0) block_pitched += 1

0 commit comments

Comments
 (0)