Jump to content


Photo

Cameleon 2010


1 reply to this topic

#1 GuZzO

GuZzO

    Member

  • Member
  • PipPip
  • 9 posts

Posted 27 September 2010 - 03:59 PM

I'm porting an old game for GP2X F200 only (sorry for the F100 owners...)

I have an issue to check and exit when game is over. I provide the sources and compiled game in the following archive:

http://dl.free.fr/dtE9Meylf



During the game, i check if players are able to play. If no, i display the score and then exit. Actually, that's what i would like to do, not what's happen....

Line 347, there's a process to display score and exit game (called "Display_results();"). If this process is commented, everything is fine, the program always works and detects when game is over.
But if this line is not commented, the game doesn't even start!!! It exits just after the menu, even if the exit condition is false!!

I don't understand at all!

Could someone give me a hand please!

GuZzO

Edited by GuZzO, 28 September 2010 - 07:11 AM.


#2 GuZzO

GuZzO

    Member

  • Member
  • PipPip
  • 9 posts

Posted 28 September 2010 - 07:13 AM

SOLVED !

The process was running too fast and reach the exit condition before values were initialized



Reply to this topic