Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualKrishath

Posted 24 July 2012 - 09:26 AM

It looks like you're missing a few pairs of parentheses:

	SDL_Quit;  // Does nothing
	if (!init) // Does not behave as expected; same as writing:  if ( init == null )
		return 1;

And it doesn't hurt to let know if your application doesn't load resources correctly:
image = load_image("background.bmp");
if ( !image )
	return -2;

For the init function... if init == false then return 1.
Am I doing that wrong?

PS: Still not working... hmm...

#1Krishath

Posted 24 July 2012 - 09:25 AM

It looks like you're missing a few pairs of parentheses:

	SDL_Quit;  // Does nothing
	if (!init) // Does not behave as expected; same as writing:  if ( init == null )
		return 1;

And it doesn't hurt to let know if your application doesn't load resources correctly:
image = load_image("background.bmp");
if ( !image )
	return -2;

For the init function... if init == false then return 1.
Am I doing that wrong?

PARTNERS