mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 08:44:00 -06:00
Remember current task on load/save
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user