74740 Commits

Author SHA1 Message Date
loonycyborg
b72181c0e6 Merge branch 'help_ref_count_master' of https://github.com/stevecotton/wesnoth into stevecotton-help_ref_count_master 2019-07-16 16:47:23 +03:00
loonycyborg
05d109215d Fix -Wdeprecated-copy compiler warnings with gcc 9 2019-07-16 13:11:05 +03:00
Steve Cotton
eabf933c8e Fix Wdeprecated-copy in wfl::variant, and add move operations
Fixes the majority of the warnings in issue #4166.

This class already shared copies of value_ between instances,
it seems to be the immutable design pattern so can share from
const to non-const instances safely.

Cherry-picking this to 1.14 needs a trivial conflict to be
resolved, the next line in the .cpp file has changed from
size_t in 1.14 to std::size_t in 1.15.
2019-07-16 09:53:47 +11:00
Nils Kneuper
1fac6ac1a6 updated Portuguese (Brazil) translation 2019-07-15 23:23:59 +02:00
Nils Kneuper
c0ca4156d7 updated Portuguese (Brazil) translation 2019-07-15 20:54:48 +02:00
Steve Cotton
66f0924c8b SoF S2: Dialogue fixes (no dwarves outside, repeated comment about side entrances)
If all the dwarves are inside when the gate closes, don't say there were some lost outside.

