v0.3.0e: refactored the new findChars() function and re-added a collection of chars to Actor. Better readability and (trivially) better performance.

This commit is contained in:
Evan Debenham
2015-06-17 10:57:01 -04:00
committed by Evan Debenham
parent c55e38a86a
commit 2aee4fe3c6
4 changed files with 19 additions and 21 deletions
@@ -164,7 +164,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
targeting = lastTarget != null && lastTarget.isAlive() && Dungeon.visible[lastTarget.pos];
if (targeting) {
if (Actor.all().contains( lastTarget )) {
if (Actor.chars().contains( lastTarget )) {
lastTarget.sprite.parent.add( crossM );
crossM.point( DungeonTilemap.tileToWorld( lastTarget.pos ) );
crossB.x = PixelScene.align( x + (width - crossB.width) / 2 );