brain-workshop / brainworkshop

Continued development of the popular brainworkshop game
GNU General Public License v2.0
235 stars 39 forks source link

Fix NameError #21

Closed mt-caret closed 4 years ago

mt-caret commented 4 years ago

When I tried to run this with Xmonad, I got the following error:

Traceback (most recent call last):
  File "./result/bin/brainworkshop", line 4765, in <module>
    scale_brain(scale_to_width(1))
  File "./result/bin/brainworkshop", line 4760, in scale_brain
    pyglet.clock.unschedule(shrink_brain)
NameError: name 'shrink_brain' is not defined

This commit fixes the issue (while I'm not familiar with the codebase or pyglet at all, I'm assuming that shrink_brain was meant to be scale_brain).

xantares commented 4 years ago

yes, it looks like this functin was renamed, thanks