-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #821 from cazfi/srvup
- Loading branch information
Showing
5 changed files
with
112 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
freeciv/patches/backports/0023-Fix-activity2char-assert-failure.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 8b63f65072bfe597db1d44db32728611c0b7a1a0 Mon Sep 17 00:00:00 2001 | ||
From: Marko Lindqvist <[email protected]> | ||
Date: Wed, 13 Mar 2024 02:48:32 +0200 | ||
Subject: [PATCH 23/24] Fix activity2char() assert failure | ||
|
||
See RM #305 | ||
|
||
Signed-off-by: Marko Lindqvist <[email protected]> | ||
--- | ||
server/savegame/savegame3.c | 9 ++++++--- | ||
1 file changed, 6 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/server/savegame/savegame3.c b/server/savegame/savegame3.c | ||
index e7d633419b..a3aefeeb49 100644 | ||
--- a/server/savegame/savegame3.c | ||
+++ b/server/savegame/savegame3.c | ||
@@ -876,10 +876,13 @@ static enum unit_activity char2activity(char activity) | ||
enum unit_activity a; | ||
|
||
for (a = 0; a < ACTIVITY_LAST_SAVEGAME3; a++) { | ||
- char achar = activity2char(a); | ||
+ /* Skip ACTIVITY_LAST. The SAVEGAME3 specific values are after it. */ | ||
+ if (a != ACTIVITY_LAST) { | ||
+ char achar = activity2char(a); | ||
|
||
- if (activity == achar) { | ||
- return a; | ||
+ if (activity == achar) { | ||
+ return a; | ||
+ } | ||
} | ||
} | ||
|
||
-- | ||
2.43.0 | ||
|
47 changes: 47 additions & 0 deletions
47
freeciv/patches/backports/0025-Purge-worklist-items-with-unfulfilled-local-range-im.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From a612446f31fa2a4e281fc6943fda755af3f34e42 Mon Sep 17 00:00:00 2001 | ||
From: Marko Lindqvist <[email protected]> | ||
Date: Wed, 13 Mar 2024 19:32:41 +0200 | ||
Subject: [PATCH 25/25] Purge worklist items with unfulfilled local range impr | ||
reqs | ||
|
||
See osdn #48773 | ||
|
||
Signed-off-by: Marko Lindqvist <[email protected]> | ||
--- | ||
server/cityturn.c | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/server/cityturn.c b/server/cityturn.c | ||
index a05034ba97..da0f5e3ee6 100644 | ||
--- a/server/cityturn.c | ||
+++ b/server/cityturn.c | ||
@@ -1260,7 +1260,7 @@ static bool worklist_item_postpone_req_vec(struct universal *target, | ||
case VUT_IMPROVEMENT: | ||
if (preq->range == REQ_RANGE_LOCAL) { | ||
/* Building itself is never going to change */ | ||
- purge = FALSE; | ||
+ purge = TRUE; | ||
} else { | ||
if (preq->present) { | ||
notify_player(pplayer, city_tile(pcity), | ||
@@ -1290,7 +1290,7 @@ static bool worklist_item_postpone_req_vec(struct universal *target, | ||
case VUT_IMPR_GENUS: | ||
if (preq->range == REQ_RANGE_LOCAL) { | ||
/* Building's own genus is never going to change */ | ||
- purge = FALSE; | ||
+ purge = TRUE; | ||
} else { | ||
if (preq->present) { | ||
notify_player(pplayer, city_tile(pcity), | ||
@@ -1320,7 +1320,7 @@ static bool worklist_item_postpone_req_vec(struct universal *target, | ||
case VUT_IMPR_FLAG: | ||
if (preq->range == REQ_RANGE_LOCAL) { | ||
/* Building's own flags are never going to change */ | ||
- purge = FALSE; | ||
+ purge = TRUE; | ||
} else { | ||
if (preq->present) { | ||
notify_player(pplayer, city_tile(pcity), | ||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters