Skip to content

Commit

Permalink
Fix compilation with latest Haxe dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Jun 6, 2018
1 parent 4aed948 commit 2b10bac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flixel/effects/particles/FlxEmitter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ typedef FlxEmitter = FlxTypedEmitter<FlxParticle>;
* at set intervals by setting their positions and velocities accordingly.
* It is easy to use and relatively efficient, relying on `FlxGroup`'s RECYCLE POWERS.
*/
#if (haxe_ver >= "4.0.0")
class FlxTypedEmitter<T:FlxSprite & IFlxParticle> extends FlxTypedGroup<T>
#else
class FlxTypedEmitter<T:(FlxSprite, IFlxParticle)> extends FlxTypedGroup<T>
#end
{
/**
* Set your own particle class type here. The custom class must extend `FlxParticle`. Default is `FlxParticle`.
Expand Down

0 comments on commit 2b10bac

Please sign in to comment.