Jump to content

Logical Error?


xtreampb
 Share

Recommended Posts

I have this code that i'll post. I just getting a window border. Can anyone help me find this bug please? I'm completely new to frameworks and thought i would give it a shot.

 

Thank you,

 

 

~Xtreampb~

Now Loading.cpp

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

I fixed my issue. My updateframework();, RenderFramwork();, and Flip(0) was inside the second if statement. I moved them all down approx 3 lines to outside the if statement and that cleard up all issues

bool Life()
{
 while(death=false)
 {
   if(death==true)
   return death;
 }
}

 

I have found the secret to infinite life

 

Did I help you out? Like my post!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...