diff --git a/.github/changelog.sh b/.github/changelog.sh
index ea0da948c1..b057ad475f 100755
--- a/.github/changelog.sh
+++ b/.github/changelog.sh
@@ -4,9 +4,9 @@ tag=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed 's@\
# If we are a tag, show the part of the changelog till (but excluding) the last stable
if [ -n "$tag" ]; then
- grep='^[0-9]\+\.[0-9]\+\.[0-9]\+[^-]'
+ grep='^[0-9]\+\.[0-9]\+[^-]'
next=$(cat changelog.txt | grep '^[0-9]' | awk 'BEGIN { show="false" } // { if (show=="true") print $0; if ($1=="'$tag'") show="true"} ' | grep "$grep" | head -n1 | sed 's/ .*//')
- cat changelog.txt | awk 'BEGIN { show="false" } /^[0-9]+.[0-9]+.[0-9]+/ { if ($1=="'$next'") show="false"; if ($1=="'$tag'") show="true";} // { if (show=="true") print $0 }'
+ cat changelog.txt | awk 'BEGIN { show="false" } /^[0-9]+.[0-9]+/ { if ($1=="'$next'") show="false"; if ($1=="'$tag'") show="true";} // { if (show=="true") print $0 }'
exit 0
fi
diff --git a/changelog.txt b/changelog.txt
index a661cab6ec..883560397e 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,12 @@
+12.0-beta2 (2021-08-19)
+------------------------------------------------------------------------
+Feature: [Linkgraph] Prioritize faster routes for passengers, mail and express cargo (#9457)
+Fix: Wrong town window refreshed when building an airport with noise levels enabled (#9497)
+Fix: Improve wording of network-related messages (#9494, #9495, #9500)
+Fix: [Network] Report reuse of invite-code (#9487)
+Fix: [Network] Connecting with the same client name thrice hangs the server (#9485)
+
+
12.0-beta1 (2021-08-15)
------------------------------------------------------------------------
Feature: [Network] Remove lobby window; pressing "Join Game" now immediately joins a server (#9467)
diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html
index 428ac71f3b..de2d94fb0e 100644
--- a/docs/landscape_grid.html
+++ b/docs/landscape_grid.html
@@ -80,7 +80,7 @@ the array so you can quickly see what is used and what is not.
0 |
ground |
- XXXX XX XX |
+ XXXX XX XX |
XXXX XXXX |
OOO1 OOOO |
OOOO OOOO OOOO OOOO |
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 9f1f2742ad..502aaa133d 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -888,6 +888,12 @@ Layouter::LineCacheItem &Layouter::GetCachedParagraphLayout(const char *str, siz
linecache = new LineCache();
}
+ if (auto match = linecache->find(LineCacheQuery{state, std::string_view{str, len}});
+ match != linecache->end()) {
+ return match->second;
+ }
+
+ /* Create missing entry */
LineCacheKey key;
key.state_before = state;
key.str.assign(str, len);
diff --git a/src/gfx_layout.h b/src/gfx_layout.h
index 04461ecfc7..38e58e673c 100644
--- a/src/gfx_layout.h
+++ b/src/gfx_layout.h
@@ -17,6 +17,8 @@
#include