mirror of
https://github.com/a2-4am/wozardry.git
synced 2024-06-02 14:41:30 +00:00
Compare commits
2 Commits
b07e018310
...
03e7bdc116
Author | SHA1 | Date | |
---|---|---|---|
|
03e7bdc116 | ||
|
8607aacc15 |
|
@ -182,8 +182,8 @@ class Track(RawTrack):
|
||||||
n += b << bit_index
|
n += b << bit_index
|
||||||
yield n
|
yield n
|
||||||
|
|
||||||
def rewind(self, bit_count):
|
def rewind(self, bit_count=1):
|
||||||
self.bit_index -= 1
|
self.bit_index -= bit_count
|
||||||
if self.bit_index < 0:
|
if self.bit_index < 0:
|
||||||
self.bit_index = self.bit_count - 1
|
self.bit_index = self.bit_count - 1
|
||||||
self.revolutions -= 1
|
self.revolutions -= 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user