Skip to content

Commit d863892

Browse files
committed
flixel.util.helpers: default active to true instead of false
This could be considered a minor breaking change, but it's really more of a bugfix.. defaulting them to false doesn't make a whole lot of sense (see next commit).
1 parent ac91476 commit d863892

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

flixel/util/helpers/FlxBounds.hx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class FlxBounds<T>
1818
/**
1919
* A flag that can be used to toggle the use of this property.
2020
*/
21-
public var active:Bool = false;
21+
public var active:Bool = true;
2222

2323
/**
24-
* Create a new Bounds object. Must be typed, e.g. var myBounds = new Bounds<Float>(0, 0);
24+
* Create a new Bounds object. Must be typed, e.g. `var bounds = new FlxBounds<Float>(0, 0)`;
2525
*
2626
* @param min The minimum value of the property.
2727
* @param max The maximum value of the property. Optional, will be set equal to min if ignored.
@@ -52,9 +52,9 @@ class FlxBounds<T>
5252
* @param OtherFlxBounds The other FlxBounds to compare to this one.
5353
* @return True if the FlxBounds have the same min and max value, false otherwise.
5454
*/
55-
public inline function equals(OtherFlxBounds:FlxBounds<T>):Bool
55+
public inline function equals(otherBounds:FlxBounds<T>):Bool
5656
{
57-
return min == OtherFlxBounds.min && max == OtherFlxBounds.max;
57+
return min == otherBounds.min && max == otherBounds.max;
5858
}
5959

6060
/**

flixel/util/helpers/FlxPointRangeBounds.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FlxPointRangeBounds implements IFlxDestroyable
2121
/**
2222
* A flag that can be used to toggle the use of this property.
2323
*/
24-
public var active:Bool = false;
24+
public var active:Bool = true;
2525

2626
/**
2727
* Create a new FlxPointRangeBounds object.

flixel/util/helpers/FlxRange.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FlxRange<T>
1818
/**
1919
* A flag that can be used to toggle the use of this property.
2020
*/
21-
public var active:Bool = false;
21+
public var active:Bool = true;
2222

2323
/**
2424
* Create a new Range object. Must be typed, e.g. var myRange = new Range<Float>(0, 0);

flixel/util/helpers/FlxRangeBounds.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FlxRangeBounds<T>
1919
/**
2020
* A flag that can be used to toggle the use of this property.
2121
*/
22-
public var active:Bool = false;
22+
public var active:Bool = true;
2323

2424
/**
2525
* Create a new RangeBounds object. Must be typed, e.g. var myRangeBounds = new RangeBounds<Float>(0, 0, 0, 0);

0 commit comments

Comments
 (0)