81933 Commits

Author SHA1 Message Date
gfgtdf
4b152e9cbc
Fix assertion on no [side]s (again)
I should probably add a wml test for this.
2023-05-06 17:32:29 +02:00
alberic89
2cb0d97696
wesnoth_addon_manager: require at least TLS v1.2 (#7591) 2023-05-06 00:12:17 +02:00
Slayer95
1ce11239ed
wmlunits: Fixup for fa76e77 (#7595)
Added missing colons to with statements
2023-05-05 23:55:40 +02:00
Slayer95
5eaed1b744
wmlunits: Specify error as class in html reports (#7581) 2023-05-05 21:05:09 +02:00
newfrenchy83
4494689d68 update codeblock projectfiles 2023-05-05 13:50:43 -05:00
Slayer95
fa76e775ac
wmlunits: Handle code paths for missing attributes (#7580) 2023-05-05 18:45:12 +02:00
gfgtdf
01f28b12ae Refactor statistics
Previously statistics were stored in global variables, now
it is a part of saved_game. With this saved_game now finally
represent the contents of a safefile as it was intended to,
without needing to fill the statistics part in some global
variable. (See also #4672 )

In particular now no longer have to manually reset the
statistics as random parts of the code, it gets reset
along with the saved_game object. Also it is now in theroy
possible for multiple saved_game objects to exist.

Statistics was split in two objects, the statistics_record
which only contains the data, and statistics_t, which
provides methods to modify statistics during a game (to get
cleaner dependencies)

This fixes multiple related bugs with statistics in replays:
- #4133 (stats not bring reset when loading a replay)
- #4133 (duplicate entry for current scenario in replay)
- #4441 (wrong stats at the beginning of a replay)

And issues with statistics being lost for non-host players when
reloading a game in (online) mp (no ticket for that one found).
2023-05-04 21:25:55 +02:00
Iris Morelle
b567b4286c
Fix unused variable warning on Xcode 14.3 2023-05-04 01:03:59 -04:00
Celtic Minstrel
5c3bdd9e07 Fix errors in zombie recruit dialog 2023-05-02 21:04:41 -04:00
Celtic Minstrel
497e6b7ca6 pick_advance whitespace 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3ba31d532f Add new schemas to validate fonts.cfg and language.cfg 2023-05-02 21:04:41 -04:00
Celtic Minstrel
b223dcbbdd Minor fix to schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
db0ee9f02c pick_advance: Load dialog from separate file so it can be validated 2023-05-02 21:04:41 -04:00
Celtic Minstrel
69ba3e0273 Make schema validation script validate Lua dialogs in gui/ subdirectories 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3cfe0c338d Minor improvement to the schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
5a1491a6ae Split up the GUI2 schema into multiple files.
The motivation for this is to reuse parts of it for another schema.
2023-05-02 21:04:41 -04:00
gfgtdf
ac4a1d001d Fix rare case of current_side being out of range.
skip_empty_sides might return an number greater than
the number of sides to indicate turn changes.
2023-05-03 00:16:12 +02:00
gfgtdf
3fa5fde8aa show the next human sides pov during ai turns.
previously it showed the last human sides point of view
in that situation.

Discussion at #4438
2023-05-03 00:16:12 +02:00
gfgtdf
4f6e0e4719 [side] save_id= now defaults to [side][leader]id=
When neither id non save_id are present in [side]

Similar for [side]side_name which will now use
[leader]name= as a fallback.

As discussed in #3742
2023-05-03 00:16:12 +02:00
gfgtdf
afadcfd7df more checks on mp server synced choices
To gain more information on possible issues similar to #3925
2023-05-03 00:16:12 +02:00
gfgtdf
300eb198a3 remove unit::swap
This was at some point used to implemented the
assignment operator, but the assignment operator
is now deleted.
2023-05-03 00:16:12 +02:00
Slayer95
2413e2f366
Improvements to wmltools3 (#7561)
* wmltools3: Make the CrossRef class iterable

Removes generator() method.

* wmltools3: Check for warn level on lack of wmlscope: set export

* wmltools3: Support passing a list of file paths to initialize CrossRef

* wmltools3: Track lineno_end for Reference

* wmltools3: Track default values for macro optional parameters

optional_args is no longer a list, but a dict.

* wmltools3: Track macro bodies as Reference.body

* wmltools3: Register quoted macro arguments verbatim

* wmltools3: Improve parse_macroref

- Support parsing nested macro calls.
- Remove excessive need of parens around macro calls/arguments.
- Support escaping quotes.
- Other compliance improvements.
2023-05-01 17:08:30 +02:00
Pentarctagon
1819febe92 Remove this bit. 2023-04-30 20:15:20 -05:00
doofus-01
b4471f3a11
Various terrain graphics fixes (#7576)
* improve elevation filtering for disabling ice terrain, fixes #7301

* Fix some wall/bridge/chasm layering. Mostly fixes #7302
2023-04-30 12:39:02 -07:00
Celtic Minstrel
3c4c1c27f8 Add achievements to the in-game menu 2023-04-29 18:14:19 -04:00
Nils Kneuper
f55fec896c updated Italian translation 2023-04-29 19:26:04 +02:00
Pentarctagon
c44cc2742e Copyright update.. 2023-04-29 10:48:11 -05:00
Nils Kneuper
4ff7c6e120 updated French translation 2023-04-29 16:55:22 +02:00
Nils Kneuper
2d9c6c6efc updated British English translation 2023-04-29 16:54:07 +02:00
Nils Kneuper
5a8ee0e6c2 updated Arabic translation 2023-04-29 16:52:55 +02:00
Celtic Minstrel
05bdac4127 Minor grammar fix to bf591e5
[ci skip]
2023-04-29 08:37:20 -04:00
Pentarctagon
bf591e5391 Add most bits from #7381. 2023-04-29 01:19:06 -05:00
Pentarctagon
56c2b18401 Finally fix this TODO. 2023-04-28 20:59:36 -05:00
Steve Cotton
38014a2a1f Test the correct unit in swarms_effects_not_checkable
The test spawns a new unit, this commit makes it test that new unit instead
of the Elvish Archer with a 5x2 melee attack.
2023-04-26 16:34:29 +02:00
Pentarctagon
5f02451ef8 Achievements - use lua_error instead of returning -2
Fixes #7528
2023-04-25 19:16:02 -05:00
Gunter Labes
735df85a3f
Update options that disable logging to file 2023-04-25 10:33:50 +02:00
Slayer95
de6f37f75f
Add gender-specific names for units with random traits (#7546)
Support (fe)male_name key in unit.

Support FEMALE_NAME in macros for named units with random gender.

Add female variants to generic unit names in DiD, TSG and UtBS.
2023-04-24 23:01:14 +02:00
Pentarctagon
7d6f41068c Fix reloading a previous turn not setting the correct active side.
A result of 2845e86 was that when reloading a previous turn as a side other than side 1, the current side  was not correctly reinitialized. Fixes #7564
2023-04-24 12:04:25 -05:00
Gunter Labes
4d23134c63
Make sure the build is not marked as modified 2023-04-24 18:55:34 +02:00
Gunter Labes
0caad54608
Remove wrong documentation 2023-04-24 16:31:22 +02:00
Sergey Popov
db61119ea1
Made flatpak ci job upload bundle too
Convert git checkout to dir in flatpak manifest since otherwise some git operation fails.
Set branch name to "ci" to avoid clashes with other installs.
2023-04-24 10:32:18 +02:00
doofus-01
e000d1de3f
make engine-bobbing sprites use the correct primary frame (#7562) 2023-04-23 20:53:27 -07:00
Pentarctagon
a45ca3f771 1.17.16+dev 2023-04-22 22:35:35 -05:00
Pentarctagon
9909f5910d 1.17.16 1.17.16 2023-04-22 22:34:20 -05:00
Pentarctagon
9269d4aa20 Add a hack to workaround setting the fontconfig cachedir only for windows.
Fixes #7089
2023-04-22 22:31:56 -05:00
Pentarctagon
0001eee8d1 pot-update and regenerate doc files 2023-04-22 22:30:38 -05:00
Gunter Labes
a9061dc212
Return early if there are no sides (#7555) 2023-04-22 22:08:53 -05:00
Nils Kneuper
39c4d26cec updated Italian translation 2023-04-22 00:36:13 +02:00
Nils Kneuper
1bc0d3cd2f updated British English translation 2023-04-22 00:34:33 +02:00
Nils Kneuper
c39203f327 updated French translation 2023-04-22 00:33:32 +02:00