66590 Commits

Author SHA1 Message Date
Celtic Minstrel
e81131fcc5 Add deprecation messages for old AI aspect fetchers
This commit also updates uses of these fetchers in mainline Lua code.
2016-10-17 14:24:51 -04:00
Celtic Minstrel
ce4fd8a14d Lua: Make ai.aspects.attacks return only the units rather than the attack analysis
ai.get_attacks() still returns the attack analysis

Also fix a minor issue with ai.aspects.advancements
2016-10-17 13:56:39 -04:00
Jyrki Vesterinen
bb157f9fa3 Fix build with Visual Studio 2016-10-17 19:45:19 +03:00
Charles Dang
42b684b124 Chatbox: slight room joined/whisper started message formatting 2016-10-18 02:26:44 +11:00
Charles Dang
497dcac47a Chatbox: allow new rooms to specify if they can be closed or not
This removes the hardcoded "room name is 'lobby" predicate.
2016-10-18 02:15:54 +11:00
Jyrki Vesterinen
7edad9669a Update Visual Studio project 2016-10-17 17:14:58 +03:00
Charles Dang
1964d71023 Updated GUI2 schema for fb6c85e70b0c 2016-10-18 00:59:22 +11:00
Charles Dang
fb6c85e70b Added interface for using a light font variation (still not functional) 2016-10-17 23:28:53 +11:00
Charles Dang
ed6758d933 Added Lato light variations 2016-10-17 23:28:52 +11:00
gfgtdf
ac9729f612 fix assertion failure when shroud/FoW update undelayed
https://gna.org/bugs/?25106

was broken in ae19588a37
2016-10-17 14:24:33 +02:00
Wedge009
7b42ba2bea Add some missing Release build locations.
Correct build location for sp_options_configure.cpp.
2016-10-17 23:00:59 +11:00
Charles Dang
e4640ddc17 Some constructor formatting 2016-10-17 22:58:34 +11:00
Charles Dang
ac17531476 Restore bitwise checks for font style (fixup 188231cd030e) 2016-10-17 21:33:43 +11:00
Charles Dang
188231cd03 Refactored SDL_TTF constants out of ttext
Do note that for some reason using the default_bold label definition with this change made an underline
appear. I changed the style checks to use == instead of & (bitwise AND) and that fixed the problem. If
that's wrong, someone feel free to fix that.
2016-10-17 20:53:48 +11:00
Charles Dang
8a9d546e27 Slight contrast bump to swamp water 2016-10-17 18:22:02 +11:00
Charles Dang
7bb37d9b92 Updated changelog 2016-10-17 17:28:30 +11:00
Charles Dang
3e42f2a10e Merge pull request #830 from pydsigner/story_text_alignment
Add ability to horizontally align story text
2016-10-17 17:21:09 +11:00
Daniel Foerster
c1b34ca22d Add ability to horizontally align story text 2016-10-17 00:57:54 -05:00
Celtic Minstrel
d006d73c6e Update XCode project 2016-10-17 00:48:04 -04:00
mattsc
b302289402 Micro AIs: correctly deal with hidden and petrified enemies
Previously, the Micro AI behavior was inconsistent at best when it came
to dealing with these units and could even result in AI errors when an
AI unit was ambushed or a petrified unit was in the way of a move. Now,
both types of units are properly "ignored" and the AI moves have been
made robust against unexpected events such as ambushes. Incidentally,
the latter also makes the AI more robust against WML events doing
things the AI cannot know about (such as removing units).
2016-10-16 19:59:19 -07:00
Chris Beck
545800f9f8 give better error messages for font initialization failure 2016-10-16 21:47:45 -04:00
Chris Beck
5c86a1bd76 Merge branch 'master' of http://github.com/wesnoth/wesnoth 2016-10-16 21:10:23 -04:00
Chris Beck
202408f28e simplify font::manager object a bit, give better error messages for font initialization failure 2016-10-16 21:07:09 -04:00
Charles Dang
52962540ff Faction Select: sort displayed recruit list alphabetically 2016-10-17 12:04:42 +11:00
Charles Dang
1402c9af1e Simplified utils::split
This seems to produce the exact same result as before. Do note that using it resulted in a crash
from an incorrectly short-circuited condition in help (4b66735293961), so it's possible the output
is different in some way. There have not seemed to be any negative effects, however.
2016-10-17 11:50:17 +11:00
Charles Dang
4b66735293 Help: flipped a conditional to prevent crashes when parsing invalid vectors 2016-10-17 11:45:16 +11:00
Charles Dang
0c36463d3a Updated CB projectfile 2016-10-17 11:35:53 +11:00
gfgtdf
9d31ae24d2 attempt to fix UB in tutorial start
https://gna.org/bugs/?25082
2016-10-16 22:16:45 +02:00
Jyrki Vesterinen
3858b22073 Update Visual Studio project 2016-10-16 21:39:02 +03:00
Jyrki Vesterinen
c507b78f29 Merge pull request #825 from GregoryLundberg/GL_clang_cleanup
Clean up some issues compiling with clang and gcc
2016-10-16 21:02:06 +03:00
Jyrki Vesterinen
442aec7ce1 Use boost::random_device for seeding the default RNG
And use std::mt19937 as the RNG backend instead of boost::mt19937.
2016-10-16 20:38:39 +03:00
gfgtdf
ab1b499730 attempt to fix crash in [clear_gobal_variable]
https://gna.org/bugs/index.php?25094
2016-10-16 19:38:18 +02:00
gfgtdf
44502938ea improve 'attempt to fix heap buffer overflow when using planning mode'
d64d871e4d
2016-10-16 19:21:50 +02:00
Celtic Minstrel
697a9a2edd Update XCode project 2016-10-16 13:05:53 -04:00
gfgtdf
982d9dc428 attempt to fix heap use after free when "reset to beginning" test map save replay
https://gna.org/bugs/?25096
2016-10-16 18:59:08 +02:00
gfgtdf
d64d871e4d attempt to fix heap buffer overflow when using planning mode
http://gna.org/bugs/?25097
2016-10-16 18:39:23 +02:00
Jyrki Vesterinen
9200fc8dba Add two copyright blocks 2016-10-16 19:25:48 +03:00
Ignacio R. Morelle
a686923261 campaignd: Fix incorrect use of boost::replace_all() 2016-10-16 13:12:25 -03:00
Gregory A Lundberg
3368d5b577 Travis has been reporting a warning 2016-10-16 10:56:58 -05:00
Gregory A Lundberg
6ef5085006 Minor style changes per @jyrkive 2016-10-16 10:56:58 -05:00
Gregory A Lundberg
86adfc47f8 GCC complains about float/double and useless cast 2016-10-16 10:55:09 -05:00
Gregory A Lundberg
0ecbbef033 Apply patch to boost
When using:

    scons strict=true ctool=clang

