v0.2.2b: fixed a bug where the assassin's wound animation would sometimes cause a crash
This commit is contained in:
parent
402f61aa76
commit
4ad2f689bd
|
@ -63,11 +63,13 @@ public class Wound extends Image {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void hit( Char ch, float angle ) {
|
public static void hit( Char ch, float angle ) {
|
||||||
Wound w = (Wound)ch.sprite.parent.recycle( Wound.class );
|
if (ch.sprite.parent != null) {
|
||||||
ch.sprite.parent.bringToFront( w );
|
Wound w = (Wound) ch.sprite.parent.recycle(Wound.class);
|
||||||
w.reset( ch.pos );
|
ch.sprite.parent.bringToFront(w);
|
||||||
|
w.reset(ch.pos);
|
||||||
w.angle = angle;
|
w.angle = angle;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void hit( int pos ) {
|
public static void hit( int pos ) {
|
||||||
hit( pos, 0 );
|
hit( pos, 0 );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user