78854 Commits

Author SHA1 Message Date
Gunter Labes
b74f2e1471
Remove obsolete comment 2021-04-28 19:51:40 +02:00
Steve Cotton
8e315683ae Add wesnoth.colors[name].pango_color and use it in the multiplayer turns-over dialog 2021-04-28 10:44:19 +02:00
Steve Cotton
26b3ad42a5 Multiplayer turns over dialog: stop using %d and %s in translatable strings
This should probably be changed into a table of GUI2 widgets, but this commit
is an improvement on what was here before. It removes the broken conjunct list
formatting for 3-way ties. However, it also means that there are 5 lines per
language to translate again.

Fixes #4274.
2021-04-28 09:11:29 +02:00
newfrenchy83
03e87ffb2c remove SDL2_ttf.a to codeblock projectfiles 2021-04-27 17:53:49 -05:00
Pentarctagon
384fe35bab
Remove a reference to travis. 2021-04-27 15:29:30 -05:00
Steve Cotton
bfe1f516ac Keep the Windows CIs on a version of vcpkg that builds Wesnoth
Quick workaround for #5741, the Windows builds weren't finding Pango's header
files when used with vcpkg version 546813ae7b9e2873dd3d38e78b27ac5582feae10
([glib up to gtk] update and make it work with meson).

Hopefully we can revert this workaround soon.
2021-04-27 20:03:57 +02:00
Pentarctagon
a09ffa9fd8
Remove sdl2-ttf dependency from VC16 projectfiles. 2021-04-27 11:31:50 -05:00
Elvish_Hunter
265116e1a0 wmlparser3: fixed a crash when using XML output 2021-04-27 17:54:22 +02:00
Pentarctagon
3858737ac3
Remove sdl2-ttf dependency from vcpkg on CI. 2021-04-27 09:32:31 -05:00
Iris Morelle
c6c4c81e8e Update changelog
[ci skip]
2021-04-27 04:57:59 -04:00
Grzegorz Halat
70d8df7c9e Remove a workaround for pre-SDL2.0.5 bug in SDL_BlitSurface()
display::scroll() method has a workaround for a bug in
SDL_BlitSurface(). This SDL2 functions was not working correctly
with overlapping source and destination surfaces.

The bug has been fixed in SDL2.0.5 by this commit:
aae28e3ec1

This workaround is not required after SDL2 version bump to 2.0.8.
2021-04-27 04:53:27 -04:00
Grzegorz Halat
452ebd01af Remove compile-time SDL2 version checks used to determine SDL_CreateRGBSurfaceWithFormat() availability
These checks are not required after SDL2 version bump to 2.0.8.
2021-04-27 04:53:27 -04:00
Grzegorz Halat
ae58e58a30 Remove workarounds for SDL2.0.6 bug in SDL_FreeSurface()
Workarounds in CVideo class and surface::free_surface() method are not
required after SDL2 version bump to 2.0.8.

The workaround in CVideo class was incorrectly applied for SDL2 >= 2.0.6,
instead exactly for 2.0.6, as in the case of surface::free_surface().