A number of issues appear concerning a known bug in Boost::Bind; applying the patch which should appear in Boost 1.63. Comments on the Boost ticket indicate this may also be an issue for earlier versions of GCC.

For the ticket, see

    https://svn.boost.org/trac/boost/ticket/12397

and the patch is at

    3c56630b54

NOTE: This does NOT create a dependency upon the patched header. If the header is changed, you must do a full re-build of all sources by hand.
2016-10-16 10:55:09 -05:00
Gregory A Lundberg
97b20ad60f Missing override qualifiers 2016-10-16 10:55:09 -05:00
Celtic Minstrel
3b52ae37fc Fixup unicode figure dash 2016-10-16 11:38:30 -04:00
Jyrki Vesterinen
5e2af01fba Fix build
This involves splitting standard colors out of font/constants.cpp.
Serialization/string_utils.cpp, that is part of wesnothlib
(compiled into both client and server) uses ellipsis and Unicode minus sign
from font constants, which means that font/constants.cpp must be part of
wesnothlib as well. However, one of standard colors is evaluated by calling
inverse(const SDL_Color&) declared in sdl/utils.hpp. Sdl/utils.cpp has way
too many dependencies to live in wesnothlib.

Hence, standard colors are now in a file of their own:
font/standard_colors.cpp. That file is part of wesnoth (not wesnothlib) and
only available for the client.
2016-10-16 18:34:22 +03:00
Chris Beck
dd165091ff fixup non-utf8 font/constants.cpp
fixes up ebc8ddfb78a777db9077d7ef1a9dfbb78507c909
2016-10-16 11:16:44 -04:00
Chris Beck
415cdd74e5 correct compilation errors, ODR violation
fixes up commit 30c1a852d37c555c6b5551d03d792baf9e08040e
2016-10-16 11:11:42 -04:00
Chris Beck
0f3fdb6064 add a code comment to unpremultiply alpha function 2016-10-16 10:14:44 -04:00
gfgtdf
3b04fecb3c attempt to fix crash when starting a mp game
same as c2dd4c93d8 but for the mp path
2016-10-16 15:13:00 +02:00
Charles Dang
8e3c554094 Replace utils::replace, strip, and strip_end with their Boost equivalents 2016-10-17 00:01:16 +11:00