v0.3.2: adjusted exception throwing on bombs

This commit is contained in:
Evan Debenham 2015-09-30 15:55:54 -04:00
parent 4ae94fe7a8
commit 83e68d116b

View File

@ -252,8 +252,10 @@ public class Bomb extends Item {
}
}
//can't find our bomb, this should never happen, throw an exception.
throw new RuntimeException("Something caused a lit bomb to not be present in a heap on the level!");
//can't find our bomb, something must have removed it, do nothing.
bomb.fuse = null;
Actor.remove( this );
return true;
}
}