abraker95 / tanks

2D arcade top-view shooting game
1 stars 0 forks source link

Events Get Cleared Before Needed #59

Closed ghost closed 9 years ago

ghost commented 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.