81539 Commits

Author SHA1 Message Date
Pentarctagon
10f6357832 Update vcpkg schema URL. 2022-12-15 11:01:27 -06:00
Gunter Labes
870bd71521
Make map diff workflow ignore errors
It's not really a check but a support feature. Errors can still be seen when looking at the workflow run.
2022-12-14 09:37:09 +01:00
Gunter Labes
0fee1695f6 Just look for the toplevel dir tag
"campaign_name" is not an existing attribute in the given config anymore.
An addon should only contain a single toplevel dir tag with the name of the addon anyway.
2022-12-14 09:24:54 +01:00
Charles Dang
d014cf5409 Fixed floating chat label text overlap (resolves #7100, closes #7165)
Thanks to @Wedge009 for help.
2022-12-11 17:19:42 -05:00
Charles Dang
683c0b7590 GUI2: don't make a string copy with debug_truncate 2022-12-11 17:19:32 -05:00
Eric Gallager
15b1bc366b Update gettext.cpp
update comment to include more context, in case issue number is no longer useful
2022-12-11 01:52:59 +01:00
Eric Gallager
5fb262fd23 Update gettext.cpp
This fixes #3868 and addresses a review comment that @CelticMinstrel had left in b780da4
2022-12-11 01:52:59 +01:00
Steve Cotton
b5ff5c3ddc Inspect console: fix infinite loop in pagination
When given a string that includes newlines but doesn't end with a newline,
the old code would get stuck in an infinite loop.

Fixes #7194.
2022-12-07 09:15:52 +01:00
Celtic Minstrel
ddbf533aba Expand the list of types that can pass through wesnoth.eval_formula.
* unit types
* weapons
* sides
2022-12-06 01:53:55 -05:00
Celtic Minstrel
6d3dd6a175 Support as_type=weapon in [variable]formula= 2022-12-06 01:52:38 -05:00
Celtic Minstrel
bb8b710676 Fix a crash when accessing the "weapon" variable in WFL event data 2022-12-06 01:51:22 -05:00
Celtic Minstrel
8e54f86675
Avoid throwing exceptions internally to lexical_cast when parsing an empty string (#7192) 2022-12-06 01:48:54 -05:00
doofus-01
047356afb9
Update about.cfg 2022-12-04 12:12:51 -08:00
doofus-01
1888252d5c
Update changelog.md 2022-12-04 12:04:15 -08:00
doofus-01
555d5a930b
1.17 - a couple more monsters (#7152)
* Dragonfly

* Grand Dragonfly

* Dragonfly naiad

* move Kraken out of WoF and DW and put in core

* Update kraken sprite and animations
2022-12-04 12:00:48 -08:00
doofus-01
e22da0ea99
hills transitions for hex with small mountain catch-all rule (#7191)
fixes #7180
2022-12-04 11:52:53 -08:00
Pentarctagon
12a7f018e0 Document last batch of unit tests. 2022-12-03 23:29:47 -06:00
Elvish_Hunter
e3bf0ec1c3 Silence some wmlscope warnings 2022-12-03 21:35:13 +01:00
Nils Kneuper
37320b0bd0 updated French translation 2022-12-03 13:02:55 +01:00
Till Noffke
ea41924377 Fix const value in std::move 2022-12-02 20:27:15 -06:00
Till Noffke
70e5846e48 Language string duplicate removal 2022-12-02 20:27:15 -06:00
Charles Dang
66cd471d1a GUI2/Window: consolidate exit hook API 2022-12-02 01:53:44 -05:00
Gunter Labes
56c32c3e06 Update used actions to avoid deprecated Node.js 12 2022-12-01 16:12:06 +01:00
Tahsin Jahin Khalid
14152b3c56 changelog_entries: add file for PR 7151 2022-11-30 18:37:37 +08:00
Tahsin Jahin Khalid
837045168c
Campaigns: Sync Delurin between HttT and Liberty
* HttT: sync Delurin with Liberty's Delurin

* Liberty: sync Delurin with HttT's Delurin
2022-11-30 18:27:38 +08:00
Ferk
46233658e3 Zoom-in using "+"
This adds "+" for Zoom-in as an additional hotkey (without removing the previously set value).

The "=" key doesn't seem to work when pressing it from a keyboard layout such as German Qwerty in Windows. It's also against the user's expectations that if we accidentally press on "minus" causing the map to zoom out, the expectation would be for the opposite operation to be "plus".
2022-11-29 18:03:16 +01:00
Eric Gallager
87ae85e468 Update README.md
Change Twitter link to Mastodon link
2022-11-29 08:58:57 -06:00
Steve Cotton
38fdf06fa9 Fix [special_note] duplication when unstoring units
The movetype's special notes were becoming a new note for the individual unit.

Clean up the documentation on some of movetype's functions, as they had
documentation in both the .hpp and the .cpp.
2022-11-29 11:40:11 +01:00
Đoàn Trần Công Danh
fd96415bdf gettext: fix build with Boost.Locale 1.81
See https://github.com/boostorg/locale/pull/128/
2022-11-28 21:38:54 +01:00
Charles Dang
699e50a485 Bump vcpkg cache 2022-11-28 01:17:04 -05:00
Charles Dang
8e6f507910 Bump vcpkg baseline, update for new SDL_image config 2022-11-28 00:33:43 -05:00
Charles Dang
965f3049c6 Marked many functions of point and rect constexpr 2022-11-27 13:51:55 -05:00
Celtic Minstrel
6876695e66 Support as_type=unit in [variable]formula= 2022-11-27 13:12:47 -05:00
Celtic Minstrel
516f043e89 Support name= in [lua] ConditionalWML 2022-11-27 13:10:41 -05:00
Nils Kneuper
e9b86c2ff6 updated Finnish translation 2022-11-27 12:27:58 +01:00
Steve Cotton
3d4812ebc8 Add a unit test for the preprocessor's #ifdef handling
This one's surprising, but it's the behavior of 1.16, so add a test for the
current behavior even though I wonder if it should change in 1.17.
2022-11-26 14:55:33 +01:00
Nils Kneuper
7b4c166761 updated French translation 2022-11-26 13:44:18 +01:00
Steve Cotton
710867e010 Add unit tests for interpolated event names and end_turn
Move `event_name_variable_substitution` to the top of the file, as it's testing
that the event triggers at all, before the tests that check which order the
events are triggered in.

The old `order_of_variable_events1` seemed to be a combination of two tests that
should exist, but the code didn't quite test either of them. This replaces it
with a new `order_of_variable_events1` and `order_of_variable_events3`.

Docs partially written by Pentarctagon, this started as a review comment
on the documentation PR.
2022-11-25 12:16:46 +01:00
Charles Dang
14bd90629c
Merge pull request #7162 from Pentarctagon/fix-7104
Don't call back() if open_window_stack is empty since that's UB.
2022-11-25 02:37:51 -05:00
Pentarctagon
80fb5650b1 Don't call back() if open_window_stack is empty since that's UB.
Resolves #7104
2022-11-24 21:01:35 -06:00
Pentarctagon
a242f42067 Initialize filter_auto_hosted_ 2022-11-24 09:54:49 -06:00
Pentarctagon
a2491d3aa4 More unit test documentation. 2022-11-23 16:25:37 -06:00
Andrei-Florin Bencsik
5ffa031e8e
Remove some un-needed references and optimize some string operations (#7135)
when returning by value, the ideal way to store the returned value is
another value - using a const& works only because of how c++ prolongs
the lifetime of temporaries with const&'s

use move on strings that get destroyed at scope end

fix some formatting differences between a couple functions (parens,
spaces)

formatting to match the coding guidelines, including fixing up existing code
use [] to be consistent with the file
put { on the same line as for and if
2022-11-23 01:12:32 +01:00
Tahsin Jahin Khalid
0afe343c50
HttT: Kalenz now has traits loyal, and resilient (#7142)
Elven Supremacy
2022-11-22 09:26:20 +08:00
Pentarctagon
94d9cdb2db Move entry. 2022-11-20 15:06:37 -06:00
Charles Dang
59bb2bb47b
Merge pull request #7150 from newfrenchy83/include_erase_if_in_overwrite_specials
include Refactor ability lists using utils::erase_if and std::remove_if to overwrite_specials
2022-11-20 14:14:00 -05:00
newfrenchy83
697a9cabc1 return boolean value directly 2022-11-20 18:34:01 +01:00
Pentarctagon
5ac61ee1aa Forgot to do this. 2022-11-20 11:10:51 -06:00
newfrenchy83
55562687a6 include Refactor ability lists using utils::erase_if and std::remove_if to overwrite_specials 2022-11-20 15:48:57 +01:00
Steve Cotton
67f2c32c54 Refactor ability lists using utils::erase_if and std::remove_if
C++20 will add std::erase_if as a convenience wrapper around std::remove_if,
handling the subsequent call to std::vector::erase. This simplifies readability,
avoiding the need to either store the result of std::remove_if in a temporary
or to put the second argument of vector::erase after the body of a lambda.

This adds utils::erase_if, which does the same thing. The C++20 function returns
the number of elements removed, but as none of the callers need that I've not
implemented it in utils::erase_if.

This commit omits the refactor of attack_type::overwrite_special_checking,
because that function is being worked on in parallel by Newfrenchy. It'll be
simpler for either of us to update it later instead of creating merge conflicts.
2022-11-20 15:20:29 +01:00