while( event.type == SDL_MOUSEBUTTONDOWN )
that causes an infinite loop as event never changes within the function.
You are also initializing the counter to 0 each time the function is called (Which is probably not what you want to do)
Posted 21 April 2012 - 01:54 PM
Posted 21 April 2012 - 01:53 PM