This commit is contained in:
Austyn Studdard 2018-05-19 13:36:42 -05:00
parent 60d35be269
commit 330e039763

View file

@ -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);
}