Commit graph

57758 commits

Author SHA1 Message Date
gfgtdf
6994ef427c ignore files that begin with '.'
this is also the behaviour in the non boost filesystem code
2014-11-25 03:45:40 -03:00
Chris Beck
4c92a1f9a3 Update INSTALL
mark libs on which we have only a header dependency
remove "boost thread" from the list since it was determined (in conversation on irc) that we don't need it
2014-11-23 17:16:10 -05:00
Ignacio R. Morelle
659fd4fb0f Purge RELEASE_NOTES 2014-11-22 21:07:13 -03:00
mattsc
0014ef3f46 Station Guardian MAI: bug fix for unreachable stations
Keep guardian in place if the station is unreachable.
2014-11-21 19:42:42 -08:00
Nils Kneuper
d83a75fae5 added Portuguese manual images 2014-11-21 19:26:33 +01:00
gfgtdf
385115727f fix modification for mp campaigns
the dependency manager cannot handle campaigns, we work around this by forcing the dependency manager to accept any modifications for campaigns.

fixes https://gna.org/bugs/index.php?22334
2014-11-21 15:03:47 +01:00
mattsc
bb207f4d8e Update Xcode project file 2014-11-20 13:09:59 -08:00
Ignacio R. Morelle
bca6d2c23d fs: Don't complain about failing to read /proc/self/exe with Boost.filesystem
This is intended to silently fail on Unix-like platforms where no procfs
is available, and indeed that's how it works in the non-BFS
implementation of get_exe_dir(). The caller (currently a single function
in game.cpp/wesnoth.cpp) must be able to deal with this situation
in a graceful fashion.
2014-11-20 00:36:36 -03:00
Ignacio R. Morelle
acb44b45ca Update changelog for the fix for bug #22967 2014-11-19 00:52:12 -03:00
Ignacio R. Morelle
94bdd65523 Bump changelog version again 2014-11-19 00:46:43 -03:00
Ignacio R. Morelle
ed860bc9ba addon/mg: Drop superfluous NULL pointer check
update_all_button's value is obtained from operator new, which will
throw if the allocation fails, so it can never be NULL in subsequent
statements.

Found by coverity.
2014-11-19 00:12:42 -03:00
gfgtdf
01c3d7c38d use generic_string()
backports 115c2a7985
2014-11-19 00:15:45 +01:00
Ignacio R. Morelle
1482e8d5fb preproc: Inherit parent textdomain on slowpath macro substitution (bug #22962)
Fixes bug #22962, reported on the forums as affecting the Swamplings
add-on from 1.10: <http://r.wesnoth.org/r41129>

This is most likely a regression from 1.8.x, as it doesn't affect 1.8.6
and the reporter on the forums claims it affected 1.10.x.

Direct substitutions do not require the instantiation of a new
preprocessor_streambuf, instead inheriting the current context's
streambuf, along with its textdomain. preprocessor_data() is then
constructed with an overruled textdomain which leads to a no-op as it is
identical to the streambuf's current textdomain.

Nested substitutions _do_ require a new streambuf created by means of
its copy constructor, which leaves the new streambuf's textdomain set to
the default of PACKAGE (defined as "wesnoth"). Then a new
preprocessor_data context is instantiated and instructed to overrule the
initial textdomain with the macro's textdomain. However,
preprocessor_data's base class constructor (`preprocessor`) has already
copied the streambuf's initial textdomain id to its previous textdomain
record, causing it to restore that textdomain on destruction instead of
the correct one.

Thus, when performing slowpath substitutions we need to make sure the
preprocessor_data and preprocessor constructors see the parent context's
streambuf textdomain instead of the wesnoth default. Later, the nested
preprocessor_data will restore the correct textdomain and emit a
trailing <FE>line directive for the parent if necessary.

The alternative of having the preprocessor_streambuf copy constructor
copy the original streambuf's textdomain would also fix this bug, but it
would break the intended behavior for slowpath file inclusions, which
always default to wesnoth. Although most WML containing translatable
strings have a #textdomain directive at the start nowadays (and this is
in fact enforced by wmllint), it's probably a bad idea to change the
current behavior in this case for UMC, at least for the 1.12.x stable
series.

I do not expect regressions from this commit and it certainly won't
cause compatibility issues or behavior changes outside i18n -- at least
for add-ons that are doing things right and not relying on translatable
strings having the wrong value.

