Mercurial > parpg-core
comparison src/parpg/mode.py @ 54:5e27c24acaef
Fixed bug that the game crashes in the main menu after a few seconds.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 04 Sep 2011 16:37:37 +0200 |
parents | 8b3890f17f94 |
children | 96af64cf3b81 |
comparison
equal
deleted
inserted
replaced
53:7c6e2e39b545 | 54:5e27c24acaef |
---|---|
7 def __init__(self): | 7 def __init__(self): |
8 self.modes = [] | 8 self.modes = [] |
9 | 9 |
10 def _pump(self): | 10 def _pump(self): |
11 if self.current_mode: | 11 if self.current_mode: |
12 self.current_mode.pump(self.engine.getTimeManager().getTimeDelta() / 1000.0) | 12 self.current_mode.pump(self.current_mode.engine.getTimeManager().getTimeDelta() / 1000.0) |
13 | 13 |
14 class FifeMode(BaseMode): | 14 class FifeMode(BaseMode): |
15 | 15 |
16 def __init__(self): | 16 def __init__(self): |
17 BaseMode.__init__(self) | 17 BaseMode.__init__(self) |