mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
fixed #3646
This commit is contained in:
parent
60d35be269
commit
330e039763
1 changed files with 8 additions and 8 deletions
|
@ -428,8 +428,8 @@ var Camera = new Class({
|
|||
var cullW = cameraW + objectW;
|
||||
var cullH = cameraH + objectH;
|
||||
|
||||
if (tx > -objectW || ty > -objectH || tx < cullW || ty < cullH ||
|
||||
tw > -objectW || th > -objectH || tw < cullW || th < cullH)
|
||||
if (tx > -objectW && ty > -objectH && tx < cullW && ty < cullH &&
|
||||
tw > -objectW && th > -objectH && tw < cullW && th < cullH)
|
||||
{
|
||||
culledObjects.push(object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue