Remove State outfit on death

Supplies are not removed from state when embarking, so they remain in place in case the game is closed during exploration. So it now happens in case of death, along with Path.outfit reset.
This commit is contained in:
Andrea Rendine
2016-02-14 11:53:29 +01:00
parent 2c2490290c
commit 3e51471b0b
+1
View File
@@ -851,6 +851,7 @@ var World = {
Notifications.notify(World, _('the world fades'));
World.state = null;
Path.outfit = {};
$SM.remove('outfit');
$('#outerSlider').animate({opacity: '0'}, 600, 'linear', function() {
$('#outerSlider').css('left', '0px');
$('#locationSlider').css('left', '0px');