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:
committed by
Evan Debenham
parent
c55e38a86a
commit
2aee4fe3c6
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user