19385 Commits

Author SHA1 Message Date
Ignacio R. Morelle
6182b310b5 Remove remove_local_addon() logging functionality...
...intended to be used by the GUI; log details of failed operations to
console only instead
2011-10-29 19:39:52 +00:00
Ignacio R. Morelle
3953d976ce gui2/taddon_uninstall_list: New add-ons...
...uninstall menu with multiple selection

I bet there was a FR for this in the tracker, but I couldn't find it.
2011-10-29 19:32:05 +00:00
Fabian Müller
5cb1cde6c6 Reworked the generation of filtered recall lists.
This also fixes bug #18870
2011-10-29 17:18:08 +00:00
Fabian Müller
cc3d33430f Corrected "recruit" to "recall". 2011-10-29 17:06:58 +00:00
Fabian Müller
7527fa143e Distinguish between two kinds of "empty recall lists":
1. The player does not have any units left over from previous scenarios.

2. The player can't recall at the highlighted location.
2011-10-29 17:04:39 +00:00
Fabian Müller
f07e96ce44 The tooltip of the unit's displayed level...
...now shows the possible advancements in the selected language.
2011-10-28 09:52:40 +00:00
Simon Forsyth
055760fc86 avoid std prefix so scons build on Mac works with macports 2011-10-28 04:02:48 +00:00
Ignacio R. Morelle
431b99e3e0 gui2/teditor_set_starting_position:
Converted old GUI1 starting positions tool menu to GUI2

* Added a column displaying existing starting locations' coordinates to
  the player numbers list

* May have made the player number entries easier to translate

* Removed overly long infodump about hotkeys that's already part of the
  tooltip on the editor palette anyway.

* Ran into a lot of frustration involving adding or substracting one
  from various things like map coordinates and team numbers because the
  zero-based C arrays assumption doesn't seem to work here.
