73941 Commits

Author SHA1 Message Date
newfrenchy83
00ef295c1b resolve https://github.com/wesnoth/wesnoth/issues/3771
now, filter_opponent usable for backstab abilities
2019-02-19 22:24:25 -05:00
blaf
845978dc9c Fix #3912: Abilities display in sidebar should use the mouseover hex (#3929)
Show ability of a selected unit as active/inactive with respect to
mouseover hex. For example, selecting an Elvish Ranger that stands on a
forest and highlighting a water hex should show the "ambush" ability in
gray.
2019-02-18 19:45:25 +02:00
josteph
2975d616dc Lua: Add wesnoth.get_language returning the current locale
As @ProditorMagnus points out, Lua code can already figure out the
locale by calling wesnoth.textdomain("wesnoth")(s) where s is any string
from po/wesnoth/wesnoth.pot.  https://forums.wesnoth.org/viewtopic.php?p=638560#p638562
2019-02-17 16:45:14 +00:00
Nils Kneuper
3cb1e59cd3 updated Chinese (Traditional) translation 2019-02-17 11:34:52 +01:00
Nils Kneuper
450467ea8c updated Italian translation 2019-02-17 11:33:27 +01:00
Nils Kneuper
b80cddc180 updated Scottish Gaelic translaiton 2019-02-17 11:31:13 +01:00
Nils Kneuper
2d19fdd0d3 updated British English translation 2019-02-17 11:28:40 +01:00
Martin Hrubý (hrubymar10)
d4e8df76c6
Update Xcode project for Boost 1.69.0 2019-02-16 21:39:21 +01:00
Severin Glöckner
a4a74fa2be Minor documentation fix for config-dir and config-path
No string change, since this is the text for the output of
wesnoth --help, which isn't translated.

The manpages on the other hand only mention this option as being
deprecated, not specifing the details, so there is no change neccessary.

These options are an alias to userdata-dir/path, no more, no less.
Not affecting userconfig-dir/path (maybe thus the names are deprecated).

Issue #2000 remains
2019-02-15 22:40:49 +01:00
Jyrki Vesterinen
2396e0e734 Add @viy2 to credits 2019-02-13 18:50:31 +02:00
Lovens Weche
515a3d6626
Merge pull request #3910 from LovCAPONE/bug_3862_fix_proper
Fix wmlparser3 creation unnecessary attributes.
2019-02-12 15:06:24 -05:00
Jyrki Vesterinen
f61856ff4f Fix #3926: SCons Boost test fails with -Werror=return-type
Based on the patch from @viy2 with a minor change.
2019-02-12 19:09:48 +02:00
Iris Morelle
9bc6161c3c Strip usernames used in the MP UI and command line of trailing whitespace
This also affects line breaks. There's no point in displaying confusing
errors to the player in the off-chance that they manage to introduce
leading or trailing whitespace in the username field. The server doesn't
accept whitespace but that doesn't mean we can't try to guess what the
user really meant to do, and extra whitespace around a name is a pretty
trivial mistake to make.

The password field, on the other hand, ought to accept it since it's
possible to even have line break characters in it (as tested with
Firefox on the live phpBB registration form for forums.w.o).
2019-02-12 00:40:56 -03:00
Lovens Weche
7976d69973
Merge pull request #3911 from LovCAPONE/bug_3903_fix
Fix wmlparser3 considers "_" part of attribute value
2019-02-11 14:48:00 -05:00
Lovens Weche
c5c93b6611 Fix wmlparser3 creation unnecessary attributes
In the wml parser, when a node creation spans multiple lines, the code
doesn’t take in account that one of those line can contain a
 #textdomain directive.

In the method “parse_outside_strings” (line 501), the code that
processes the #textdomain directive is inside an if block that is true
only if the node creation doesn’t span across multiple lines
(self.temp_key_nodes is null).

The solution implemented is that in the method “parse_outside_strings”
(line 501), the code that check if a line starts with #textdomain is
moved from inside the block that is true only if the node creation
doesn’t span across multiple lines and put in the method scope after
the first if block that checks if the line is empty.
2019-02-11 11:39:42 -05:00
Lovens Weche
b3b4f97cf1 Fix wmlparser3 considers "_" part of attribute value
The wml parser, when parsing the outside of a string that is
translatable, only assumed “spaces” characters could precede it. If
there are “tabs” characters the code parses the “_” character as an
attribute value.

The solution is to add a stripping code for “tabs” characters.

Code style updated based on recommendations from ProditorMagnus.
2019-02-11 11:32:04 -05:00
Iris Morelle
7a999125ea Re-add server2.w.o to the built-in list of alternate servers
See issue #3873.

