Skip to content

Commit

Permalink
stationary arrow projectile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan committed Mar 15, 2012
1 parent fc91f10 commit fa19896
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/iryrwarosh/Factory.java
Expand Up @@ -470,6 +470,9 @@ public Screen use(Screen screen, World world, Creature owner){
}

Point dir = owner.lastMovedDirection();
if (dir.x == 0 && dir.y == 0)
dir = new Point(0, 1);

char glyph = 9;
if (dir.x == -1 && dir.y == -1 || dir.x == 1 && dir.y == 1)
glyph = '\\';
Expand Down

0 comments on commit fa19896

Please sign in to comment.