Skip to content

Commit

Permalink
event: Fix minor oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
hesiod committed Sep 26, 2018
1 parent 6ad0473 commit b6c3313
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/events/EventSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ void EventSystem::postEvents(const std::vector<TimedEvent>& events)
void EventSystem::update(double deltaTime, double timeStamp)
{
std::lock_guard<std::mutex> queueGuard{ queueLock };
const double now = glfwGetTime();
while (!eventQueue.empty() && eventQueue.top().is_due_at(now))
{
while (!eventQueue.empty() && eventQueue.top().is_due_at(timeStamp)) {
processEvent(eventQueue.top().get());
eventQueue.pop();
}
Expand Down

0 comments on commit b6c3313

Please sign in to comment.