git: f9524ac49ca3 - main - games/openttd: update OpenTTD to the latest version 13.0

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Tue, 07 Feb 2023 07:03:21 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f9524ac49ca356296dd87f2084e4a8fabd9390d1

commit f9524ac49ca356296dd87f2084e4a8fabd9390d1
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-02-07 07:02:14 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-02-07 07:02:14 +0000

    games/openttd: update OpenTTD to the latest version 13.0
    
    This is one of the largest releases they've done in several
    years, with numerous features and improvements covering the
    user interface, gameplay features, and modding extensions.
    
    Rename files/pkg-message.in -> pkg-message now that it does
    not use any %%-substitutions.
    
    Via:    https://www.opennet.ru/opennews/art.shtml?num=58608
---
 games/openttd/Makefile                              | 5 +----
 games/openttd/distinfo                              | 6 +++---
 games/openttd/files/extra-patch-save-passwords      | 2 +-
 games/openttd/{files/pkg-message.in => pkg-message} | 0
 games/openttd/pkg-plist                             | 2 ++
 5 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/games/openttd/Makefile b/games/openttd/Makefile
index 7a61527202a4..12ef1dbac690 100644
--- a/games/openttd/Makefile
+++ b/games/openttd/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	openttd
-DISTVERSION=	12.2
-PORTREVISION=	1
+DISTVERSION=	13.0
 CATEGORIES=	games
 MASTER_SITES=	https://proxy.binaries.openttd.org/openttd-releases/${DISTVERSION}/
 DISTNAME=	${PORTNAME}-${DISTVERSION}-source
@@ -20,8 +19,6 @@ CMAKE_ARGS=	-DCMAKE_INSTALL_BINDIR:PATH=bin \
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
-SUB_FILES=	pkg-message
-
 OPTIONS_DEFINE=	DOCS FLUIDSYNTH SAVE_PASSWORDS SERVER
 SERVER_PREVENTS=	FLUIDSYNTH
 
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
index 11f80bca2a3d..2b588f925aa5 100644
--- a/games/openttd/distinfo
+++ b/games/openttd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1648897817
-SHA256 (openttd-12.2-source.tar.xz) = 81508f0de93a0c264b216ef56a05f8381fff7bffa6d010121a21490b4dace95c
-SIZE (openttd-12.2-source.tar.xz) = 7377496
+TIMESTAMP = 1675619840
+SHA256 (openttd-13.0-source.tar.xz) = 339df8e0e0827087c83afe78f8efc6a73b0a3d8a950a0b53137ce6e8aad7ab67
+SIZE (openttd-13.0-source.tar.xz) = 7422316
diff --git a/games/openttd/files/extra-patch-save-passwords b/games/openttd/files/extra-patch-save-passwords
index 37374d77683d..becd87ea8e82 100644
--- a/games/openttd/files/extra-patch-save-passwords
+++ b/games/openttd/files/extra-patch-save-passwords
@@ -103,7 +103,7 @@
 @@ -1046,6 +1046,10 @@ void SwitchToMode(SwitchMode new_mode)
  				OnStartGame(_network_dedicated);
  				/* Decrease pause counter (was increased from opening load dialog) */
- 				DoCommandP(0, PM_PAUSED_SAVELOAD, 0, CMD_PAUSE);
+ 				Command<CMD_PAUSE>::Post(PM_PAUSED_SAVELOAD, false);
 +				// Try to load password
 +				if (_settings_client.network.save_password) {
 +					NetworkLoadPassword( );
diff --git a/games/openttd/files/pkg-message.in b/games/openttd/pkg-message
similarity index 100%
rename from games/openttd/files/pkg-message.in
rename to games/openttd/pkg-message
diff --git a/games/openttd/pkg-plist b/games/openttd/pkg-plist
index 9c49e916c09b..1301465a3592 100644
--- a/games/openttd/pkg-plist
+++ b/games/openttd/pkg-plist
@@ -18,6 +18,7 @@ share/man/man6/openttd.6.gz
 %%DATADIR%%/ai/compat_1.10.nut
 %%DATADIR%%/ai/compat_1.11.nut
 %%DATADIR%%/ai/compat_12.nut
+%%DATADIR%%/ai/compat_13.nut
 %%DATADIR%%/baseset/no_music.obm
 %%DATADIR%%/baseset/no_sound.obs
 %%DATADIR%%/baseset/openttd.32.bmp
@@ -43,6 +44,7 @@ share/man/man6/openttd.6.gz
 %%DATADIR%%/game/compat_1.10.nut
 %%DATADIR%%/game/compat_1.11.nut
 %%DATADIR%%/game/compat_12.nut
+%%DATADIR%%/game/compat_13.nut
 %%DATADIR%%/lang/afrikaans.lng
 %%DATADIR%%/lang/arabic_egypt.lng
 %%DATADIR%%/lang/basque.lng