]> git.cworth.org Git - scherzo/commit
Fix bug with stuck notes when challenge would switch staves.
authorCarl Worth <cworth@cworth.org>
Mon, 26 Sep 2011 16:42:20 +0000 (09:42 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 26 Sep 2011 16:42:20 +0000 (09:42 -0700)
commit3f6a9cdbf572c83c323f40cc66e301bdf128f076
tree4636f49811ed5f94ddbcc1010f3d94a029d51216
parent16d07286a5344861bd26ad97e97612d3806d1da7
Fix bug with stuck notes when challenge would switch staves.

In this case we were failing to remove a note beacuse we were looking
at the new staff (where the new challenge is) rather than the old staff
where the note was originally created.

Fix this by having each note remember the staff it's created on. This
also impacts the API a bit (no longer need a staff argument to
remove_note, so drop the "_staff" portion of the name from both
add_note and remove_note).
scherzo.c
score.c
score.h