Remember current task on load/save

This commit is contained in:
Eric Fredricksen
2010-07-04 12:11:01 -07:00
parent 3f00464cd2
commit 57a80fa07c
+2 -2
View File
@@ -888,9 +888,8 @@ function TMainForm_CharSheet() {
function Task(caption, msec) {
Kill.text(caption + '...');
/*$IFDEF LOGGING*/
Log(Kill.text());
/*$ENDIF*/
game.kill = Kill.text();
TaskBar.reset(msec);
}
@@ -1192,6 +1191,7 @@ function SaveGame() {
function LoadGame(sheet) {
game = sheet;
$.each(AllBars.concat(AllLists), function (i, e) { e.load(game); });
Kill.text(game.kill);
Log('Loaded game: ' + name);
StartTimer();
}