Skip to content

Commit

Permalink
Ordering is important
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Hahn committed Feb 9, 2014
1 parent b1c84aa commit e68a8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crane/src/main/scala/crane/Entity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ class Entity(var tag:String = "") {
/** Kills the entity and removes it from the world it is in */
def kill() {
if(alive) {
alive = false
_world match {
case Some(w: World) =>
w.removeEntity(this, true)
case _ =>
throw new DeadEntityException
}
_world = None
alive = false
} else {
throw new DeadEntityException
}
Expand Down

0 comments on commit e68a8cd

Please sign in to comment.