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
Anonymissimus
92fb55568b
add movetype.hpp/cpp to VC project
2013-02-23 01:12:40 +00:00
Anonymissimus
f1f1a61a33
change a forward type declaration into a struct
2013-02-23 01:12:32 +00:00
Anonymissimus
459dc8b659
change a forward type declaration into a struct
2013-02-23 01:12:20 +00:00
J. Tyne
2695f53f8f
Some variable name changes taken from patch #3122 .
...
Splitting these from the logic changes should make it easier to check
them.
2013-02-22 22:59:17 +00:00
J. Tyne
0892ebfbfa
Wrap the pathfind/*.cpp files in "namespace pathfind".
...
This is instead of individually qualifying each (non-static) function
in these files as being in the namespace.
2013-02-22 22:34:05 +00:00
J. Tyne
7798fb3ad1
Refactor the interface to find_routes().
...
This function is local to pathfind.cpp, so this has very limited
impact. It will allow a reduction in the data stored in the undo
stack, though.
2013-02-22 19:51:04 +00:00
J. Tyne
34ed836039
Streamline some #include dependencies.
2013-02-22 15:27:57 +00:00
J. Tyne
73120612e3
Remove an unneeded class declaration.
...
This became unneeded in r56363, but I forgot to remove it.
2013-02-22 14:50:52 +00:00
J. Tyne
dc036c62b3
Push accounting for slow in terrain costs from unit to movetype.
...
This merges three small codepaths, but the real motivation is a
possible future use.
2013-02-22 02:03:42 +00:00
J. Tyne
a93a627656
Use an existing variable instead of constructing an identical one.
...
(This is just a minor optimization that I happened to notice.)
2013-02-22 01:04:48 +00:00
J. Tyne
6e34ab66eb
Consistency in highlighting teleport destinations
...
Previously, wesnoth.highlight_hex would only highlight through global
tunnels if the unit in question had a teleport ability. Now tunnels
are considered for all units.
2013-02-22 00:54:43 +00:00
J. Tyne
605054ee16
Flag a parameter that is not correct with a @todo.
...
At the moment, I do not know what the correct parameter should be, but
a hardcode of the first team cannot handle all possibilities.
This is in the implementation of a deprecated Lua function
(wesnoth.highlight_hex), so it might end up removed before being fixed.
2013-02-22 00:33:38 +00:00
J. Tyne
fd24c3c7c4
Documentation corrections/updates.
2013-02-22 00:13:46 +00:00