Skip to content

Commit

Permalink
Fixed: Allow processing sharp events when frametime is paused
Browse files Browse the repository at this point in the history
There are no sharp ticks when frame time does not advance, so
process all sharp events immediately.
  • Loading branch information
skyjake committed Jan 27, 2012
1 parent 2d007e9 commit 6563545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doomsday/engine/portable/include/dd_loop.h
Expand Up @@ -46,5 +46,6 @@ void DD_EndFrame(void);
float DD_GetFrameRate(void);
void DD_ResetTimer(void);
boolean DD_IsSharpTick(void);
boolean DD_IsFrameTimeAdvancing(void);

#endif
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/dd_input.c
Expand Up @@ -982,7 +982,7 @@ void DD_ProcessEvents(timespan_t ticLength)
void DD_ProcessSharpEvents(timespan_t ticLength)
{
// Sharp ticks may have some events queued on the side.
if(DD_IsSharpTick())
if(DD_IsSharpTick() || !DD_IsFrameTimeAdvancing())
{
dispatchEvents(&sharpQueue, ticLength);
}
Expand Down

0 comments on commit 6563545

Please sign in to comment.