62158 Commits

Author SHA1 Message Date
Celtic Minstrel
a5184181df Fix SUF $this_unit only working within [filter_wml] 2015-09-19 00:19:26 -04:00
Celtic Minstrel
edce9ac64a run_wml_tests: Add some fallback cases and a few more options
- If timeout is missing, it disables timeout and skips any tests that expect it
- Pass -t0 to get the above behaviour even if timeout is present
- Detect if timeout doesn't support --kill-after
- Mac users: Pass -pxcode to automatically find the Wesnoth binary in XCode's DerivedProducts folder
- In non-verbose mode, give progress report by printing a dot before each test
  This only happens in non-verbose mode because this method of reporting progress makes most sense
  if nothing else is printed.
2015-09-19 00:18:31 -04:00
Celtic Minstrel
617fb26238 Add debug command :unit status=list,of,statuses,to,add,or,-remove 2015-09-18 00:53:16 -04:00
Celtic Minstrel
2fd07684f2 Update changelog 2015-09-18 00:29:19 -04:00
Celtic Minstrel
af2e16f842 Add sanity-checking for WML attribute/tag/variable names to prevent invalid save files
- It's now an error to set an invalid variable
- If an invalid key or tag is somehow set, it won't be written to the file (with an error message in the log)
- There's an API function config::valid_id() which can be used to catch issues earlier.
2015-09-17 21:43:25 -04:00
Nils Kneuper
e9be2324b5 updated Hungarian translation 2015-09-16 22:18:23 +02:00
Charles Dang
bce13542b1 Fixup 17b3c98a5e12 2015-09-17 06:13:22 +11:00
Elvish_Hunter
53ee364bab wmllint-1.4: renamed two variables
Used 'r' instead of 'm' if the code refers to ranged attacks (instead of melee); also, ensure that the regexps check the modified versions of the line.
2015-09-16 21:03:34 +02:00
Elvish_Hunter
3afe74b5de wmllint-1.4: renamed a variable
'i' wasn't used in places visible from within the cycle, so using 'j' was pointless.
2015-09-16 21:03:33 +02:00
Elvish_Hunter
f4f11c03fc wmllint-1.4: simplify a line modification 2015-09-16 21:03:33 +02:00
Elvish_Hunter
2877a6a489 wmllint-1.4: use enumerate() to iterate over lines 2015-09-16 21:03:33 +02:00
Elvish_Hunter
ac31185083 wmllint-1.4: use 'with' statement when handling files 2015-09-16 21:03:33 +02:00
gfgtdf
17b3c98a5e fix side_for in [message]s with input
the previous impleentation could casue OOS.
2015-09-16 16:16:55 +02:00
Ignacio R. Morelle
0a8abb8328 Remove unneeded temporary copy of a variable 2015-09-16 05:59:13 -03:00
Ignacio R. Morelle
e8caf1fac4 Remove unnecessary y scrolling offset from [message] implementation
The problem this tried to solve was solved long ago, when the new GUI2
[message] dialog was introduced in 1.5.x. Formerly, [message] was
displayed at the top of the screen, so with sufficiently long messages
and a small screen resolution, the viewport could be scrolled in such a
way that the target unit was covered by the dialog.

Nowadays [message] is displayed at the bottom and the scrolling
algorithm is more or less sane, so this hack is completely unneeded.

