73955 Commits

Author SHA1 Message Date
josteph
9296158e04 Sidebar: Add some vertical padding after attacks that have specials. 2019-02-24 12:14:29 +00:00
josteph
08c469561c Sidebar: Show attack range and damage type icons 2019-02-24 12:02:28 +00:00
Severin Glöckner
034618a33d Help: remove space between sprite and text for Fire Dragon 2019-02-23 23:18:31 +01:00
Severin Glöckner
dc69cd5f41 UtBS: change textdomain
The Strings are no longer from wesnoth-help, but campaign-specific ones.
2019-02-23 23:11:50 +01:00
Nils Kneuper
5b54ed8443 updated Lithuanian translation 2019-02-22 22:03:39 +01:00
Nils Kneuper
fb1fbea066 updated French translation 2019-02-22 22:02:03 +01:00
Nils Kneuper
36eead92f8 updated Ukrainian translation 2019-02-21 22:36:01 +01:00
Lovens Weche
44e9d247c3
Merge pull request #3930 from LovCAPONE/bug_3927_fix
Fix parser opens tmp file 2 times then crashes
2019-02-21 14:18:47 -05:00
Nils Kneuper
5f0be6cd98 updated Czech translation 2019-02-21 19:26:42 +01:00
Nils Kneuper
fb737e39a2 updated Japanese translation 2019-02-21 19:25:30 +01:00
Nils Kneuper
73db2b831d updated Chinese (Simplified) translation 2019-02-21 19:23:51 +01:00
Martin Hrubý (hrubymar10)
ed34c83b59
Update changelog with changes on macOS 2019-02-21 18:44:31 +01:00
newfrenchy83
ae4af3010c add filter_student equivalent to weapon filter_self
the filter_self ability don't mathes other_unit like opponent nor the formula.
2019-02-19 22:24:44 -05:00
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
Lovens Weche
8322efa978 Fix parser opens tmp file 2 times then crashes
When parsing binary data in the wmlparser3 script, a temporary file is
created and opened. The problem is that the temporary file is never
closed and in subsequent functions it is reopened.

The solution is first, create a list of temporary file paths to delete at
program’s exit. In the atexit’s registered cleaning function, all the
files in this list are deleted.

Then in the function that creates the temporary file, we simply close
the file after the binary data has been written in it.

Closes #3927
2019-02-19 18:40:51 -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