X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=0f0fca46624da7c0212b2971c72b0d8a02c2eae8;hp=3206a2d1950081229b0e9d3f623ba2db66dc8f81;hb=9793fa1906cc204fc2a520ebb8dd3093f7fc7e40;hpb=72641dcaae2241c830254fc19b742eb477d831a3 diff --git a/src/misc.cpp b/src/misc.cpp index 3206a2d1..0f0fca46 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -51,17 +51,15 @@ const string engine_info(bool to_uci) { string month, day, year; stringstream s, date(__DATE__); // From compiler, format is "Sep 21 2008" + s << "Stockfish " << Version; + if (Version.empty()) { date >> month >> day >> year; - s << "Stockfish " << Tag - << setfill('0') << " " << year.substr(2) - << setw(2) << (1 + months.find(month) / 4) - << setw(2) << day; + s << Tag << setfill('0') << " " << year.substr(2) + << setw(2) << (1 + months.find(month) / 4) << setw(2) << day; } - else - s << "Stockfish " << Version; s << cpu64 << popcnt << (to_uci ? "\nid author ": " by ") << "Tord Romstad, Marco Costalba and Joona Kiiski";