since idle sides don't get initialized until someone takes control
this alleviates 21459. it might possibly aggravate 21397, if that
bug is not fixed by correcting save files with unintialized sides
1. sides without leaders aren't defeated if
"fight_on_without_leader = true". don't use no_leader
for this purpose anymore.
2. refactor to use a std::set instead of std::vector,
and some related improvements, for what was formerly
the "seen_leaders" data structure
this field is intended to allow battles to continue after the death of a leader
if a side has this flag enabled and any units alive, they will be considered
to have a leader regardless of canrecruit.
Consistently use wesnoth.require, avoid wesnoth.dofile. Move commands
as close to beginning of file as possible in order to facilitate custom
modifications of MAIs.
The largest part of this consist of upgrading the boost and pango/cairo
libraries together with their dependencies, supporting files and
project settings. In addition, architecture, SDK and compiler options
are set to use the native versions of the given OS X version for debug
builds. The OS X deployment target is set to OS X 10.8, because of a
change in the default libraries used by OS X from 10.8 to 10.9.
For this to work, the resources in wesnoth_compile_mac_1.13.zip need
to be installed as well.
Some other settings, e.g. font defaults, still need to be adjusted.
This will be done in separate commits. Settings for release builds will
be changed later as well.
aquileia noticed that with MSVC set to 'unicode', wesnoth didn't compile.
The reason is that much of the win32 API is provided by macros that switch
foo(LPCTSTR) between fooA(const char*) and fooW(const wchar_t*).
We were using foo with const char*.
The order now is the reverse of the construction, probably doesn't
matter, but feels more like the normal constructor/destructor
creation/destruction order.
When the exception is thrown from the body of the constructor the
destructor is called, so no need to manage the lifetime of the
source_surface_ before throwing an exception.
Whether or not the surface should be kept depends on the access mode of
the texture. It is possible to update a static image, but that is not
intended to be used, so remove the part of the API that makes it easier
to do.
- Add the new files introduced by gfgtdf to the VC project.
- Fix the indentation of SConscript.
- Update the README files for Code Blocks and Visual Studio.