Commit graph

84162 commits

Author SHA1 Message Date
Nils Kneuper
c0541dce06 updated Finnish translation 2024-07-13 11:31:53 +02:00
Nils Kneuper
448ab75188 updated Chinese (Simplified) translation 2024-07-13 11:30:37 +02:00
Nils Kneuper
d5958da34c updated Bengali translation 2024-07-13 11:29:40 +02:00
doofus-01
5fff9c5c3f
EI: Cleanup of urbanjungle terrain type
Cleans up the help browser and fixes #8497 (and makes the icon no longer pink).
2024-07-12 14:58:15 +02:00
Charles Dang
156630d314 Use std::numeric_limits instead of C macros 2024-07-12 02:49:27 -04:00
Steve Cotton
bcd97b209a updated German translation
Thanks to Wuzzy for all of these.
2024-07-11 22:27:07 +02:00
Gunter Labes
e7acc0e3b9 Perform multiplication in result type for types larger than int
Makes the code do what is commonly expected and avoids needless overflow since
otherwise the multiplication is done as int.
2024-07-11 20:57:57 +02:00
Subhraman Sarkar
e7c09868b7 fix whitespace 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
7ba098a182 mention gui test dialog in manpage 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
7b5b92a0e5 remove non-ASCII quotation 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
10c498c993 update manpage 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
9e87bdd67d fix whitespace 2024-07-11 20:46:27 +02:00
Subhraman Sarkar
815a4379e6 update documentation and move condition to top
thanks to stevecotton for the documentation message for no-log-sanitize
2024-07-11 20:46:27 +02:00
Subhraman Sarkar
8166ab25ab add a command line option for disabling log sanitization (#8505) 2024-07-11 20:46:27 +02:00
Gunter Labes
5461f226e7
Allow manual trigger 2024-07-11 18:04:37 +02:00
Gothyoba
102e1b4629
[Units] update Wyvern Rider description (#9020) 2024-07-10 12:55:44 +06:00
Gunter Labes
d7da385586
WC: Remove bogus comment 2024-07-09 15:26:09 +02:00
Wedge009
aebfcf72a1 EI: Minor changes to item wording. Resolves #9070. 2024-07-09 12:37:49 +10:00
Charles Dang
21cbe43a00 Clean up macOS CI job config 2024-07-08 22:02:32 -04:00
Charles Dang
5a77ff92c6 Revert "color_t: make macOS happy"
This reverts commit 19022f1181.
2024-07-08 22:02:32 -04:00
Charles Dang
c2decdfb58 Remove macOS compat path for std::variant and std::any 2024-07-08 22:02:32 -04:00
Charles Dang
8792655e26 Bump macOS deployment target to 10.13 2024-07-08 22:02:32 -04:00
Wedge009
f793be4fa5 EI S10: Clarify Dacyn's self-sacrifice. Resolves #9066.
[ci skip]
2024-07-09 12:01:23 +10:00
pentarctagon
888fbf13e5 changelog_entries 2024-07-08 17:42:20 -05:00
pentarctagon
f0991ec9c1 remove use of the config directory
the credentials and lan config files will now use the userdata folder
2024-07-08 17:42:20 -05:00
pentarctagon
a6a27ef947 get_prefs_file -> get_synced_prefs_file 2024-07-08 17:42:20 -05:00
pentarctagon
3f3c7628e8 default editor dir cleanup 2024-07-08 17:42:20 -05:00
pentarctagon
ffcd19916b do this right 2024-07-08 17:42:20 -05:00
pentarctagon
bf512a5e1a handle unknown preferences. 2024-07-08 17:42:20 -05:00
pentarctagon
e9f13b1958 Implement reading/writing the synced and unsynced preferences
Reading the preferences will now:
* read the default preferences (if defined) and add them into the preferences config
* read the unsynced preferences and add them on top of any default preferences
* read the synced preferences and add them on top of the default and unsynced preferences.

Writing the preferences works basically the same way, just that it writes out preferences to either the synced or unsynced preferences file depending on the preference. This is determined by the std::arrays added to preferences.hpp and is checked at compile time via the static_assert these these arrays and the prefs_list are all constexpr - forgetting to add a new preference or remove an existing preference to these arrays will cause a compile error.

This also means that unknown preferences will not be written back out, so the removal of any existing "password" and "password_is_wrapped" preferences no longer needs to be explicitly done. Additionally, the clear() and erase() methods are removed:
* clear() is not desireable in the first place and it's not actually applicable to anything currently using it since they're just single attributes at the root of the config object anyway
* erase() is a one liner method that's not needed anymore since all handling now has access to the preferences_ config object
2024-07-08 17:42:20 -05:00
pentarctagon
54ab301343 Move the MP alerts preferences to prefs_list 2024-07-08 17:42:20 -05:00
pentarctagon
80fe9ba84d Move data that should be synced between computers to a common dir
Fixes #8059
2024-07-08 17:42:20 -05:00
ZombieKnight
56afa893bb
WFL: Use correct argument for the second location in rotate_loc_around (#9077) 2024-07-08 08:32:12 -04:00
Gothyoba
7b54d42d4b Updated link to android version in README
The app has been removed from the play store
2024-07-07 22:12:32 +05:30
Toom
35e405dde5 Pick Advance: remove irrelevant objects, closes #5707 2024-07-07 13:56:24 +02:00
Toom
1f0ffe0058 Pick Advance: merge moveto event into turn_refresh, closes #8954 2024-07-07 13:56:24 +02:00
Nils Kneuper
b0e9ac1947 updated British English translation 2024-07-06 10:00:17 +02:00
Nils Kneuper
c0a9d90d18 updated Czech translation 2024-07-06 09:58:09 +02:00
Nils Kneuper
eb23047ad8 updated French translation 2024-07-06 09:56:43 +02:00
Wedge009
c67d130507 SoF: Align masked dwarf portrait to the right, consistent with S9. Resolves #9008. 2024-07-06 11:44:32 +10:00
Steve Cotton
b0c8b69942 Ignore GCC-14 and Clang false positives about dangling pointers
For GCC-13, cfb28fbfb5 (in master)
added -Wno-dangling-reference, and that commit explains why the
false positive is triggered by calling find_widget. For GCC-14
there's an attribute so we can flag this specific function as ok.

Clang complains about unknown attributes in the gnu:: namespace,
so has to have the #if, and the #if means we need the #ifdef.

There are still warnings in src/actions/attack.cpp, but that area is
being worked on for an infinite recursion bug, and those warnings log
in a single batch instead of being spread across multiple .cpp files.

(cherry picked from commit e42f83a8d2,
with an improvement to the documentation after cherry-picking)
2024-07-05 23:19:01 +02:00
Steve Cotton
5e8df616d9 Fix warnings about a template id in a constructor
It's redundant, and GCC-14 warns that this isn't allowed in C++20.

(cherry picked from commit d5b726df6e)
2024-07-05 23:19:01 +02:00
Steve Cotton
1c9e3f220c Fix dangling reference warnings about refs to iterators
These are causing warnings with GCC-14.

An iterator can often be a struct containing a single pointer, so
creating a reference to such a small struct doesn't make sense.

The structure returned by child_range is likely to be exactly two
pointers, so it's not a burden to keep it even though back() has
already finished accessing the child_iterator.

(cherry picked from commit 087fa65dc5)
2024-07-05 23:19:01 +02:00
Charles Dang
791eed42cf Optimize color_range reference palette generation
For this specific codepath on game launch, it reduces it's execution time from ~18ms to ~1ms.
2024-07-05 16:19:02 -04:00
Subhraman Sarkar
4c1b1ebe20 reduce hardcoded extensions in python files, only instance at wmltool3.py 2024-07-05 09:05:26 +05:30
Subhraman Sarkar
078c618f3a reduce hardcoded extensions in cpp files, only instance at filesystem.cpp 2024-07-05 09:05:26 +05:30
Steve Cotton
c930a7e476 Delete the wmltools3.Translation class
Appears to be unused, and is still Python2 code. To be Python3, these
lines need to change:

- f = file(fn)
+ f = open(fn, encoding="utf-8")

- gettext = f.read().decode("utf8")
+ gettext = f.read()

Even knowing how to make it work, it still doesn't seem useful to keep.

wmlunits uses html_output.Translation, but that's not this class. It's
a wrapper around Python's standard gettext library, in html_output.py.
2024-07-04 16:37:39 +02:00
Steve Cotton
de48a16034 Remove unused dawn.png image, update copyrights.csv
dawn.png was leftover from the Time of Day being shown with an overlay
image; 074e157400 removed dusk.png and
night.png. The image itself should be a transparent blue hexagon, but
the alpha channel was corrupted, and so it appeared completely
transparent.

In copyrights.csv, make the capitalisation of Kitty's name consistent,
and attribute the orb-disengaged.png image.
2024-07-04 14:56:23 +02:00
Subhraman Sarkar
9496dd4edf add po hint 2024-07-04 02:31:47 +02:00
Subhraman Sarkar
b6e8142780 use correct font for tick character (#9055) 2024-07-04 02:31:47 +02:00