head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.07.07.09.17.27; author prlw1; state Exp; branches; next ; commitid KoPdoWGp4GksAHMG; desc @@ 1.1 log @Update widelands to 1.3.1 From Paul Ripke in pkgsrc-wip + ctype() patch. Sole consumer of asio. rm:-Wold-style-cast still needed after its update. Highlights in release 1.3.1 This point release fixes a severe multiplayer desync found in Widelands 1.3. Note that it is not possible to combine the versions 1.3 and 1.3.1 in a network game. Highlights in release 1.3 Since the release of version 1.2, we implemented several hundreds of new features and bugfixes; for example, to name just a few of the highlights: - Market trading - Six new maps added and three old maps removed - Economy districts - Many improvements to the in-game Encyclopedia - Download website maps as add-ons - New visualisation modes in the editor - Many new capabilities for add-on developers Widelands 1.3 is translated completely into Czech, Durch, German, Hungarian, and Low German, and the translations for 9 other languages are more than 2/3 complete. @ text @$NetBSD$ Avoid 226 being interpreted as -30 when running the tutorial. --- src/base/string.cc.orig 2026-02-17 15:34:33.000000000 +0000 +++ src/base/string.cc @@@@ -23,7 +23,7 @@@@ std::string to_lower(const std::string& str) { std::string to_lower(const std::string& str) { std::string s; for (const char* c = str.c_str(); *c != 0; ++c) { - s.push_back(tolower(*c)); + s.push_back(tolower(static_cast(*c))); } return s; } @@@@ -32,7 +32,7 @@@@ bool iequals(const std::string& str1, const std::strin const char* a = str1.c_str(); const char* b = str2.c_str(); for (; (*a != 0) && (*b != 0); ++a, ++b) { - if (tolower(*a) != tolower(*b)) { + if (tolower(static_cast(*a)) != tolower(static_cast(*b))) { return false; } } @@@@ -43,7 +43,7 @@@@ bool starts_with(const std::string& str, const std::st const char* a = str.c_str(); const char* b = test.c_str(); for (; (*a != 0) && (*b != 0); ++a, ++b) { - if (case_sensitive ? (*a != *b) : (tolower(*a) != tolower(*b))) { + if (case_sensitive ? (*a != *b) : (tolower(static_cast(*a)) != tolower(static_cast(*b)))) { return false; } } @@@@ -71,7 +71,7 @@@@ bool ends_with(const std::string& str, const std::stri for (; len_b != 0u; --len_b) { --b; --a; - if (case_sensitive ? (*a != *b) : (tolower(*a) != tolower(*b))) { + if (case_sensitive ? (*a != *b) : (tolower(static_cast(*a)) != tolower(static_cast(*b)))) { return false; } } @