File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -304,8 +304,8 @@ package org.flixel
304
304
305
305
if ((target is FlxSprite) && (FlxSprite(target ). isSimpleRender()))
306
306
{
307
- targetX = FlxU. ceil (targetX);
308
- targetY = FlxU. ceil (targetY);
307
+ targetX = FlxU. floor (targetX);
308
+ targetY = FlxU. floor (targetY);
309
309
}
310
310
311
311
edge = targetX - deadzone. x ;
Original file line number Diff line number Diff line change @@ -461,8 +461,8 @@ package org.flixel
461
461
camera = cameras[ i++];
462
462
if (! onScreen(camera))
463
463
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 ;
466
466
_point . x += (_point . x > 0 )? 0.0000001 :- 0.0000001 ;
467
467
_point . y += (_point . y > 0 )? 0.0000001 :- 0.0000001 ;
468
468
You can’t perform that action at this time.
0 commit comments