mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11:57 -04:00
Fixup: tick increment and decrement.
This commit is contained in:
parent
924c59f7b1
commit
88bf6d1dff
|
@ -124,12 +124,12 @@ class Applet(pyglet.window.Window):
|
|||
return toggler
|
||||
|
||||
def increment_tick():
|
||||
index = self.ticks.index(self.tick) + 1
|
||||
index = self.ticks.index(self.world.tick_length) + 1
|
||||
if index < len(self.ticks):
|
||||
self.world.tick_length = self.ticks[index]
|
||||
|
||||
def decrement_tick():
|
||||
index = self.ticks.index(self.tick) - 1
|
||||
index = self.ticks.index(self.world.tick_length) - 1
|
||||
if index >= 0:
|
||||
self.world.tick_length = self.ticks[index]
|
||||
|
||||
|
|
Loading…
Reference in a new issue