Skip to content

Commit

Permalink
Merge pull request #867 from cazfi/srvup
Browse files Browse the repository at this point in the history
Update to Freeciv server freeciv/freeciv@e43360ff51
  • Loading branch information
cazfi authored Oct 25, 2024
2 parents 2cca5d3 + 4e461e7 commit c321ded
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 63 deletions.
5 changes: 5 additions & 0 deletions freeciv-web/src/main/webapp/javascript/packhand.js
Original file line number Diff line number Diff line change
Expand Up @@ -1959,3 +1959,8 @@ function handle_team_name_info(packet)
{
/* TODO: implement */
}

function handle_popup_image(packet)
{
/* TODO: implement */
}
4 changes: 0 additions & 4 deletions freeciv/apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
# https://osdn.net/projects/freeciv/ticket/?????
# https://redmine.freeciv.org/issues/???
#
# 0061-savegame-Correct-loading-last-turn-change-time.patch
# Savegame loading fix
# RM #545
# 0073-savecompat-Fix-adding-ACTION_NONE-actions-for-units-.patch
# Savegame loading fix
# RM #577
Expand Down Expand Up @@ -62,7 +59,6 @@ declare -a GIT_PATCHLIST=(
)

declare -a PATCHLIST=(
"backports/0061-savegame-Correct-loading-last-turn-change-time"
"backports/0073-savecompat-Fix-adding-ACTION_NONE-actions-for-units-"
"backports/0089-Meson-Make-fc_client_common-to-depend-on-verhdr"
"backports/0080-savegame-Save-ACTION_NONE-as-1"
Expand Down

This file was deleted.

20 changes: 10 additions & 10 deletions freeciv/patches/maphand_ch.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff -Nurd freeciv/common/networking/packets.def freeciv/common/networking/packets.def
--- freeciv/common/networking/packets.def 2024-05-18 00:46:38.885812349 +0300
+++ freeciv/common/networking/packets.def 2024-05-18 00:46:49.709919374 +0300
@@ -2468,3 +2468,13 @@
--- freeciv/common/networking/packets.def 2024-10-19 03:56:30.894145694 +0300
+++ freeciv/common/networking/packets.def 2024-10-19 03:56:46.886308153 +0300
@@ -2449,3 +2449,13 @@
TILE dest;
UINT32 turns;
end
Expand All @@ -16,8 +16,8 @@ diff -Nurd freeciv/common/networking/packets.def freeciv/common/networking/packe
+ STRING message[MAX_LEN_MSG];
+end
diff -Nurd freeciv/server/maphand.c freeciv/server/maphand.c
--- freeciv/server/maphand.c 2024-05-18 00:46:39.253815986 +0300
+++ freeciv/server/maphand.c 2024-05-18 00:46:49.709919374 +0300
--- freeciv/server/maphand.c 2024-10-19 03:56:31.434151179 +0300
+++ freeciv/server/maphand.c 2024-10-19 03:58:42.987487980 +0300
@@ -16,6 +16,7 @@
#endif

Expand All @@ -34,7 +34,7 @@ diff -Nurd freeciv/server/maphand.c freeciv/server/maphand.c
#include "events.h"
#include "game.h"
#include "map.h"
@@ -2729,3 +2731,380 @@
@@ -2744,3 +2746,380 @@
}
}
}
Expand Down Expand Up @@ -374,11 +374,11 @@ diff -Nurd freeciv/server/maphand.c freeciv/server/maphand.c
+ if (unit_owner(punit) == pplayer) {
+ /* Show bribe cost for own units. */
+ astr_add_line(str, _("Bribe cost: %d"),
+ unit_bribe_cost(punit, pplayer));
+ unit_bribe_cost(punit, pplayer, nullptr));
+ } else {
+ /* We can only give an (lower) boundary for units of other players. */
+ astr_add_line(str, _("Estimated bribe cost: > %d"),
+ unit_bribe_cost(punit, pplayer));
+ unit_bribe_cost(punit, pplayer, nullptr));
+ }
+
+ if ((nullptr == pplayer || owner == pplayer)
Expand Down Expand Up @@ -416,8 +416,8 @@ diff -Nurd freeciv/server/maphand.c freeciv/server/maphand.c
+ astr_free(&str);
+}
diff -Nurd freeciv/server/maphand.h freeciv/server/maphand.h
--- freeciv/server/maphand.h 2024-05-18 00:46:39.253815986 +0300
+++ freeciv/server/maphand.h 2024-05-18 00:46:49.709919374 +0300
--- freeciv/server/maphand.h 2024-10-19 03:56:31.434151179 +0300
+++ freeciv/server/maphand.h 2024-10-19 03:56:46.894308234 +0300
@@ -147,4 +147,7 @@
void tile_change_side_effects(struct tile *ptile, bool refresh_city)
fc__attribute((nonnull (1)));
Expand Down
4 changes: 2 additions & 2 deletions freeciv/version.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# The Git SHA hash for the commit to checkout from
# https://github.com/freeciv/freeciv

FCREV=e30c986c070fb8ac2c415e15300f44aa1a5ce20f
FCREV=e43360ff51aa3b1f213ccf029489f29fe619f66e

ORIGCAPSTR="+Freeciv.Devel-\${MAIN_VERSION}-2024.May.13"
ORIGCAPSTR="+Freeciv.Devel-\${MAIN_VERSION}-2024.May.17"

# There's no need to bump this constantly as current freeciv-web
# makes no connections to outside world - all connections are
Expand Down

0 comments on commit c321ded

Please sign in to comment.