Make the dialogue about the north and south side entrances only trigger once.
2019-07-15 20:51:07 +02:00
Steve Cotton
469fcc9c52 Convert help_impl's ref-counting to std::shared_ptr
This is part of #4166, as topic_text wasn't consistent with
the Rule of Three.
2019-07-15 16:51:12 +02:00
nemaara
5ef720e9dd Add DiD update to changelog 2019-07-14 23:05:53 -04:00
nemaara
ab4f8aa4f4 DiD S4: reduce difficulty on easier modes 2019-07-14 23:05:52 -04:00
Charles Dang
c10cdd3322 Removed redundant std::ref causing problems with Boost 1.70 (fixes #3990)
The asio socket ctor already takes a reference.
2019-07-15 04:05:12 +11:00
Steve Cotton
bd130fc8e3 Tutorial S2: Warn about orcs crossing the river when they cross
Closes issue 2a of #1584

Previously the warning was always given on turn 7. It will still trigger even
if the player has units ready to defend that crossing, because I think it's
better to show the message and let the player think "I'm already ready" than to
have it pop up once some fighting has already happened; and it seems easier to
test this logic than to test logic for not showing the message if the crossing
is currently guarded.

Also add a first_time_only=no to the check_income event, so that it can trigger
on turn 7 if it doesn't trigger on turn 6.
2019-07-14 17:00:30 +02:00
Nils Kneuper
ead1e7a393 updated Portuguese (Brazil) translation 2019-07-14 09:17:47 +02:00
Nils Kneuper
390463b481 updated Spanish translation 2019-07-14 09:16:01 +02:00
Pentarctagon
0bd3682b66 Fixes incorrect handling of Xue transitions.
The transitions from the Xue terrain to the Xoc / Xos / Xoi / Xom terrains were displayed incorrectly.

Fixes #4154.
2019-07-13 05:14:44 +11:00
Charles Dang
36f4e80113 Fixup 2019-07-12 18:16:43 +11:00
Charles Dang
452fdbead7 Label Settings: code cleanup 2019-07-12 17:25:04 +11:00
Charles Dang
9ef67052d6 Dropped redundant and/or unused team color getters 2019-07-12 17:23:02 +11:00
Charles Dang
a4622c7a40 Throw exception as per request 2019-07-11 21:20:06 +11:00
Charles Dang
0949ecfb43 Used get_value_bool() 2019-07-11 17:51:19 +11:00
Charles Dang
f60edbf6e0 Bad const_cast. Shoo. 2019-07-11 17:51:18 +11:00
Pentarctagon
4a5db39cd5 Update doc comment. 2019-07-10 19:00:24 -05:00
mattsc
e148d25d2a ExpAI grab villages CA: fix enemy distance rating under fog
ai_helper.get_closest_enemy() returns math.huge for the enemy distance if no enemy is visible to the AI. This fixes #4157.
2019-07-10 08:07:11 -07:00
sigurdfdragon
6e27a3ffbd WoV: Update to match the 1.0.1 version on the 1.14 add-on server
Changes:
S01: Objectives clarified.
S02: Objectives clarified.
S02: Up turn limit & enemy income so leveling objective is easier.
S03: Replace hard-coding of recruit with dynamic storing.
S05: Lower difficulty.
S06: Use all 6 permutations for temple contents.
S08: Fix OOS in replay of the scenario.
Misc: A few dialog, grammar and punctuation fixes.
2019-07-09 23:03:54 -04:00
josteph
0154550130 statistics_dialog: Add comment 2019-07-09 16:53:15 +00:00
josteph
6220f7106e statistics_dialog: Show the actual (empirical) CTH. 2019-07-09 16:51:05 +00:00
josteph
84c6467c56 statistics_dialog: Rename column id and struct member after last commit 2019-07-09 16:45:13 +00:00
josteph
a3efd28010 statistics_dialog: Change the hits table format to "+2% (1703.2 + 42) | 93.6"
This is a mix of "Option B" and "Option C" from
https://forums.wesnoth.org/viewtopic.php?f=12&t=49785&p=643513#p643495
2019-07-09 16:42:05 +00:00
josteph
7b78a8c019 statistics_dialog: Change the hits table format to "1703.2 + 42 | 93.6"
This is "Option B" from
https://forums.wesnoth.org/viewtopic.php?f=12&t=49785&p=643513#p643495
2019-07-09 16:33:48 +00:00
Pentarctagon
1c19e8ce29 Changelog update. 2019-07-07 19:04:46 -05:00
Pentarctagon
efd808ea84 Add FULL action to :droid command.
:droid FULL will also set the side controller to AI, whereas ON only sets the proxy_controller.
This results in a situation where if an opponent leaves and is droided, the host will have vision to the side of the player who left.
This also results in the host *not* having vision to their original side again until it's their turn.

Fixes #3665
2019-07-07 18:54:43 -05:00
Charles Dang
e84f040475 Attempt to fix #4153 2019-07-07 15:42:14 +11:00
Nils Kneuper
9623e79e20 updated Portuguese (Brazil) translation 2019-07-06 14:20:16 +02:00
Nils Kneuper
0edf287849 updated Chinese (Traditional) translation 2019-07-06 14:15:13 +02:00
Nils Kneuper
72f1fbc4e5 updated Turkish translation 2019-07-06 14:12:35 +02:00
Nils Kneuper
716753d7ef updated Dutch translation 2019-07-06 14:08:40 +02:00
Pentarctagon
7ce90285ea On game creation, pre-ban any usernames on the host's ignore list.
Fixes #3892
2019-07-05 02:09:41 -05:00
Charles Dang
5320c7120d Refactor team_data usage and fix issue with Game Stats's Scroll To functionality
This removes unnecessary struct members that can be accessed directly from the team class and fixes an
issue where hidden teams could cause the Game Stats dialog to break when scrolling to leader (fixes #4029)
2019-07-04 15:47:23 +11:00
sigurdfdragon
6e2fbc7b1a Schema: Fix travis error by allowing additional keys in two situations
1. Allow carryover_percentage & carryover_add with
victory_when_enemies_defeated=no. Code from newfrenchy83

2. Allow use of current_time in [time_area].
2019-07-02 23:19:38 -04:00
Charles Dang
c94abfaad1 Minor code cleanup 2019-07-01 18:31:06 +11:00
Charles Dang
533facbe83 Ensure invalid savename characters are stripped from scenario names earlier (fixes #4116)
This ensures the invalid characters are never saved internally in the first place, so this should
cover any case besides the aforementioned bug that might crop up.
2019-07-01 18:31:05 +11:00
doofus-01
d53ff6568c adding spider soulless variation 2019-07-01 15:10:54 +11:00
doofus-01
945e3a0a7b new spider variation for WC 2019-07-01 15:10:54 +11:00
sigurdfdragon
8e9baf98b7 Schema: Add campaign Wings of Victory 2019-06-30 13:17:14 -04:00
Nils Kneuper
31f80f32d9 more Turkish translation manpages fixes 2019-06-30 14:12:01 +02:00
Nils Kneuper
ad2066e9c4 more Turkish translation manpages fixes 2019-06-30 14:08:04 +02:00
Nils Kneuper
e2eb27b185 fixed error in Turkish manpages 2019-06-30 13:56:07 +02:00
Nils Kneuper
8d9ff0f623 added TUrkish translation to Windows packaging 2019-06-30 13:38:39 +02:00
Nils Kneuper
8fc4db851f updated Turkish translation 2019-06-30 13:28:18 +02:00
Nils Kneuper
f0678031ce updated Dutch translation 2019-06-30 13:22:32 +02:00
Charles Dang
6241e648b3
Added Liberapay funding button 2019-06-30 17:50:02 +11:00