added 'resetClock' event message

This commit is contained in:
Darren Ranalli 2001-09-20 04:10:17 +00:00
parent 85e3e867b4
commit 2d76f5175a

View File

@ -482,8 +482,11 @@ class TaskManager:
# Set the clock to have last frame's time in case we were
# Paused at the prompt for a long time
t = globalClock.getFrameTime()
timeDelta = t - globalClock.getRealTime()
globalClock.setRealTime(t)
messenger.send("resetClock", [timeDelta])
if self.resumeFunc != None:
self.resumeFunc()