Skip to content

Commit

Permalink
Remove some unneeded code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsitton committed Mar 25, 2013
1 parent 033d453 commit 1b8c9fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/GameEngine.py
Expand Up @@ -189,7 +189,7 @@ def __init__(self, config = None):
self.fps = fps
self.running = True
self.clock = pygame.time.Clock()
self.task = TaskEngine(config, self)
self.task = TaskEngine(self)

# Compatiblity task management
self.addTask = self.task.addTask
Expand Down
5 changes: 1 addition & 4 deletions src/TaskEngine.py
Expand Up @@ -19,9 +19,8 @@
#####################################################################

class TaskEngine(object):
def __init__(self, config, engine):
def __init__(self, engine):

self.config = config
self.engine = engine

self.clock = self.engine.clock
Expand All @@ -32,7 +31,6 @@ def __init__(self, config, engine):
self.currentTask = None

self.deltaTime = 25 # Time between synced task updates. 25 ms
self.time = 0
self.timeAccumulator = 0


Expand Down Expand Up @@ -99,7 +97,6 @@ def run(self):
self.runTask(taskData['task'], tick=self.deltaTime)

self.timeAccumulator -= self.deltaTime
self.time += self.deltaTime

# Unsynced tasks
for taskData in self.tasks:
Expand Down

0 comments on commit 1b8c9fc

Please sign in to comment.