(For reference, this was originally introduced in commit
83a332a8692260f50ab76bb7f0ae754baf6507d7. For a reference screenshot of
what it would do back in the day, see
<http://www.wesnoth.org/images/sshots/wesnoth-1.1.9-shot3.jpg>.)

Thanks to celticminstrel and vultraz for bringing this up on IRC.
2015-09-16 05:52:52 -03:00
Ignacio R. Morelle
928b6e8008 Comment spelling fixes 2015-09-15 23:22:37 -03:00
Ignacio R. Morelle
b2900a310a Comment spelling or formatting fixes 2015-09-15 23:20:13 -03:00
Ignacio R. Morelle
7dd1963273 Doxygen or code formatting fixes 2015-09-15 23:16:40 -03:00
Ignacio R. Morelle
424d1e45ff Doxygen fixes 2015-09-15 22:55:19 -03:00
Ignacio R. Morelle
00b3c7b214 Code style and spelling fixes 2015-09-15 22:18:58 -03:00
Andreas
2d03c0b08d Merge pull request #486 from aginor/cmakereorder
Change the ordering of the CMakeLists so options comes first.
2015-09-13 16:28:02 +12:00
Elvish_Hunter
b8dfa190f2 wmllint-1.4: replaced a dict(map()) with dict comprehension 2015-09-12 22:59:18 +02:00
Elvish_Hunter
a12d99e98c wmllint-1.4: use 'x in line' instead of 'line.count(x)' 2015-09-12 21:49:03 +02:00
Elvish_Hunter
91f5bf16c2 wmllint-1.4: use Python 3 range()
That's the function known in Python 2 as xrange().
2015-09-12 21:49:03 +02:00
Elvish_Hunter
1d2944569c wmllint-1.4: open files as UTF-8 and use Unicode literals 2015-09-12 21:49:02 +02:00
Elvish_Hunter
ef559d0ffd GUI.pyw: allow binding tooltips to tagged elements of widgets 2015-09-12 21:49:02 +02:00
Charles Dang
870053c0ec Merge pull request #490 from Wedge009/Bug_Fix_20036
Resolve Bug #20036
2015-09-13 02:54:28 +11:00
Wedge009
e46070ab30 Resolve Bug #20036
When a map is generated, the labels for the player starting locations are correctly set. However, generating another map (or even loading a map and then generating a new one) results in the old labels remaining even after the new map has been generated and displayed.

Issue appears to be that the reset labels flag is not being set after a map generation. This change sets the reset labels flag and the subsequent perform_refresh() function then includes a reset of the map labels.
2015-09-12 22:52:59 +10:00
Charles Dang
ca66e1f1fc NR S5.1: replaced Malifor's spawn mechanic with force CTH on anyone by Morvin and Thera
This scenario is long enough without running after Malifor half a dozen times.
This also indirectly fixes bug #23667
2015-09-12 18:57:13 +11:00
Charles Dang
f9927cb603 NR S7a: new map 2015-09-12 18:34:22 +11:00
Charles Dang
268973e8af NR S5.1: split final lines of dialog into a death event 2015-09-12 12:37:56 +11:00
Charles Dang
fada491e56 Increased width of help browser 2015-09-12 12:25:02 +11:00
gfgtdf
6010455f56 add [on_undo]/[on_redo] actionwml
[on_undo]/[on_redo] contains tags that are executed when undoing the
current actions.
2015-09-11 22:33:32 +02:00
gfgtdf
f01252a42c add [unsynced] actionwml
This can be used like in the following example (note that without the
[unsynced] it would cause OOS becasue rand= might or might not be
called.):

[unsynced]
[store_side]
variable = "side"
side = "$side_number"
[/store_side]
[if]
[variable]
name = "side.controller"
equals = "human"
[/variable]
[then]
[set_variable]
name = "num"
rand = _ "two,four,seven"
[/set_variable]
[message]
message = _ "I want $num stones"
[/message]
[/then]
[/if]
[unsynced]
2015-09-11 22:33:30 +02:00
gfgtdf
757cde164b fix mp failing to load scenarios
previously the scenario's id was lost when reloading a scenario.
2015-09-11 22:33:28 +02:00
gfgtdf
445ceb119f add a comment 2015-09-11 22:33:26 +02:00
gfgtdf
276a79ab3b remove unused function 2015-09-11 22:33:25 +02:00
gfgtdf
20a2a17f88 fix chat during mp replays
previously it could casue OOS when chatting during an mp replay because
the replay_pos in other savegames could become wrong (becasue the chat
mesage might be inseted before the replay position of those snapshots)
2015-09-11 22:33:23 +02:00
gfgtdf
ca0bf513aa fix a segfault when loading a savegame. 2015-09-11 22:29:48 +02:00
gfgtdf
8b1f3c856c move undo_stack to gamestate class
the undo stack must be part of the gamestate becasue it is used for the
delayed shroud updates.
2015-09-11 22:29:44 +02:00
Charles Dang
1c8bf80634 Added new generic portrait for Ancient Wose by LordBob
The previous Wose portrait has now been repossessed for the Wose specifically,
and also used for the Elder Wose. This new portrait is used for the Ancient Wose
exclusively.
2015-09-12 02:40:36 +11:00
Charles Dang
203411d042 New generic portrait for Yeti by LordBob 2015-09-12 02:30:43 +11:00
Elias Pschernig
f8fb04093a [units.wesnoth.org] fix some small issues 2015-09-10 18:10:16 -04:00
gfgtdf
2cf8bcdecb Update changelog 2015-09-10 20:40:44 +02:00
Charles Dang
19e7adfe52 Use overgrown base for Ruined Human Castle (Chr) 2015-09-10 23:15:05 +11:00
Charles Dang
58e17f3e21 T S1: removed two extra villages near map border to prevent confusion 2015-09-10 22:01:30 +11:00
Charles Dang
4f078f26ef GUI.pyw: small label tweaks 2015-09-10 21:55:43 +11:00
Charles Dang
9ca044abdb Updated codeblock projectfile 2015-09-10 15:00:53 +11:00
Elias Pschernig
3ab3db3166 [units.wesnoth.org] Converted the script to Python 3.
Basically ran all .py files through 2to3. I made a copy of wmlparser2.py
called wmlparser3.py for the Python3 version, so as to not inconvenience anyone
who may be using it in their old Python2 scripts.
2015-09-09 22:52:23 -04:00
Celtic Minstrel
480a2a746c XCode project: Remove -Werror setting 2015-09-09 22:49:04 -04:00