Simplify FEN parsing for large boards
authorFabian Fichter <ianfab@users.noreply.github.com>
Mon, 10 Feb 2020 22:01:59 +0000 (23:01 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Mon, 10 Feb 2020 22:01:59 +0000 (23:01 +0100)
No functional change.

src/position.cpp

index efd48a9..8581782 100644 (file)
@@ -270,9 +270,7 @@ Position& Position::set(const Variant* v, const string& fenStr, bool isChess960,
           {
               sq += 10 * (token - '0') * EAST;
               ss >> token;
-              sq += (token - '0') * EAST;
           }
-          else
 #endif
           sq += (token - '0') * EAST; // Advance the given number of files
       }