Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hesiod committed Sep 26, 2018
2 parents 15326b5 + 4a0a03f commit d65045a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ after_build:
- ps: cp -r -v shaders package
- ps: cp -r -v sound package
- ps: cp -r -v res package
- ps: cp C:\deps\sfml\SFML-$env:SFML_VER\bin\openal32.dll package

artifacts:
- path: package
Expand Down
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 d65045a

Please sign in to comment.