From: H.G. Muller Date: Mon, 28 Jan 2013 16:38:26 +0000 (+0100) Subject: Preserve PGN tags when loading engine X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ff08cbfd9d4479b0ee36ac8c5a69d08392372343;hp=f63864b8d50cffa9c90590a876a938b4ac0423eb;p=xboard.git 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. --- 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;