Skip to content

Commit 32bc4cd

Browse files
committed
Remove two floor() calls.
Apparently they are not necessary.
1 parent 9d81d10 commit 32bc4cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/flixel/FlxSprite.as

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ package org.flixel
461461
camera = cameras[i++];
462462
if(!onScreen(camera))
463463
continue;
464-
_point.x = x - int(camera.scroll.x*scrollFactor.x) - FlxU.floor(offset.x);
465-
_point.y = y - int(camera.scroll.y*scrollFactor.y) - FlxU.floor(offset.y);
464+
_point.x = x - int(camera.scroll.x*scrollFactor.x) - offset.x;
465+
_point.y = y - int(camera.scroll.y*scrollFactor.y) - offset.y;
466466
_point.x += (_point.x > 0)?0.0000001:-0.0000001;
467467
_point.y += (_point.y > 0)?0.0000001:-0.0000001;
468468

0 commit comments

Comments
 (0)