DM, DW, DiD, EI, HttT, LoW, Liberty, SoF, THoT, TRoW, TSG, data/core,
and data/multiplayer all present preprocessor output differences before
and after this fix, but they amount to no changes to the parser's
output; unlike SotBE and UtBS, which benefit from the fix:

 * data/campaigns/Son_Of_The_Black_Eye/scenarios/07_The_Desert_of_Death.cfg:439
   had the {TURNS_RUN_OUT} core macro substitution bound to the
   campaign's own textdomain instead of wesnoth for some reason.

 * data/campaigns/Under_the_Burning_Suns/scenarios/05_A_Subterranean_Struggle.cfg:1749
   onwards (the ENEMY_ATTACK and ALLY_REINFORCEMENTS macros) bound
   several strings to the wesnoth textdomain instead of the campaign's
   textdomain.

I also tested this commit with my own add-on, After_the_Storm, which
presented similar results as DM et al above. Finally, Swamplings is
properly fixed by this change.
2014-11-18 05:19:52 -03:00
Chris Beck
1bc5aa91fb server: catch invalid utf8 exceptions
issue reported by coverity
2014-11-17 20:17:26 -05:00
Chris Beck
d45d8ad890 backport: change server to use utf8 instead of utils unicode
This is to make it easier to cherry-pick the exception catch fixups
2014-11-17 20:16:51 -05:00
Chris Beck
8f9f3dd6f5 catch boost::bad_function_call exceptions in server command handler
Don't know if this can actually happen in practice but it is
reported by coverity.
2014-11-17 20:05:41 -05:00
Chris Beck
bb9aabd1b8 replace many lexical_cast with lexical_cast_default
This is to avoid bad_lexical_cast exception. I'm not sure if in
any cases this could actually have thrown but it's better to be
safe.

Conflicts:
	src/server/game.cpp
2014-11-17 20:04:42 -05:00
Chris Beck
2cb85bd161 fix an uncaught bad lexical cast exception
coverity reports that it is uncaught and would therefore crash
the server if it occurred
2014-11-17 19:53:31 -05:00
Ignacio R. Morelle
5aa1e9c40a Rename falcon race icon so the editor can actually find it 2014-11-16 21:22:36 -03:00
mattsc
6ac4625588 Xcode project update for 1.12.0
Version number and ingame changelog
2014-11-15 09:04:47 -08:00
Nils Kneuper
ce22bc43e4 post release version bump to 1.12.0+dev 2014-11-15 13:45:29 +01:00
Nils Kneuper
de3aab3c78 fixed issue with German translation breaking help 2014-11-15 11:28:03 +01:00
Nils Kneuper
5f330510ef bump version to 1.12.0 2014-11-15 10:55:48 +01:00
Nils Kneuper
9644225fcc pot-update & regenerated doc files
preparing for 1.12.0
no new / changed strings
2014-11-15 10:54:02 +01:00
Nils Kneuper
484abee710 restored the previous form of a string change which broke the freeze
if this change was intentional, please reapply it after the 1.12.0
release
2014-11-15 10:51:21 +01:00
Ignacio R. Morelle
f918ba309f LoW: file-local spellchecker exceptions for wmllint 2014-11-15 06:42:10 -03:00
Ignacio R. Morelle
39e2d710bd wmlindent pass 2014-11-15 06:42:10 -03:00
Nils Kneuper
fe8c111cae updated Russian translation 2014-11-15 10:39:22 +01:00
Chris Beck
a438806c9a update RELEASE_NOTES 2014-11-15 01:52:55 -05:00
Chris Beck
1d99a8a12d Merge pull request #332 from cbeck88/disable_SOS_saves
Disable start of scenario saves in multiplayer
2014-11-15 01:49:09 -05:00
Chris Beck
e099e5c749 update changelog 2014-11-14 19:06:48 -05:00
Chris Beck
4dabb59b90 disable start of scenario saves for 1.12, "fixing" bug #22068
https://gna.org/bugs/?22068
2014-11-14 19:06:47 -05:00
Chris Beck
80bd380425 add and use zookeeper's start of game sound for mp (1.12)
thanks zookeeper!
2014-11-14 12:32:41 -05:00
Chris Beck
1ed71c61db adjust some of the editor images code for terrain overlays
the adjustments just make it use the more standard SDL utils fcns
for making a transparent (neutral) surface, and they avoid floating
point operations when scaling images

we also fix a bug caused by using "sdl_blit" instead of
"blit_surface", which caused the terrain overlay not to show up

Conflicts:
	src/editor/action/mouse/mouse_action.cpp
