80719 Commits

Author SHA1 Message Date
Tommy
12c4e5d7d6 image::flush_cache(): fix typo in code, and small tidy. 2022-06-27 16:05:47 +12:00
Pentarctagon
e61fc20c05
Add missing newline. 2022-06-26 18:23:54 -05:00
Tommy
76422acb79 sdl: Add a cheap runtime SDL version check.
A few places were updated to use this check, including one that turned
out to be incorrectly making runtime decisions at compile time.
2022-06-26 21:22:36 +12:00
Tommy
382692c630 draw: Draw rectangles as lines for some SDL versions.
Some versions of SDL aren't very good at drawing rectangles, on some
systems.

Aimed at fixing #6799.
2022-06-26 21:22:36 +12:00
Nils Kneuper
9301e93c26 updated Finnish translation 2022-06-25 12:00:31 +02:00
Nils Kneuper
6b1722ae3b updated British English translation 2022-06-25 11:57:50 +02:00
Nils Kneuper
df93183a21 updated Arabic translation 2022-06-25 11:55:49 +02:00
Tommy
738392069d Fix a whole bunch of bad indentation.
Mostly spaces where tabs should have been used.
2022-06-25 15:24:03 +12:00
Tommy
a0daa2ddce Remove old code to hide VSync in prefs for old SDL versions.
It was for the software renderer, and is no longer relevant as hardware
rendering has been enabled exclusively.
2022-06-25 13:54:26 +12:00
Tommy
bef4ceba4f
Merge pull request #6795 from mesilliac/image_cache_skip
Add options to skip adding images to the surface and texture caches
2022-06-25 13:32:33 +12:00
mattsc
a70ecf1ff5
Merge pull request #6783 from mattsc/expai_updates
Some fixes to the Experimental AI
2022-06-24 16:37:59 -07:00
mattsc
6796ac3d56
Merge pull request #6792 from mattsc/retreat_allied_villages
Fix retreat injured CA taking allied villages
2022-06-24 16:31:15 -07:00
mattsc
b55148ce91 Retreat injured CA: fix for regenerate ability without value key
The ability does not need to contain a value key if it only heals poison.
2022-06-24 16:03:51 -07:00
mattsc
7f62a484d2 Clarify test scenario hotkey description
Also use the same text as title for the dialog.
2022-06-24 15:57:21 -07:00
Celtic Minstrel
1554241e86
Make predicate optional in config::remove_children (#6796) 2022-06-24 08:35:43 -04:00
Tommy
e1120aeb3b editor: Use texture for mouseover hex overlay, not surface
Uses IPF to construct the overlay textures, where necessary.
2022-06-24 23:20:51 +12:00
Tommy
f38017a4f5 editor/palette: Use textures, not surfaces 2022-06-24 23:20:51 +12:00
Celtic Minstrel
666571caa2
Fix load_string() ignoring the passed chunk name (#6794)
Complete with a unit test!
The test results in PASS_BY_VICTORY if it fails,
which is a bit weird, but it does work.
2022-06-24 01:49:28 -04:00
Tommy
9cf67663c6 image: There's no need to exit image namespace for anon namespace 2022-06-24 14:30:47 +12:00
Tommy
2684d4e3b9 image: Clarify lit image cache names
lit_variants -> lit_surface_variants
lit_cache -> lit_surface_cache
lit_images_ -> lit_surfaces_
lightmaps_ -> surface_lightmaps_
2022-06-24 14:14:19 +12:00
Tommy
d9f039058e image: Simplify surface cache organization. 2022-06-24 14:14:13 +12:00
Tommy
55259dd8b9 image: Add option to skip caching when loading surfaces and textures.
When loading a plain image file (no modifications) as texture,
only the texture will be cached, not the intermediate surface.

Some diagnostics were added to determine how often skipped items are
reloaded. A quick check indicated that skipping the surface cache for
plain file loads to texture did not usually result in duplicate loads.

On the other hand skipping the surface cache for textures loaded with
modifications did frequently result in duplicate loads. In this case
the surface cache will only be skipped if explicitly requested.
2022-06-24 14:05:42 +12:00
Tommy
190a6544cb image: Tidy up debugging code 2022-06-24 11:40:05 +12:00
mattsc
28831fe1dd
Merge pull request #6793 from mattsc/Xcode_warnings
Fix Xcode warnings
2022-06-23 08:19:09 -07:00
mattsc
1945c6a255 Xcode project: use same warning flags for debug and release builds 2022-06-23 07:00:42 -07:00
mattsc
e776d8c8d9 Xcode: enable strict builds 2022-06-23 07:00:41 -07:00
mattsc
6786b26b2a Fix Xcode warnings 2022-06-23 07:00:35 -07:00
mattsc
c1d1ff517a ExpAI recruit rushers: include unit types from extra_recruit
This fixes #4924. Note, however, that the recruit rushers CA is set up for single-leader sides and does not work with multiple leaders, so this is of limited use.
2022-06-22 16:31:39 -07:00
mattsc
7877218158 Deprecate generic_recruit_engine.lua 2022-06-22 16:31:39 -07:00
mattsc
45ac8de582 ExpAI recruit rushers: new parameter reset_cache_each_turn
Many of the operations of the recruit rushers CA are expensive and are therefore cached. For the most part, this cache can be kept from turn to turn, but in case there are events that change, for example, the map or the recruit list, this parameter can be used to force a reset of the cache each turn.
2022-06-22 16:31:39 -07:00
mattsc
561314b0f6 ExpAI recruit rushers: do not parse side __cfg each eval 2022-06-22 16:31:38 -07:00
mattsc
dfde09c174 ExpAI recruit rushers: reset recruit_data.recruit each turn
While most data in recruit_data can stay persistent from turn to turn, some of recruit_data.recruit, such as enemy_types, needs to be updated each turn.
2022-06-22 16:31:38 -07:00
mattsc
e4b776cbb8 ExpAI: do not use generic_recruit_engine
This removes the need for the Generic Recruit Engine and makes Recruit Rushers a "clean" candidate action.  In the process, it fixes a bug of data leakage between the Experimental AIs of different sides.
2022-06-22 16:31:28 -07:00
Wedge009
3de9599b74 Belated change log entry for resolution to #5620 and #6544.
[ci skip]
2022-06-23 07:46:08 +10:00
mattsc
b9506ff795 Retreat injured CA: allow taking ally villages when aspect is set 2022-06-22 08:16:31 -07:00
mattsc
ce9ba142bc Add new AI aspect allow_ally_villages 2022-06-22 08:00:50 -07:00
mattsc
2b3824f44c Retreat injured CA: do not take villages from ally 2022-06-22 07:51:46 -07:00
Celtic Minstrel
be8783154e
Add event unit tests for dynamic filters and names (#6785) 2022-06-21 22:25:01 -04:00
mattsc
fdb931bb16 Remove Lua AI code deprecated at level 3 in 1.15 2022-06-21 19:15:00 -07:00
Pentarctagon
2a16933229 Enable LTO for flatpak. 2022-06-21 19:14:43 -05:00
loonycyborg
e6d67c89fd
Updated msys2 Dockerfile 2022-06-21 20:24:05 +03:00
Elvish_Hunter
f1fb3a73a8 wmlunits: used os.path.join() to build paths instead of string concatenation 2022-06-21 18:29:57 +02:00
Tommy
888218c446 image: Flush texture caches 2022-06-22 00:30:55 +12:00
Celtic Minstrel
ab9fe9e09e Factor out the code that fetches the list of attributes into a separate function 2022-06-20 20:54:28 -04:00
Celtic Minstrel
f351c4df9d Rename dir() to wesnoth.print_attributes()
However, the original name dir() is still exposed in the Lua console only.
2022-06-20 20:54:28 -04:00
Celtic Minstrel
3fb0addbeb Address another review comment 2022-06-20 20:54:28 -04:00
Celtic Minstrel
a17d5089f4 Address some review comments 2022-06-20 20:54:28 -04:00
Celtic Minstrel
ed8029d522 fix whitespace 2022-06-20 20:54:28 -04:00
Celtic Minstrel
de080ad368 Misc dir() support
- Named tuples
- Version
- vconfig
2022-06-20 20:54:28 -04:00
Celtic Minstrel
eb253aa7ca dir() support for colour ranges 2022-06-20 20:54:28 -04:00