2011-10-28 02:12:15 +00:00
Fabian Müller
06a49792e9 Reverted commit 51664 restoring bug# 17232,
and hopefully closing #18868.
2011-10-27 14:41:34 +00:00
Anonymissimus
1656cb48f6 make lua expect [display] to be handled by C++ 2011-10-27 14:16:33 +00:00
Anonymissimus
d6ac51d4fb save and reload [color_adjust] values (fix for bug #18676) 2011-10-27 14:16:17 +00:00
Anonymissimus
56ffd2f2cd make display::color_adjust_red_, green_ and blue_ private
No references require them to be protected.
2011-10-27 14:16:00 +00:00
Ignacio R. Morelle
281e48942f gui2/teditor_settings: Made sure lighting setting changes...
...are applied immediately when closing settings

Formerly they'd only have an effect when automatic map view updates were
enabled, or when opening the settings dialog again, or when toggling
presets.
2011-10-27 06:19:49 +00:00
Ignacio R. Morelle
11a57483b8 gui2/teditor_settings: Disable sliders on pre_show...
...when custom lighting isn't in use

Sliders are normally disabled when custom lighting is, when the dialog
is running. A missing function call solves the pre_show inconsistency.
2011-10-27 06:09:06 +00:00
Fabian Müller
81433c22f7 Fix bug #17323 2011-10-26 23:59:08 +00:00
Ignacio R. Morelle
3eae602c53 Fix bug #18766 by removing some half-assed...
..."recursion prevention" bullshit I devised back in 2008

A static counter variable wasn't being reset, ever, so a number of
version comparisons during a single session would make the code stop
working.

The basic idea is idiotic and I should probably rewrite this code ASAP.
2011-10-26 08:59:53 +00:00
Ignacio R. Morelle
c172397877 Move struct addon_info to its own header file
(requires no implementation, it will be shared by upcoming code)
2011-10-26 01:11:06 +00:00
Mark de Wever
b9da475424 Avoid copying a singular iterator.
Found a better way to avoid copying singular iterators.

Gabba, tschmitz please review the code and if it's correct it should be
save to revert 2011-10-23T17:48:59Z!koraq@xs4all.nl.
2011-10-25 19:31:45 +00:00
Mark de Wever
c1c40064eb Fix compilation with clang 2.9 / boost 1.47.
This applies a slightly modified version of the patch linked in
bug #18399. The changes are coding-style related.

The patch was intended to fix compilation with boost 1.47, but that
boost version is not yet in Debian so didn't test that part. Since it
does fix compilation with clang 2.9 Iapplied it, without waiting for
boost 1.47 to hit Debian.
2011-10-25 19:31:42 +00:00
Simon Forsyth
e0d178640b Apply patch #2961 by SigurdTheDragon
Fixes bug #18599

Fixes bug #18600
2011-10-25 00:00:53 +00:00
Anonymissimus
371b567f90 changed code order (fix for bug #18778)
Was a small mistake in 2011-08-11T20:49:51Z!terraninfo@terraninfo.net.
2011-10-24 23:35:09 +00:00
Fabian Müller
4f4b73996c Fix for bug bug #18815 [filter_recall] works incorrectly. 2011-10-24 23:20:58 +00:00
Anonymissimus
e79533dffd limit number of executions of [endlevel] to 1 times per scenario
(fix for bug #18828)

A scenario can only be ended once. Also prevents sort-of recursion
if it appears in a victory or defeat event.
2011-10-23 22:57:52 +00:00
Anonymissimus
625cb89795 make lua interface expect toplevel [endlevel] to be handled by C++ 2011-10-23 22:57:29 +00:00
Anonymissimus
87908d6977 write and reload endlevel data when saving in linger mode
(fix for bug #16111)

There obviously existed an [endlevel] tag in the savegame at some time
but it must have been lost. Added read and write method
to struct end_level_data.
2011-10-23 22:57:09 +00:00
Anonymissimus
0ea5f98e3a set playsingle_controller::end_turn_ to false in linger mode
(fix for bug #16821)

The problem was that this variable gets usually set to false during
the start of the side turns. If check_victory() ends the level between
the side turns, this initialization is missed so linger mode thinks it
has already been ended.

Other call cases of linger() should call the function with
end_turn_== false already. That is, I think they already do, since if
not these would have fallen into this bug category as well.
2011-10-23 22:56:54 +00:00
Anonymissimus
2e80ba9f31 created play_controller::get_end_level_data_const() returning a const ref
and converted get_end_level_data() calls where appropriate so that
it's easier to sort out where it can be modified and where not.
2011-10-23 22:56:34 +00:00
Mark de Wever
b9fae173c3 Fixed display of AI values.
The display of recruitment_ignore_bad_combat and
recruitment_ignore_bad_movement is no longer swapped. Fixes bug
#18839.
2011-10-23 17:49:07 +00:00
Mark de Wever
220603b50f Disable pango formatting of unit names.
Since the markup is used it does so by escaping the markup characters in
the unit name. (Fixes bug #17788).
2011-10-23 17:49:04 +00:00
Mark de Wever
882dda5e2f Avoid copying a singular iterator.
Gabba, tschitz please review whether the code is correct. It fixes some
abortions of Wesnoth when using the gcc debug containers due to
undefined behaviour.
2011-10-23 17:48:59 +00:00
Simon Forsyth
900c6ca1f1 fix bug 18701 2011-10-23 15:40:01 +00:00
Simon Forsyth
a651a6fa8e Apply default team color for side last
Fixes bug #18817
2011-10-22 21:43:12 +00:00
Steven Panek
4660ccb8d7 Fixed capitalization in an error message. 2011-10-21 20:07:12 +00:00
Mark de Wever
547db1d0ef Force -Wold-style-cast off for certain targets.
This allows people to compile Wesnoth with the flag enabled and still
using strict compilation.
2011-10-21 18:59:42 +00:00
Mark de Wever
e16629d8db Remove an old-style-cast. 2011-10-21 18:59:39 +00:00
Mark de Wever
8e841d74ee Remove an old-style-cast. 2011-10-21 18:59:36 +00:00
Mark de Wever
6441779685 Remove some old-style-casts. 2011-10-21 18:59:32 +00:00
Mark de Wever
88bfe6f6ef Remove an old-style-cast. 2011-10-21 18:59:29 +00:00
Mark de Wever
bb51354198 Remove an old-style-cast. 2011-10-21 18:59:25 +00:00
Mark de Wever
07f26d6cb7 Remove some old-style-casts. 2011-10-21 18:59:22 +00:00
Mark de Wever
721eb83250 Remove some old-style-casts. 2011-10-21 18:59:19 +00:00
Mark de Wever
e9013b9a08 Remove some old-style-casts. 2011-10-21 18:59:14 +00:00
Mark de Wever
4d0b299dcc Remove an old-style-cast. 2011-10-21 18:59:11 +00:00
Mark de Wever
cd36cf8c90 Remove an old-style-cast. 2011-10-21 18:59:07 +00:00
Mark de Wever
03e373dbdd Remove some old-style-casts. 2011-10-21 18:59:04 +00:00
Mark de Wever
98181e15f5 Remove an old-style-cast. 2011-10-21 18:59:00 +00:00
Mark de Wever
a45e90d136 Remove some old-style-casts. 2011-10-21 18:58:57 +00:00
Mark de Wever
541b827d81 Remove an old-style-cast. 2011-10-21 18:58:53 +00:00
Mark de Wever
ae72b75da2 Remove some old-style-casts. 2011-10-21 18:58:48 +00:00
Anonymissimus
b1c42e655f Revert "Disabled "Delay shroud updates"...
...to test if the whiteboard is a good replacement."

by gabba, 2010-08-15T04:17:49Z!gabrielmorin@gmail.com

1. The whiteboard is obviously still way not ready to be a replacement.

2. It has been requested by several users (and by me and Gambit).

3. For real multiplayer, the whiteboard is too complicated in
comparison to delay shroud.

4. We need time and testing before 1.10 to remove possible problems
interfering with this old code which can have been introduced in the
time since it was disabled.
2011-10-20 23:25:43 +00:00