From ff08cbfd9d4479b0ee36ac8c5a69d08392372343 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 28 Jan 2013 17:38:26 +0100 Subject: [PATCH] Preserve PGN tags when loading engine Switching to EditGame mode would normally erase the tags, but when analyzing a loaded game this would be undesirable. When the engine is playing, keeping the tags is dubious, but it is not obvious what to put in a new name tag, so we leave that for now. --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 1aea360..e13bd13 100644 --- a/backend.c +++ b/backend.c @@ -867,7 +867,9 @@ void ReplaceEngine (ChessProgramState *cps, int n) { oldMode = gameMode; // remember mode, so it can be restored after loading sequence is complete + keepInfo = 1; if(oldMode != BeginningOfGame) EditGameEvent(); + keepInfo = 0; UnloadEngine(cps); appData.noChessProgram = FALSE; appData.clockMode = TRUE; -- 1.7.0.4