AdamAtomic / flixel

flixel is a free Actionscript (Flash) library that I distilled from a variety of Flash games that I've worked on over the last couple years, including Gravity Hook, Fathom and Canabalt. It's primary function is to provide some useful base classes that you can extend to make your own game objects.
http://www.flixel.org/
Other
1.13k stars 196 forks source link

FlxTileblock throws a runtime error if you pass it a non-zero Empties value #44

Closed knivel closed 14 years ago

knivel commented 14 years ago

I fixed the problem in renderBlock() in FlxTileblock.as, line 98:

if(_rect != null) FlxG.buffer.copyPixels(_pixels,_flashRect,_flashPoint,null,null,true);

should be

if(_flashRect != null) FlxG.buffer.copyPixels(_pixels,_flashRect,_flashPoint,null,null,true);

_flashRect is defined the line before, and I can't find _rect defined anywhere.

knivel commented 14 years ago

rect and flashRect should have underscores in front of them.

AdamAtomic commented 14 years ago

good catch! all fixed, get v2.16 :)