78080 Commits

Author SHA1 Message Date
Charles Dang
b484e52648
Merge pull request #5443 from hexagonrecursion/patch-1
Mention in  INSTALL.md that Vorbisfile is sometimes called libvorbis
2021-01-16 22:48:02 +11:00
Charles Dang
fce91d0e3f AI/aspect_attacks: code cleanup 2021-01-16 22:46:07 +11:00
Andrey Bienkowski
7e2b4dd5bd
Vorbisfile is called libvorbis on Fedora 2021-01-16 11:38:55 +00:00
Charles Dang
156665acbd Ai/aspect_attacks: code formatting 2021-01-16 22:36:33 +11:00
Charles Dang
cb86230bcd Removed adjacent_loc_array_t alias
This is no longer used everywhere (and we have `auto`) so it's easier for intellisense not to have this.
2021-01-16 22:10:24 +11:00
Charles Dang
79b6887d8b AI/aspect_attacks_base: pass an std::aray to do_attack_analysis 2021-01-16 22:06:02 +11:00
Charles Dang
76389cb3c0 Minor cleanup in a_star_search 2021-01-16 21:55:02 +11:00
Charles Dang
3f1ed55831 Actions/Move: greatly simplified a condition 2021-01-16 21:27:26 +11:00
Charles Dang
5b39a1c21e Pathfind/Teleport: made getters return their sets rather than taking them as arguments
Implementations were cleaned up in the process.
2021-01-16 21:24:08 +11:00
Charles Dang
e3055d47ae AI/aspect_attacks_base: format do_attack_analysis argument list 2021-01-16 20:51:54 +11:00
Charles Dang
d65d12e89d Big cleanup of get_adjacent_tiles usage
This adds a new overload of get_adjacent_tiles that returns the array instead of taking the address of
the first element (a C paradigm). This also converts the use of the result to range-for loops when possible,
which is enabled b the fact that we're using std::array here instead of C arrays.
2021-01-16 20:38:24 +11:00
Andrey Bienkowski
a71056df2f Quote an attribute value 2021-01-16 10:20:06 +01:00
Charles Dang
6a0baa563f Few minor code cleanups I had sitting around 2021-01-16 18:03:59 +11:00
Gunter Labes
f29ff05180
Avoid [+campaign] use 2021-01-15 20:45:00 +01:00
Andrey Bienkowski
8f84425ba5 Fix typo: team_name was used instead of user_team_name 2021-01-15 20:28:12 +01:00
Andrey Bienkowski
8581d21e1b Silence warnings about a missing translation mark
There is nothing that needs translating here
2021-01-15 15:33:23 +01:00
Charles Dang
75271a8246
Merge pull request #5430 from hexagonrecursion/wmllint-fog
Replace fog and shroud in map files
2021-01-15 09:25:30 +11:00
Charles Dang
f0d51ac57f
Merge pull request #5431 from hexagonrecursion/wmllint-fix-comment-parsing
Fix comment parsing in wmllint
2021-01-15 09:24:10 +11:00
Charles Dang
2157cf9768
Merge pull request #5432 from hexagonrecursion/wmllint-campaign-id-is-not-missing
Silence wmllint error about a missing campaign id
2021-01-15 07:11:30 +11:00
Charles Dang
e561b35acd
Merge pull request #5433 from hexagonrecursion/wmllint-more-comment-correctness
Fix wrong comment handling in wmllint
2021-01-15 07:11:14 +11:00
Andrey Bienkowski
48d001add7 Fix wrong comment handling in wmllint
A comment containing a string [advancefrom] was causing wmllint to get confused

../../data/campaigns/Dead_Water/scenarios/06_Uncharted_Islands.cfg, line 22: [advancefrom] needs to be manually updated to [modify_unit_type] and moved into the _main.cfg file
2021-01-14 22:57:20 +03:00
Andrey Bienkowski
17a9cb720a Silence wmllint error about a missing campaign id
The following wmllint error was caused by the fact that the campaign definition is split into two and wmllint is not smart enough to understand that.

"../../data/campaigns/Dead_Water/_main.cfg", line 76: campaign requires an ID attribute but has none
2021-01-14 22:28:15 +03:00
Andrey Bienkowski
038f0d5109 Fix comment parsing in wmllint
wmllint saw [side] inside a comment and incorrectly assumed it is reading a side definition

