Closed ghost closed 9 years ago
I don't really understand where is the problem. I tested once more and the events seem to be cleared at the right moment.
I fixed the pause function ( if that was the problem ):
This piece of code:
bool updateGameEntities = true; if(menuEvent.size() >= 1) updateGameEntities = !menuEvent[0].menuVisible; if(updateGameEntities) {
It basically pauses the game for just one frame when the menu becomes visible. I'm sure it's not what you wanted. I fixed this bit in the last commit.
If there is still a problem reopen this issue.
I don't really understand where is the problem. I tested once more and the events seem to be cleared at the right moment.
I fixed the pause function ( if that was the problem ):
This piece of code:
It basically pauses the game for just one frame when the menu becomes visible. I'm sure it's not what you wanted. I fixed this bit in the last commit.
If there is still a problem reopen this issue.