[ci skip]
2019-02-11 03:53:47 -03:00
nemaara
82d88ad941 Added default AMLA to Bone Knight 2019-02-10 23:33:05 -05:00
Maximilian Fricke
2b975e65a7 unit: Fix bug in unit movement animation
Do not tag unit appearance as changed when calling set_facing() and the
unit facing did not actually change
2019-02-10 22:09:15 +01:00
Nils Kneuper
095edb36a1 updated French translation 2019-02-10 11:28:27 +01:00
jostephd
80b00fc38b
Merge pull request #3800 from seanyeh/firststrike-both-inactive
Make defender's "first strike" inactive if the attacker also has "first strike", fixes #3784
2019-02-09 12:53:15 +00:00
josteph
05cd1521ff Dark Forecast: Enemies that spawn on a village now take ownership of
that village.

Fixes #3890
2019-02-09 12:49:28 +00:00
Sean Yeh
ef37e84fe1 Make defender's "first strike" inactive if the attacker also has "first strike" 2019-02-08 22:17:58 -06:00
gfgtdf
2f54ecbc53
fix display chat messages disappearing
Previously `message_aging != 0` was not checked for each chat message resulting in all messages to be cleared when there is no space left.

Also when SDL_GetTicks() of the latest chatmessage returned a different value than when it was constructed the just added chatmessage was cleared aswell.

This commit also refactors to make sure SDL_GetTicks() is only called once there becasue it might be a rather slow operation (depending on plattform depended implementation).
2019-02-08 21:58:28 +01:00
Nils Kneuper
702f93def9 updated Italian translation 2019-02-08 17:41:53 +01:00
Nils Kneuper
65a2377c58 updated French translation 2019-02-08 17:40:40 +01:00
josteph
6f5adfc056 Addon manager: Make exceptions derive from std::exception
Related to #3859
2019-02-07 20:41:37 +00:00
josteph
999e42e524 Help: Show XP for units with modification advancements only (including max-level units with AMLAs) 2019-02-06 21:15:16 +00:00
Martin Hrubý (hrubymar10)
de87a856e9 Disable hardened runtime in Xcode project 2019-02-03 16:49:39 +01:00
Nils Kneuper
0e99cd1fe4 updated Russian translation 2019-02-02 10:39:10 +01:00
Nils Kneuper
1883df96aa updated Chinese (Traditional) translation 2019-02-01 20:00:34 +01:00
Nils Kneuper
7c059d342f updated Ukrainian translation 2019-02-01 19:59:19 +01:00
Nils Kneuper
e762928850 updated Slovak translation 2019-02-01 19:58:18 +01:00
Nils Kneuper
71f8b08c64 updated Russian translation 2019-02-01 19:57:11 +01:00
Nils Kneuper
830d9ecede updated British English translation 2019-02-01 19:56:10 +01:00
Martin Hrubý (hrubymar10)
8629cbf91f
[Fwd-port] Apply latest changes to Xcode project from 1.14 branch
Commits included:
b677423cdd2a46b5abc1a8cdb21b79f9cde968ba
662da36ac5cee6c9786b83413daf9524979be5b0
d3eebd61e14efb00754f49bcefd962ab5e24b760
4d08b1eb78955378fbb13537b3f8cfc43450fa92
c03ab2e54c2d2410350dbbd4c6c8ef5fdc92e501
2019-01-31 14:17:49 +01:00
Martin Hrubý (hrubymar10)
ed3e1ac0dd
Update Xcode project to use GNU Readline 8.0 2019-01-31 07:58:38 +01:00
loonycyborg
e3b6d0c3cb Fix unused variable warning on mac 2019-01-30 13:58:27 +03:00
loonycyborg
061c2f0f6f Fix build on macos 2019-01-30 13:22:14 +03:00
loonycyborg
89856d6dcf Set keepalive timeout to 30s as per #3898
Hopefully this will prevent NAT from forgetting idling clients
For now this is POSIX only and not configurable.
2019-01-30 12:26:02 +03:00
nemaara
2fe3845da5
Merge pull request #3894 from nemaara/trow
[TRoW] S22: cuttlefish animations use different facing filters
2019-01-27 16:03:06 -05:00
Charles Dang
503230db20 Campaign Dialog: make filter box fill available horizontal space
[ci skip]
2019-01-27 23:44:24 +11:00
Charles Dang
59493fc523 NR S7a: wmllint run
[ci skip]
2019-01-27 23:44:23 +11:00
Vlad Drozdov
2303416fa5 Added the mutex for the ci_search function 2019-01-27 23:44:22 +11:00
Vlad Drozdov
9b0d036846 Campaign selection filter : сhanges for calling campaign_selected() function. 2019-01-27 23:44:22 +11:00
Vlad Drozdov
b5c48b1270 Campaign selection filter : сhanges for review. 2019-01-27 23:44:21 +11:00
Vlad Drozdov
a25a43e1ac Replace a search in filters by translation::ci_search 2019-01-27 23:44:20 +11:00
Vlad Drozdov
0f00da0995 Campaign selection filter : search by separate words and filter focuse by default 2019-01-27 23:44:19 +11:00
Vlad Drozdov
397b8e1f3b Campaign selection: Add search functionality 2019-01-27 23:44:19 +11:00
nemaara
a52e207ca1 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2019-01-27 02:17:23 -05:00