Skip to content

Commit

Permalink
Merge pull request #804 from cazfi/srvup
Browse files Browse the repository at this point in the history
  • Loading branch information
cazfi authored Jan 13, 2024
2 parents 44a3118 + 7b844bf commit 6ccc588
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 38 deletions.
12 changes: 6 additions & 6 deletions freeciv/apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

# Freeciv server version upgrade notes (backports)
# ------------------------------------------------
# osdn #????? or RM #?? is a ticket in freeciv.org tracker:
# osdn #????? or RM #??? is a ticket in freeciv.org tracker:
# https://osdn.net/projects/freeciv/ticket/?????
# https://redmine.freeciv.org/issues/??
# https://redmine.freeciv.org/issues/???
#
# 0029-universal_value_initial-Fix-switch-case-fall-through.patch
# Compiler warning fix
# RM #74
# 0031-Meson-Enable-implicit-fallthrough-compiler-warnings.patch
# Stricter compiler warnings
# RM #76
Expand All @@ -21,6 +18,9 @@
# 0004-Fix-bombard-rate-always-being-1.patch
# Bombard action fix
# RM #93
# 0026-savecompat-Add-wlcb-for-all-cities.patch
# Savegame loading fix
# RM #143

# Not in the upstream Freeciv server
# ----------------------------------
Expand All @@ -43,11 +43,11 @@ declare -a GIT_PATCHLIST=(
)

declare -a PATCHLIST=(
"backports/0029-universal_value_initial-Fix-switch-case-fall-through"
"backports/0031-Meson-Enable-implicit-fallthrough-compiler-warnings"
"backports/0014-Improve-savemain.c-coding-style"
"backports/0017-Fix-city-removal-server-crashes"
"backports/0004-Fix-bombard-rate-always-being-1"
"backports/0026-savecompat-Add-wlcb-for-all-cities"
"meson_webperimental"
"metachange"
"text_fixes"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
From 8630ed0993437f5cd3b15aa7f3363c4421d8519a Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <[email protected]>
Date: Mon, 8 Jan 2024 06:53:37 +0200
Subject: [PATCH 26/26] savecompat: Add wlcb for all cities

It's a mandatory field, so failure to add it for non-conquered
cities lead to savegame loading failure.

See RM #143

Signed-off-by: Marko Lindqvist <[email protected]>
---
server/savegame/savecompat.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server/savegame/savecompat.c b/server/savegame/savecompat.c
index 26b1d1e7cb..93bbab9f8e 100644
--- a/server/savegame/savecompat.c
+++ b/server/savegame/savecompat.c
@@ -2375,14 +2375,15 @@ static void compat_load_030200(struct loaddata *loading,
secfile_insert_int(loading->file, CACQ_CONQUEST,
"player%d.c%d.acquire_t",
plrno, cnro);
- secfile_insert_int(loading->file, WLCB_SMART,
- "player%d.c%d.wlcb",
- plrno, cnro);
} else {
secfile_insert_int(loading->file, CACQ_FOUNDED,
"player%d.c%d.acquire_t",
plrno, cnro);
}
+
+ secfile_insert_int(loading->file, WLCB_SMART,
+ "player%d.c%d.wlcb",
+ plrno, cnro);
}
}

--
2.43.0

This file was deleted.

2 changes: 1 addition & 1 deletion freeciv/version.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The Git SHA hash for the commit to checkout from
# https://github.com/freeciv/freeciv

FCREV=df1b759661dc96668a48442ae6870a9c78130053
FCREV=f2716da03b873e7da8f12a2abf4928f92dd04272

ORIGCAPSTR="+Freeciv.Devel-\${MAIN_VERSION}-2023.Dec.04"

Expand Down

0 comments on commit 6ccc588

Please sign in to comment.