After removing workarounds, the surface::clear_without_free() method
has no callers and can be removed.
2021-04-27 04:53:27 -04:00
Grzegorz Halat
c0db7311bb Bump SDL2 version to 2.0.8 2021-04-27 04:53:27 -04:00
nemaara
9e4c770553 HttT: date fix again 2021-04-26 20:58:45 -04:00
Hejnewar
f027cd4900
Fix #5729 2021-04-26 18:17:47 +02:00
nemaara
ac9f6da122 HttT: fix bad time references (fixes #5740) 2021-04-26 02:20:12 -04:00
Pentarctagon
da336038c4
Make it more obvious which test failed. 2021-04-26 00:40:27 -05:00
Pentarctagon
fce4534493
Add comment for why the macOS ARM jobs are disabled. 2021-04-26 00:37:05 -05:00
Pentarctagon
454130fd94
Fix trailing whitespace. 2021-04-25 21:58:20 -05:00
Pentarctagon
2d4913f2e5
Delete temp file so it doesn't get picked up later. 2021-04-25 20:55:51 -05:00
Celtic Minstrel
31421f3558
Add a Lua unit_test module only available in [test] scenarios (#5708)
It contains fire_wml_menu_item along with a set of new assert functions
2021-04-25 21:04:50 -04:00
Pentarctagon
5dde3d735d
Print out what was modified. 2021-04-25 19:52:02 -05:00
Pentarctagon
e74abf0567
Fix the check for whether files were modified. 2021-04-25 17:54:56 -05:00
Pentarctagon
78422f46fc
Check the correct directory for lua. 2021-04-25 15:35:03 -05:00
Pentarctagon
cc34f01f68
Add cpp|hpp and lua file whitespace check to CI. 2021-04-25 15:15:44 -05:00
Pentarctagon
d203b061f9
Whitespace cleanup of lua files. 2021-04-25 15:11:09 -05:00
Pentarctagon
e3303e62b8
Whitespace cleanup of cpp|hpp files. 2021-04-25 15:09:40 -05:00
Gunter Labes
70e2e7f4a6
Add missing closing parenthesis 2021-04-25 21:45:53 +02:00
loonycyborg
5d8c476396
scons: remove file existence check from InstallData
It was breaking install of generated files. Also adjusted manpage
install which was relying on this behavior.
This helps with issue #5692
2021-04-25 03:11:56 +03:00
loonycyborg
546355f32e
scons: look for systemctl instead of systemd when determining default value of "systemd" option
This is a more reliable way to detect distro with systemd support.
"systemd" binary may not be in PATH while systemctl would have to be.
This helps with part of issue #5692
2021-04-25 02:07:28 +03:00
Nils Kneuper
b103c17fbc updated Dutch translation 2021-04-25 00:55:59 +02:00
Nils Kneuper
b44d15131f Revert "updated Dutch translation"
This reverts commit 7ab3306e1a2693c0443d72bfda2e0c3df3e7d0cd.
2021-04-25 00:53:32 +02:00
Nils Kneuper
96d60a58d8 updated Italian tranlsation 2021-04-24 11:21:14 +02:00
Nils Kneuper
159ebb2467 updated British English translation 2021-04-24 11:20:02 +02:00
Nils Kneuper
7ab3306e1a updated Dutch translation 2021-04-24 11:18:51 +02:00
Severin Glöckner
e931488f0b Dark Forecast: don't modify unit movement costs
Preferrably leaving them in the vanilla version.

Closes #3891
2021-04-24 02:02:26 +02:00
Steve Cotton
6d453e9fe9 Update the C++ version in CONTRIBUTING.md to C++17 2021-04-23 09:07:53 -05:00
Steve Cotton
93cd645205 UtBS: Use $amount instead of %d in the teaching ability
Part of #4436
2021-04-23 09:57:12 +02:00
Pentarctagon
ed92ba75fe Add version to connection_history. 2021-04-22 14:56:16 -05:00
Tahsin Jahin Khalid
0700434acb
[WC] Fix deprecated code usage and enable Dunefolk (#5727)
Fixes #5545 
Addresses #5650
2021-04-22 13:43:38 -04:00
Grzegorz Halat
430d640408 Fix save_index issues
This commmit fixes some issues related to save_index:
* fixes a bug in save_index_class::remove() method.
  The method incorrectly tries to remove an attribute from root config instead of removing 'save' children.
  In effect, save files were not being removed from the save_index file.
* removes call to save_index_manager_->remove() in savegame::finish_save_game
  This call to remove() is incorrect and has no effect except causing unneeded call to write_save_index().
* introduces a new clean_up_index() method in save_index_class.
  The method removes non-existing save files from the index. Clean up is triggered only during the first
  synchronisation of the index to disc and only if the index has more save files than found on disk.
2021-04-22 07:23:10 +02:00
Hejnewar
f5ea3b0906
Update code of [unstore_unit] 2021-04-22 01:32:06 +02:00
newfrenchy83
73a76a1644
fix text don't readable because duration not specified (#5725)
HttT S23: fix floating text duration
2021-04-21 15:38:38 -04:00
newfrenchy83
e795e1e528 fix a rare bug in has_weapon_ability
this bug when a teacher with bool ability weapon is adjacent with another teacher enemy and their student fight each.
2021-04-20 23:30:23 -05:00
newfrenchy83
23b5c05490 add description in changelog 2021-04-20 23:30:23 -05:00
newfrenchy83
3db6b8b9d0 modify overwrites_specials in engine and utils.cfg macro 2021-04-20 23:30:23 -05:00
newfrenchy83
d4ce159c8d modify overwrite_specials attribute in schema 2021-04-20 23:30:23 -05:00
nemaara
1b0d63f305
Liberty S7: date fix 2021-04-19 15:17:21 -04:00
Steve Cotton
fa72014158 run_wml_tests: Print the correct test name when a test fails
The fix in 9535ed9 didn't work, the script still crashed on that line, the
logic for working out how many tests in the batch had passed wasn't correct.
This commit drops that logic, and drops the dependent feature of trying to
retry the next test in the batch, and simply says the entire batch failed.

The new logic for filtering the output of a failed batch is much simpler - the
script doesn't filter it and we assume the developer is just going to ignore
any line that starts "PASS TEST". Only tests that are expected to pass get
batched, so the output is going to look something like the following:

	PASS TEST: test_return
	PASS TEST: test_assert
	PASS TEST: test_return_2
	PASS TEST: test_assert_2
	Assertion failed: assert false
	FAIL TEST: test_assert_fail

	Failure, Wesnoth returned 1 FAIL but we expected 0 PASS

A set of constants is added defining how many -v arguments are needed to
enable a given set of debugging output. Expectation is that level 0 is normal,
and level 1 is for developers who like long-running build processes to print
something to show that they're not stuck.
2021-04-19 07:41:03 +02:00