52061 Commits

Author SHA1 Message Date
Matthias Schoeck
42b54cc9a9 Mark description= key in Micro AI macros as translatable
The description is displayed in the AI selection dialog if the AI
is used as an MP AI.  It should therefore be marked as translatable.
2013-03-03 03:55:35 +00:00
Mark de Wever
9015bbcd37 Add SDL 2.0 compatibility.
Remove the INPUT_MASK define. Its usage is replaced by the functions:
- is_input
- discard_input
This also removes most external users of the discard function, which is
also problematic due to the event mask.
2013-03-02 21:17:25 +00:00
Mark de Wever
074f6432a4 Fixing a comparison with the wrong member.
Discovered while looking at SDL 2.0 code.
2013-03-02 21:17:22 +00:00
Mark de Wever
870ab27990 Remove the version_info copy constructor.
Its behaviour was identical to the compiler generated version.
2013-03-02 21:17:19 +00:00
Mark de Wever
1193516e96 Remove version_info::operator=().
It makes cppcheck happy and this one does the same job as one generated
by the compiler.
2013-03-02 21:17:16 +00:00
Mark de Wever
b2e6203185 Add SDL 2.0 compatibility.
Use 0 instead of NULL for pointers, the type is a int in SDL 2.0.
2013-03-02 21:17:13 +00:00
Jérémy Rosen
9f024a7691 restore standing anims being used as default anims, fix bug #20580 2013-03-02 15:06:32 +00:00
Boldizsár Lipka
3811defdae Specify valid dimensions for base_rect_ when there's no background.
This prevents titles from being rendered offscreen. Thanks for
shadowmaster for pointing this issue out.
2013-03-02 10:09:24 +00:00
Lari Nieminen
5a5597ca60 Fixed a [message] not working. 2013-03-01 07:03:11 +00:00
Simon Forsyth
58ad683461 Add new files to Xcode project 2013-02-28 12:38:46 +00:00
Lari Nieminen
d0fcf11fe5 Fixed an unsuitable choice of portrait expression variant. 2013-02-27 16:36:34 +00:00
Lari Nieminen
eeb87e1120 Removed a remnant of the old journey paths. 2013-02-26 18:33:45 +00:00
Lari Nieminen
aa2dd8f708 Removed the now unused journey.cfg from SoF. 2013-02-26 18:31:19 +00:00
Lari Nieminen
566beb76dc New SoF bigmap and journey paths. 2013-02-26 15:25:41 +00:00
Anja Keicher
de5c19ea34 Removed filter to store all sides in carryover, not just active ones...
...to fix issue where sides that skip a scenario lose recalls and
gold. Fixing bug #20373 and duplicates #20455 and #20456
2013-02-26 13:15:30 +00:00
Nils Kneuper
189b1f6f12 updated Japanese translation 2013-02-25 22:39:33 +00:00
Eric S. Raymond
58ed47797e Revert [SVN:46435].
The 'correction' garbled the sense of the original.  I have added a
note for translators explaining the nuance of English usage involved.
2013-02-25 03:37:13 +00:00
Boldizsár Lipka
46e09efb43 Use scale_surface_sharp for scaling the minimap. 2013-02-24 20:53:50 +00:00
Steven Panek
b5d7c53d1b Ran umcpropfix. 2013-02-24 20:31:56 +00:00
Lari Nieminen
79c6129cc4 New TSG bigmap and journey paths. 2013-02-24 20:11:18 +00:00
Lari Nieminen
9ce44eeed7 Really fixed the background reference. 2013-02-24 19:56:16 +00:00
Lari Nieminen
ac24be8d98 Fixed the background reference. 2013-02-24 19:53:07 +00:00
Lari Nieminen
d9358cfc2f Added the background for the new bigmaps. 2013-02-24 19:51:51 +00:00
J. Tyne
a96cf664f0 Typo (that got copied): "dissmissal" to "dismissal". 2013-02-24 17:50:26 +00:00
J. Tyne
d6e7d11639 Polmorphism for undo actions
The old implementation (a single struct covering all types of actions)
was getting a bit over-extended with the evolution of the kinds of data
being stored. This new approach derives a class for each type of action
and relies on virtual functions to decide what to do.