"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 484: side number 5 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 488: side number 5 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 512: side number 6 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 516: side number 6 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 540: side number 7 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 544: side number 7 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 568: side number 8 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 572: side number 8 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 805: side number 1 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 818: side number 2 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 831: side number 3 is out of sequence (11 expected)
"../../data/multiplayer/scenarios/4p_A_New_Land.cfg", line 844: side number 4 is out of sequence (11 expected)
2021-01-14 21:53:00 +03:00
Andrey Bienkowski
e39bf8f4e5 Replace fog and shroud in map files
"../../data/multiplayer/maps/6p_Team_Survival.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_drought.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_firstsnow.map", line 2: warning, fog or shroud in map file
"../../data/multiplayer/maps/Dark_Forecast_secondsnow.map", line 2: warning, fog or shroud in map file
2021-01-14 21:16:46 +03:00
nemaara
92fedf8f2a Add DW rebalance to changelog 2021-01-14 05:03:23 -05:00
nemaara
9917854fa3 DW: rebalancing pass 2021-01-14 04:58:34 -05:00
nemaara
5b84e142e3 DW S8: no bah 2021-01-14 04:23:15 -05:00
Charles Dang
c5e5ce1352
Merge pull request #5429 from hexagonrecursion/wmllint-fog-fix
Fix wmllint confusing fake map border for fog
2021-01-14 18:22:01 +11:00
Andrey Bienkowski
73bc19576a Fix wmllint confusing fake map border for fog
According to this: https://wiki.wesnoth.org/TerrainCodeTableWML
^_fme is Fake Map Border
_f is Fog
2021-01-14 09:57:21 +03:00
Charles Dang
d0ee52e922
Merge pull request #5427 from hexagonrecursion/wmllint-skyhunter
Add missing NOTE_MARKSMAN to Dune Sky Hunter
2021-01-14 16:55:11 +11:00
Charles Dang
4a8245b04d
Merge pull request #5426 from hexagonrecursion/terrain-textdomain
Fix wmllint textdomain warnings in data/core/terrain-graphics
2021-01-14 16:54:44 +11:00
Charles Dang
fa450356b2
Merge pull request #5428 from hexagonrecursion/wmllint-data-core-units
Fix several wmllint errors in data/core/units
2021-01-14 16:54:10 +11:00
Andrey Bienkowski
518f6953d5 Fix several wmllint errors in data/core/units 2021-01-14 08:48:06 +03:00
Andrey Bienkowski
095123d678 Add missing NOTE_MARKSMAN to Dune Sky Hunter 2021-01-14 08:20:23 +03:00
Andrey Bienkowski
426564047e Fix more wmllint textdomain warnings 2021-01-14 07:05:33 +03:00
Charles Dang
cd833206b1 Utils: import make_optional 2021-01-14 12:32:00 +11:00
Charles Dang
a224b465ed Used default initialization instead of nullopt for default function parameters 2021-01-14 10:42:42 +11:00
Charles Dang
cc7204f66e Game Display: make first_turn a static local to the only function that uses it 2021-01-14 10:42:03 +11:00
Charles Dang
2005cfd92e Removed empty doxygen file descriptions (/** @file */) 2021-01-14 09:26:56 +11:00
Charles Dang
543e0d3e4c Display: format initializer list 2021-01-14 07:37:23 +11:00
Charles Dang
ca90cbe620 ToD Manager: minor code cleanup 2021-01-14 07:36:05 +11:00
Charles Dang
17b37737d8 ToD Manager: code formatting 2021-01-14 07:34:19 +11:00
Charles Dang
7703e9264f Time of Day: used emplace_back 2021-01-14 07:32:14 +11:00
Charles Dang
5ef2799ae1 Time of Day: code formatting 2021-01-14 07:07:30 +11:00
Andrey Bienkowski
ad4778037d Add textdomain wesnoth to two files w/o explicit textdomain
wmllint complained:
"../../data/core/macros/movetypes.cfg", line 1: no textdomain string
"../../data/core/macros/optional_unit_advancements.cfg", line 1: no textdomain string
2021-01-13 19:20:52 +01:00
hexagonrecursion
d9ec9b9b55 Add a note about wmllint-1.4 2021-01-13 18:27:16 +01:00
Andrey Bienkowski
c2badb8fc6 Add textdomain wesnoth to data/core/about_i18n.cfg
wmllint complained:
"../../data/core/about_i18n.cfg", line 1: no textdomain string
2021-01-13 13:56:52 -03:00
hexagonrecursion
7dce7fcffe wmllint: fix typo in a comment 2021-01-13 16:41:38 +01:00
Steve Cotton
5dc167a8e6 Remove the unused completely_redrawn event
No observers attached themselves to this event. Commit ea257355 removed some
code that should have been triggered by the event, but which now (since
ea257355) uses the "theme_reset" event or update_enabled_buttons() instead.
2021-01-13 01:55:10 +01:00
Charles Dang
fbef35bcbf Fixup doc comment 2021-01-13 05:18:40 +11:00