Unified · Split
| @@ -12,7 +12,7 @@ · 11 unmodified lines | |||
| 12 | #endif | 12 | #endif |
| 13 | #include "ft2_replayer.h" | 13 | #include "ft2_replayer.h" |
| 14 | 14 | ||
| 15 | #define PROG_VER_STR "1.54" | 15 | #define PROG_VER_STR "1.55" |
| 16 | 16 | ||
| 17 | // do NOT change these! It will only mess things up... | 17 | // do NOT change these! It will only mess things up... |
| 18 | 18 | ||
| @@ -3127,11 +3127,20 @@ void resetReplayerState(void) · 3126 unmodified lines | |||
| 3127 | song.pBreakPos = 0; | 3127 | song.pBreakPos = 0; |
| 3128 | song.pBreakFlag = false; | 3128 | song.pBreakFlag = false; |
| 3129 | 3129 | ||
| 3130 | // reset pattern loops (E6x) | ||
| 3131 | channel_t *ch = channel; | ||
| 3132 | for (int32_t i = 0; i < song.numChannels; i++, ch++) | ||
| 3133 | { | ||
| 3134 | ch->jumpToRow = 0; | ||
| 3135 | ch->patLoopCounter = 0; | ||
| 3136 | } | ||
| 3137 | |||
| 3138 | // reset global volume (if song was playing) | ||
| 3130 | if (songPlaying) | 3139 | if (songPlaying) |
| 3131 | { | 3140 | { |
| 3132 | song.globalVolume = 64; | 3141 | song.globalVolume = 64; |
| 3133 | 3142 | ||
| 3134 | channel_t *ch = channel; | 3143 | ch = channel; |
| 3135 | for (int32_t i = 0; i < song.numChannels; i++, ch++) | 3144 | for (int32_t i = 0; i < song.numChannels; i++, ch++) |
| 3136 | ch->status |= IS_Vol; | 3145 | ch->status |= IS_Vol; |
| 3137 | } | 3146 | } |