aboutsummaryrefslogtreecommitdiff
path: root/games/openttd
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-07 07:02:14 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-07 07:02:14 +0000
commitf9524ac49ca356296dd87f2084e4a8fabd9390d1 (patch)
tree270f620b0990744c99d0a856608937d1e4a31296 /games/openttd
parentbeb2c1dcea42b2712734a36aad1ab5103ad3b7d5 (diff)
downloadports-f9524ac49ca356296dd87f2084e4a8fabd9390d1.tar.gz
ports-f9524ac49ca356296dd87f2084e4a8fabd9390d1.zip
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
Diffstat (limited to 'games/openttd')
-rw-r--r--games/openttd/Makefile5
-rw-r--r--games/openttd/distinfo6
-rw-r--r--games/openttd/files/extra-patch-save-passwords2
-rw-r--r--games/openttd/pkg-message (renamed from games/openttd/files/pkg-message.in)0
-rw-r--r--games/openttd/pkg-plist2
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
index e174e20f2745..e174e20f2745 100644
--- a/games/openttd/files/pkg-message.in
+++ b/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