79100 Commits

Author SHA1 Message Date
Steve Cotton
08b65b2bd7 Tutorial S02 and tips: Mention holding shift for accelerated speed
One of these uses bold for the menu's name, the other uses italic, because that
seems more consistent with the other hints in the same context.

Re-attach the comment about upkeep to the correct [event], and move the comment
about the easter-egg event to the start of its [event].
2021-06-14 09:57:26 +02:00
doofus-01
a7b556fe6b
Update changelog.md 2021-06-13 20:54:19 -07:00
doofus-01
4811de8642
Last minute Naga things (#5855)
* move UtBS mace nagas to core

* adding mace naga portraits from LordBob

* move naga hunter portrait to UtBS from core

* de-bow-ify the ophidian nagas and add Deflect weapon special

* revisions to mace nagas base sprites

* revisions to naga guards, including new weapon special Absorb

* compatibility Nagas for UtBS
2021-06-13 20:51:38 -07:00
Celtic Minstrel
2f4868351b Remove undocumented wesnoth.game_config.eras 2021-06-13 23:26:48 -04:00
Celtic Minstrel
85653d64c3 Make repeats argument optional in wesnoth.audio.play 2021-06-13 23:26:33 -04:00
Steve Cotton
7ed7a05e47 Tips: remove hints about tooltips and the hotkey preferences
Tooltips are such a common GUI feature that having a tip of the day about them
seems unnecessary. I'd expect a player to find out that we have them the first
time that the player wonders "what does that button do?".

While having hints about specific hotkeys seems logical, a general hint to
read the list of keybinds doesn't seem helpful.
2021-06-14 01:42:48 +02:00
Nils Kneuper
2df6235efd updated Indonesian translation 2021-06-12 11:36:55 +02:00
Nils Kneuper
8709e0d58e updated Czech translation 2021-06-12 11:32:28 +02:00
Nils Kneuper
037ac7fa25 updated British English translation 2021-06-12 11:31:10 +02:00
Celtic Minstrel
fb17bfca71 Fix wesnoth.scenario deferring to wesnoth.game_config 2021-06-11 22:32:39 -04:00
Celtic Minstrel
1313a8ddd3 Fix mapgen Lua kernel using the wrong random function
This simply overwrites mathx.random in the mapgen kernel.

Fixes #5846
2021-06-11 21:57:55 -04:00
Pentarctagon
2190792369
Use correct type for SQL case-selected value. 2021-06-11 15:15:32 -05:00
mattsc
4de9720c1f
Merge pull request #5851 from wesnoth/CelticMinstrel-patch-1
Fix bug in AI state loading that could cause an error when the AI is initialized from a saved game
2021-06-11 12:49:27 -07:00
Celtic Minstrel
42cb24e89f
Fix bug in AI state loading that could cause an error when the AI is initialized from a saved game 2021-06-10 21:06:48 -04:00
Pentarctagon
cb7bf96a5b
Minimum boost version is 1.66. 2021-06-10 18:49:37 -05:00
Pentarctagon
ff7ebc2243 Add option to pre-populate wesnothd's user list with dummy users.
None of the dummy players have an actual connection or client, so any attempt to interact with them will fail. The main usecase for this right now is testing the performance of the MP lobby UI updates when there are many players online.
2021-06-10 18:16:49 -05:00
mattsc
d8e472e753
Merge pull request #5609 from mattsc/mai_fix_replay
Micro AIs: fix unit variables being lost in replays
2021-06-10 11:42:50 -07:00
mattsc
152e18b9d6
Merge pull request #5595 from mattsc/undo_assert
Fix potential crash when running commands in synced context
2021-06-10 11:08:53 -07:00
mattsc
7e22e5c8f2 Fix assert with custom synced AI commands
Function run() at the beginning of synced_context.cpp asserts when a command is configured not to be undoable (use_undo=false), but the undo stack is not empty (resources::undo_stack->can_undo() returns true). Thus, the undo stack needs to be cleared before executing commands that are not supposed to be undoable.

Most AI commands use use_undo=false, but custom synced commands route through do_command, which uses a hard-coded use_undo=true. That, by itself, is not a problem, but if the next AI action uses use_undo and does not clear the undo stack first, the assert is triggered. AI actions with use_undo=false therefore need to clear the undo stack. This commit adds that for recruiting and recalling, the only AI actions that did not already do so.
2021-06-10 08:56:11 -07:00
Steve Cotton
629df4e76c Slight optimisation of canvas::set_variables using std::move
Doesn't make much difference for release builds built with GCC,
it takes between 1% and 7% off the cost of std::update_canvas().
Calculated using the time taken by gui2::widget::get_best_size()
as a reference.

It's a tiny improvement, but it's also a tiny change, and the
improvement is in the loop that's MP lobby's performance problem,
as described in issue #5578.
2021-06-09 19:28:46 +02:00
loonycyborg
c7d35237f6
Add TLS changes to changelog 2021-06-09 20:04:39 +03:00
Steve Cotton
bf3f22a030 Make the profiler configurable in CMake's UI 2021-06-09 11:21:54 -05:00
Pentarctagon
e53d9c321d
Update gcov options. 2021-06-09 02:51:17 -05:00
Pentarctagon
f4e6e1861f
Add -fno-omit-frame-pointer for perf. 2021-06-09 00:59:43 -05:00
Iris Morelle
e0d60b0e2b font: Remove dead code and WML previously associated to SDL_ttf
The [fonts] [font] WML was only used to set up SDL_ttf fonts. The engine
code to read it was left in after
2dfdc0061d400ffad39f974d7fe9348204af0d08 in a dead state (some
structures are filled with data that never gets used).
2021-06-09 01:37:05 -04:00
Pentarctagon
4b35be4bb0 Combine profile build into release build. 2021-06-08 21:23:38 -05:00
doofus-01
957496560b
Update changelog.md 2021-06-06 21:02:57 -07:00
doofus-01
eed1fe6073
SoF - final scenarios (#5835)
* some revisions to final two scenarios

* update the credits

* add cave and red wyrms (dragon-ish bat replacements)
2021-06-06 20:58:12 -07:00
Celtic Minstrel
f7e43799ba Remove the deprecated wesnoth.select_hex 2021-06-06 13:43:13 -04:00
Celtic Minstrel
3c8de46771 There were some old functions that are now covered by the wesnoth.scenario module, so deprecate them 2021-06-06 13:42:54 -04:00
Steve Cotton
63bb15b94e Add a unit-test for the backstab ability 2021-06-06 08:45:36 +02:00
Celtic Minstrel
d5b8d96118
Schema: Add lua_goal support (#5833)
Also add an else to the goal validation cases, which will produce an error in the event of an invalid name value
2021-06-05 23:20:20 -04:00
Gunter Labes
a2f81aaa7a
Allow empty variation id again
Unintentionally removed in 0a17fc9bd5e.
2021-06-06 01:08:01 +02:00
Gunter Labes
0a17fc9bd5
Warn about an unknown variation 2021-06-05 23:11:53 +02:00
Gunter Labes
9ccbf9989c
Fix malin_resist AMLA 2021-06-05 20:43:07 +02:00
Gunter Labes
0b2b15c326
Simplify WML a little 2021-06-05 20:43:07 +02:00
Gunter Labes
8e323434ca
Improve warning message 2021-06-05 20:43:06 +02:00
Celtic Minstrel
1b533634fb
WFL: Fix deprecation messages when using the enemy_of() function 2021-06-05 13:40:01 -04:00
Nils Kneuper
87f31ad78e updated British English translation 2021-06-04 12:13:41 +02:00
Nils Kneuper
aca2cb679e updated Italian translation 2021-06-04 12:12:15 +02:00
newfrenchy83
3e05480b5b fix codeblock projectfiles 2021-06-03 18:53:16 -05:00
Pentarctagon
4a2b8ede4a
Fix infinite recursion crash. 2021-06-03 11:01:15 -05:00
newfrenchy83
b9cbc084c3 update codeblock projectfiles 2021-06-02 13:18:21 -05:00
Pentarctagon
52f4e10c0e
Bump cache ID number. 2021-06-02 12:31:55 -05:00
Pentarctagon
548e37939f Attempt to fix xcode. 2021-06-02 12:31:01 -05:00
Pentarctagon
e7a4869c4a Remove nonce and double hashing as it's no longer needed. 2021-06-02 09:28:59 -05:00
Wedge009
ce2eba73ac Use TEXT() macro to handle ANSI vs UNICODE string literal. 2021-06-02 20:37:30 +10:00
nemaara
c687e31701 DiD: fix bad variable names 2021-06-02 02:24:04 -04:00
Pentarctagon
5497b1b68f Fix login error when user not registered. 2021-06-01 16:34:09 -05:00
Charles Dang
5d5f62e31e
Merge pull request #5820 from stevecotton/addons_two_panel
Add-ons manager: Fix bugs that return to the title screen with an "Invalid WML" message
2021-06-01 16:49:37 -04:00