Skip to content

Commit

Permalink
Fixed sounds off-by-1 (Issue #120).
Browse files Browse the repository at this point in the history
  • Loading branch information
MTrop committed Nov 8, 2024
1 parent 57b2a02 commit 09d1d4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,7 @@ protected void writeCommonPatchBody(Writer writer) throws IOException
continue;
if (!sound.equals(original) || sound.hasCustomProperties())
{
// Sound ids in DeHackEd are off by 1
writer.append("Sound ").append(String.valueOf(i - 1)).append(CRLF);
writer.append("Sound ").append(String.valueOf(i)).append(CRLF);
sound.writeObject(writer, original, getSupportedFeatureLevel());
writer.append(CRLF);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/docs/changelogs/CHANGELOG-decohack.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DECOHack
### Changed for 0.34.0

* `Fixed` Any clause that sets intervals (freeing things, protecting states) may create a condition that causes an endless loop. (Issue. #119)
* `Fixed` Sound entries were off by 1 due to a misunderstanding of what index sound entries started at. (Issue #120)


### Changed for 0.33.0
Expand Down

0 comments on commit 09d1d4a

Please sign in to comment.