To support the polymorphism, undo_list's std:vectors have been changed
to boost::ptr_vectors. This has the beneficial side-effect of changing
several struct copies to pointer copies.
2013-02-24 17:42:29 +00:00
Mark de Wever
213530ed95 Fix compilation using C++11.
The narrowing conversion is no longer allowed in C++11.
2013-02-24 14:02:18 +00:00
Lari Nieminen
10602ac6d5 New HttT bigmap and journey paths. 2013-02-24 13:55:35 +00:00
Lari Nieminen
54810c95a7 Fixed temp-Li'sar missing portrait. 2013-02-24 13:06:59 +00:00
Boldizsár Lipka
4840dae4ab Fix a GUI2 warning. 2013-02-24 10:53:26 +00:00
Boldizsár Lipka
e512cbdd86 Properly handle unscaled background images...
...when they're bigger than the display's resolution. Fixes bug #20497
2013-02-24 10:52:20 +00:00
Mark de Wever
b2c2eaef2c Add SDL 2.0 compatibility.
Rewrites the joystick code so it works with both SDL 1.2 and SDL 2.0.
2013-02-24 09:54:00 +00:00
Mark de Wever
4a7e407c94 Remove an unneeded namespace qualifier.
This makes testing with SDL 2.0 easier
2013-02-24 09:53:58 +00:00
Lari Nieminen
e46ffe137f Added a missing label to the SotBE localization file. 2013-02-24 09:52:50 +00:00
J. Tyne
29dd36aed1 Gotos are stored in the child config. 2013-02-24 03:06:39 +00:00
J. Tyne
479f0e25db Reduce the data stored in the undo stack.
Most actions had caused a unit to be stored in the stack, but the stack
does not really need all the data from a unit. Now it will store only
those parts it needs, which might have a significant impact in
scenarios with WML-heavy units. There is also a reduction in the size
of mid-turn saves (~9% in one test case using NR:Showdown).
2013-02-24 01:48:19 +00:00
J. Tyne
ed5d371c91 Support fog/shroud clearing without a complete unit. 2013-02-24 01:26:04 +00:00
J. Tyne
ccd9274c18 Support calculating vision paths without a complete unit. 2013-02-24 01:24:34 +00:00
J. Tyne
6268b32c4d Update error in a loop.
cleared_something was supposed to be the "or" of each return value,
not the last return value.
2013-02-23 20:57:19 +00:00
J. Tyne
bd31d0cdbb Typo in a comment. 2013-02-23 20:16:05 +00:00
Lari Nieminen
2e4790f86b Fixed two typos in EI. 2013-02-23 17:56:02 +00:00
J. Tyne
d1d5d1c5ab Typo (and grammar) corrections in a comment. 2013-02-23 17:29:43 +00:00
Mark de Wever
1df038f37f Remove some unneeded semicolons. 2013-02-23 16:39:40 +00:00
Mark de Wever
8e9dff313e Remove an unneeded semicolon. 2013-02-23 16:39:37 +00:00
Mark de Wever
05277545ea Add a way to use the C++11 virtual specifiers.
The have not been used yet, but they will be added in the future.
2013-02-23 16:39:34 +00:00
Mark de Wever
56b7e3baa1 Enable C++11 define when the compiler does.
* Renames HAVE_CXX0X to HAVE_CXX11 to be in line with the offical name.

* Depends on __cplusplus being defined as >= 201103L.
2013-02-23 16:39:29 +00:00
J. Tyne
bf3e3fbe3b Move halo clearing from unit_map.cpp to lua.cpp.
Apparently, halos were not getting redrawn when the AI moves units
around for its calculations. Instead of adding a bunch of not really
necessary invalidations (to get the halos redrawn), restrict halo
clearing to a case where it is needed (Lua's extract_unit, which is
used by [move_unit]).

Also add an invalidation to Lua's put_unit, in case someone's Lua code
attempts to do something similar to the C++ AI.

This replaces r56143.
2013-02-23 16:16:27 +00:00
Simon Forsyth
a165426765 Ensure the Dust Devil does nto speak 2013-02-23 15:54:25 +00:00
Simon Forsyth
82e26d5fd4 Prevent some cases where the trapped merman could attack the player 2013-02-23 15:47:39 +00:00
Elvish_Hunter
8200214e9b wmllint, wmlscope and wmlindent: fixed bug caused by Windows' command prompt appending double quotes to arguments 2013-02-23 13:04:12 +00:00
J. Tyne
47b8f92309 More efficient version of find_routes().
This removes some overhead that accommodated edge-weights (which is
not needed since Wesnoth maps bear vertex weights). Testing indicates
a reduction in execution times on the order of 1%-4%. Not much, but
this function is called fairly often.

This is an updated version of (my) patch #3122.
2013-02-23 01:14:32 +00:00