Quote:
Originally Posted by callimuc
wouldnt it have to be like the following?
PHP Code:
if(
mousescreenx in |temp.d.x, temp.d.x + temp.d.dwidth| &&
mousescreeny in |temp.d.y, temp.d.y + temp.d.dheight|
)
if not, what would the < > 's do exactly in this case (i know that they can be used for smaller, bigger checks but wouldnt make sense in here like i am used to it)?
|
Using |,| includes the minimum and maximum value, allowing an edge-on intersect, whereas with <,> it has to be within the range. It doesn't matter so much in this case.