Crash-bug in Bouncy

Some players complained about a KeyError exception, at "del self.shape_to_actor_map[s.contents.id]" in the destroyActor fuction. If you get this error (I havent been able to reproduce it myself) you can fix it with a small try-except-block. Replace line 248 in ActorManager.py in the following way:

before:
            del self.shape_to_actor_map[s.contents.id]
after:
            try: del self.shape_to_actor_map[s.contents.id]
            except: pass

(log in to comment)

Comments

I almost forgot: Big thanks to simone and elias on #pyweek for pointing out this error and the not-so-clear readme text on how to run Bouncy (compile chipmunk) on linux!
I forgot to mention i have python 2.5 on linux. i compiled the chipmunk library from the zip.