2014-11-14 02:49:42 -05:00
Ignacio R. Morelle
4cffab3b84 Decrease campfire terrain frames duration from 200 to 140 ms
This matches the ANIMATED_CAMPFIRE and ANIMATED_BRAZIER macros from
data/core/macros/image-utils.cfg and looks subjectively better.
2014-11-13 20:21:52 -03:00
Ignacio R. Morelle
128171d716 Add ANIMATION_08_140 terrain graphics macro 2014-11-13 20:21:52 -03:00
Chris Beck
0d02afd672 Revert "disable "alpha thresholding" in our bilinear interpolation algo"
This reverts commit d73a117278.

This is being reverted because there is still yet more bad behavior
in our alpha channel when scaling images, for instance this causes
the terrain overlays to disappear when mousing over terrains with
one of the editor terrain tools.

The reason is that our "scale image" routine is broken and doesn't
weight color contributions by alpha. It's not apporpriate to get
rid of the hacks like alpha thresholding until that has been fixed
and that can't be fixed on 1.12 right now.
2014-11-13 12:51:07 -05:00
Fabian Müller
b0891e6eff LoW 09 SP: Adjust player's gold to match the MP settings. 2014-11-11 11:40:45 +01:00
Fabian Müller
eb3c77044f LoW 7 SP: Give village ownership to Galtrid again. 2014-11-11 11:40:45 +01:00
Fabian Müller
28eaecb1d5 LoW 7: Fix the location of an item. 2014-11-11 11:40:44 +01:00
Fabian Müller
3ca19461e9 LoW: Made the bird song macro less noisy. 2014-11-11 11:40:44 +01:00
Fabian Müller
a35cebe6af LoW 3+7 map: Fixed label positions. 2014-11-11 11:40:44 +01:00
Ignacio R. Morelle
a8bcd2a528 gui1: Fix bogus dialog option buttons layout (bug #22791, #22379)
Formerly, the option buttons at the bottom of the dialog were laid out
by redoing some math instead of tracking the dialog's menu position,
which is always valid (even when there is no menu!). I'm not entirely
sure why, but the math reprised here became bogus with the introduction
of top buttons in commit 045bda037d (for
the Add-ons Manager dialog), in particular for dialogs *not* using them
(such as the in-game Statistics dialog), even though the menu is still
laid out correctly.

So instead of reinventing the wheel, we really should just take the
menu's position and height as a baseline for the bottom option buttons.
At worst the height is 0, but the position is still within the dialog's
boundaries (but see below for an unsolved corner case).

This commit reverts commit f60ef98e27
(a.k.a. 69521000dc in 1.12) that's part of
PR #263, because it turns out that the solution proposed there is only a
convenient workaround that solves a layout issue for a single dialog
(Statistics, see bug #22379) and introduces a new bug for another
(Add-ons Manager, see bug #22791).

Regardless of the cause for #22791, the approach put forward by this
commit is more consistent with best practice (laying out widgets from
top to bottom each row's geometry depending on the previous row's), so I
have decided to not look too much into it.

It should be noted that the layout of bottom option buttons breaks
entirely for dialogs missing a menu, both before and after the
introduction of top buttons. Currently there is no GUI1 dialog that
attempts to insert option buttons while lacking menu entries, so I'm not
too concerned about this bug (which affects 1.10 too!). Besides, some
day GUI1 is supposed to go the way of the dodo and stop bothering us
with its marvelous inflexibility and arcane logic.
2014-11-10 22:32:57 -03:00
Ignacio R. Morelle
c10e31c7f7 gui1: Reuse an unchanged max instead of recalculating it
Counts as a minor cleanup of commit
045bda037d.
2014-11-10 22:13:17 -03:00
Fabian Müller
6d96f19c6c LoW 1+21: Added some more hill terrain to the map. 2014-11-11 00:10:23 +01:00
Ignacio R. Morelle
a8cb62ecb6 Adorned a changelog entry with more information, moved it to i18n 2014-11-09 20:57:59 -03:00
gfgtdf
3f1c1a705a Update changelog 2014-11-10 00:51:46 +01:00
Chris Beck
505fa4681f Merge branch '1.12' of https://github.com/wesnoth/wesnoth into 1.12 2014-11-09 18:41:47 -05:00
Chris Beck
14b4286bea fixup OS X compilation (for BFS-disabled) by reapply bugfix #16694
See irclogs
http://www.wesnoth.org/irclogs/2014/11/%23wesnoth-dev.2014-11-08.log

Conflicts:
	src/gettext.cpp
2014-11-09 18:41:25 -05:00
gfgtdf
83caa8d48b maybe fix default langauge
backports b6f916adf1
2014-11-10 00:19:30 +01:00