1
0
Fork 0

Fixed a bug when hovered ship died

This commit is contained in:
Michaël Lemaire 2015-02-23 01:00:00 +01:00
parent 0d5f748386
commit 7236afe74b

View file

@ -101,6 +101,9 @@ module SpaceTac.View {
// A ship died
private processDeathEvent(event: Game.DeathEvent): void {
if (this.view.ship_hovered === event.ship) {
this.view.setShipHovered(null);
}
this.view.arena.removeShip(event.ship);
this.view.ship_list.removeShip(event.ship);
}