Jump to content
  • Advertisement
Sign in to follow this  
ledxp37

delete

This topic is 4817 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
if(sx < viewport[2] && sx >= 0 && sy < viewport[3] && sy >= 0)

How do you get this string compiled? Could you please explain, what are you doing in this if-statement, and in all the others if-statements, too )))
I don't think people here understand this code as well as you do.

[EDIT]
Wow!!! I paste code here and it looks good! ))) > - is ">" sign, I got it ))))
Now code looks like this

if(sx < viewport[2] && sx >= 0 && sy < viewport[3] && sy >= 0)
{
if(depth < sz && brightness>0.0)
brightness -= 0.1;
else if (depth >= sz && brightness<1.0)
brightness += 0.1;
}else if(brightness>0.0)
brightness -= 0.1;
if(brightness<=0)
brightness=0;
else if(brightness>=1)
brightness=1;

Share this post


Link to post
Share on other sites
I didnt change anything, just the tags around the code (either added them or changed them to source, which ever was required), I didnt touch the code at all [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by phantom
I didnt change anything, just the tags around the code (either added them or changed them to source, which ever was required), I didnt touch the code at all [smile]


It seems that when you do not tag source immediately, all '>' and '<' signs are replaced by the ampersand thingy to make it valid HTML. Later, when you add source tags during an edit, the html code is not coverted back to '>' and printed literally. So, don't blame phantom, blame the forum software :)

Tom

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!