44882 Commits

Author SHA1 Message Date
Steven Panek
1dd559998d Applied patch #1887 with slight modifications. 2011-03-07 23:51:15 +00:00
Jérémy Rosen
cdf559886a fix bug #17845: unit facing is randomized even when forced by WML 2011-03-07 21:30:37 +00:00
Fabian Müller
42351e9291 LoW::1: Halved the loot in multiplayer for killing the leader. 2011-03-07 16:59:22 +00:00
Fabian Müller
6e01fe587a LoW adjusted the village_gold to one...
...since two seems to be the default in MP.
2011-03-07 16:34:07 +00:00
Fabian Müller
8d0dd598cc LoW: New flags for elvish sides. 2011-03-07 15:34:48 +00:00
Fabian Müller
3b3085202e LoW::7: Adjusted the fleeing conditions. 2011-03-07 15:16:44 +00:00
Fabian Müller
3113bfb074 LoW::1: Disabled the canrecruit disabling of Velon after his side switch. 2011-03-07 15:16:10 +00:00
Fabian Müller
36c5e2b970 LoW: Fixed the LOOT macro to display for the right side only. 2011-03-07 15:15:14 +00:00
Fabian Müller
a6440fa96d LoW::7: Fixed missing or wrongly applied speech. 2011-03-07 14:42:34 +00:00
Fabian Müller
2d42429c68 Applied patch #2585 2011-03-07 14:00:20 +00:00
Fabian Müller
16f45cb9c5 LoW::3: Fixed mispelled preprocessor symbol,
...fixing the unnamed bug that caused Landar's side to be merged in
Kalenz.
2011-03-07 12:22:08 +00:00
Fabian Müller
091db85e65 LoW::2: Fixed the scenarios objectives on multiplayer. 2011-03-07 10:26:32 +00:00
Fabian Müller
64f419ef10 LoW: Fixed the experience_modifier to the singleplayer default 100.
It seems not to be the default in multiplayer.
2011-03-07 10:19:20 +00:00
Steven Panek
16f1cd26cd Fixed some typos. 2011-03-06 23:04:24 +00:00
Steven Panek
1c870ce47c Updated the changelogs. 2011-03-06 23:02:53 +00:00
Steven Panek
e6eca41c39 Added context providers to the RoJ's 'Take it' and 'Leave it' strings. 2011-03-06 22:54:09 +00:00
Steven Panek
595cd77286 Added TAKE_IT_STRING and LEAVE_IT_STRING arguments...
...to PICKUPPABLE_ITEM to ensure the possibility of accurate
translatability.
2011-03-06 22:45:43 +00:00
Steven Panek
be495c0a75 Adapted the desert castle's and the desert keep's...
...terrain graphics code to their ruined counterparts.
2011-03-06 22:21:34 +00:00
Sergey Popov
ad9df182fb Fixed broken filename in the SConscript file. 2011-03-06 19:27:20 +00:00
Mark de Wever
6db76d8d5f Improve pathfind::teleport_map constructor.
Remove an unused parameter.

Send a not modified vector as const ref instead as copy.

Make some other parameters const as well.
2011-03-06 19:08:17 +00:00
Mark de Wever
f7d02d6a76 Mark teleport_group::get_teleport_pair as const.
Also mark a const parameter const.
2011-03-06 19:08:14 +00:00
Mark de Wever
9066e95698 Send a read only param as const reference.
The parameter was send as copy before.
2011-03-06 19:08:11 +00:00
Mark de Wever
be1d8c2d6a Pass parameter by const ref instead of const value.
Issue found by cppcheck.
2011-03-06 19:08:09 +00:00
Mark de Wever
aa3b048268 Pre instead of post increment a variable.
Issue found by cppcheck.
2011-03-06 19:08:06 +00:00
Mark de Wever
1f2bab3930 Rethrow original exception instead of a copy.
Issue found by cppcheck.
2011-03-06 19:08:03 +00:00
Mark de Wever
3a09a98d25 Rethrow original exception instead of a copy.
Issue found by cppcheck.
2011-03-06 19:07:59 +00:00
Mark de Wever
71c0db2a12 Strip trailing whitespace. 2011-03-06 18:27:59 +00:00
Mark de Wever
b06e17931a Strip trailing whitespace. 2011-03-06 18:27:54 +00:00
Mark de Wever
579c62e1a3 Initialize all members. 2011-03-06 18:27:50 +00:00
Mark de Wever
a51d55b939 Added constructor to initialize all members. 2011-03-06 18:27:47 +00:00
Mark de Wever
61ce2a151a Initialize all members. 2011-03-06 18:27:44 +00:00
Mark de Wever
357bb9fdb7 Added constructor to initialize all members. 2011-03-06 18:27:41 +00:00
Mark de Wever
0dc504bf8c Added constructor to initialize all members. 2011-03-06 18:27:36 +00:00
Mark de Wever
e28e545a29 Update some comment and output text. 2011-03-06 17:47:48 +00:00
Mark de Wever
d13fb93696 'Enable' unit tests for tips.
There is an odd crash which seems not to be related to the code at hand,
but is reproducable. Needs to be tested further.
2011-03-06 17:47:36 +00:00
Anonymissimus
340f0d1765 project files update, resolving a conflict 2011-03-06 17:40:01 +00:00
Mark de Wever
46878fcd94 Enable the unit test for gui2::tdebug_clock.
This also involves modifing the tpopup class. It's the first test using
a tpopup class so several unit test holes needed to be punctured.
2011-03-06 14:14:15 +00:00
Mark de Wever
0a0e5d1ff6 Enable unit tests for tgamestate_inspector. 2011-03-06 14:14:12 +00:00
Mark de Wever
598b127066 Avoid deferring NULL pointers.
Several pointers are NULL when running from the unit tests, these were
deferred without testing.
2011-03-06 14:14:09 +00:00
Mark de Wever
d33c8fcf4f Enable the unit test for tmp_server_list.
It involves the tmp_connect class since it has access to the class, not
really clean, but marked for unit tests only.
2011-03-06 14:14:07 +00:00
Mark de Wever
f032fe7159 Improve the unit tests.
Now that we added a hole to get the id of the window use that id in the
error message instead of the cryptic name of typeid.
2011-03-06 14:14:02 +00:00
Mark de Wever
7d1c01997a Let an image widget honours its size limits.
Now uses code more like the tcontrol class. The issue was spotted by
fendrin.
2011-03-06 10:48:35 +00:00
Mark de Wever
ef6eb243e1 Recognize newer versions of FriBidi again.
Newer versions don't define a symbol directly confusing cmake, fixed by
letting the compiler test whether it really doesn't exist. The issue was
spotted by Espreon.
2011-03-06 10:09:51 +00:00
Mark de Wever
36022c9cb2 Move tmp_login to its own files. 2011-03-06 08:39:35 +00:00
Mark de Wever
7cb892abff Add tooltips to avoid WML warnings.
Introduced by 2011-03-06T08:28:23Z!koraq@xs4all.nl, but didn't want to mix the revert new code.
2011-03-06 08:30:41 +00:00
Mark de Wever
360ade6068 Revert the entire new messages stuff.
The main reason for reverting are:

The stuff has hampered my development for almost a month now, including
forcing me to delay things I need to/want to work on.

The recruit dialog looks very ugly on 1024x768 since it doesn't fit entirely
on the screen. It's still usable, but lowering the height of the main window
makes the dialog unusable.

The code includes several new wml errors:

"Invalid WML found: Window builder: parsing resolution tip with empty 'id'
field. Will become mandatory in 1.9.7. (4)"

The unit tests are broken, and instead of being fixed properly their
code is being `fixed' by disabling tests. 2011-03-05T20:39:56Z!fabianmueller5@gmx.de indicates it
should fix the unit tests, but it doesn't so the code seems
untested. Which means I still can't use the tests for other code I
want to commit.

In 2011-03-05T09:12:02Z!fabianmueller5@gmx.de fendrin commits not working code with the goal to
force me to help him, which I consider bad practice, show the code in
a pastebin if you want help. I want to work on things when _I_ choose
to, and not being coerced to by committing bad code.

Commit 2011-03-05T12:04:13Z!fabianmueller5@gmx.de throws private _GUI* macros in a global header,
which might break other code in unexpected ways. The file modified
even contains the documentation regarding how to use GUI* and _GUI*
macros. And another remark that I should look at fixing the issue.

So I had enough of this stuff; it's incomplete, buggy and hampers the work
of at least one other developer for several weeks now.

Reverts fendrin's commits:

2011-02-11T19:01:16Z!fabianmueller5@gmx.de
2011-02-12T06:25:47Z!fabianmueller5@gmx.de
2011-02-12T16:43:20Z!fabianmueller5@gmx.de
2011-02-12T17:37:40Z!fabianmueller5@gmx.de
2011-02-12T18:36:30Z!fabianmueller5@gmx.de
2011-02-12T19:59:34Z!fabianmueller5@gmx.de
2011-02-12T20:47:43Z!fabianmueller5@gmx.de
2011-02-12T21:41:35Z!fabianmueller5@gmx.de
2011-02-12T22:35:15Z!fabianmueller5@gmx.de
2011-02-14T19:24:40Z!fabianmueller5@gmx.de
2011-02-14T20:55:55Z!fabianmueller5@gmx.de,
2011-03-02T18:59:59Z!fabianmueller5@gmx.de
2011-03-03T13:34:48Z!fabianmueller5@gmx.de
2011-03-03T13:56:10Z!fabianmueller5@gmx.de
2011-03-03T17:32:49Z!fabianmueller5@gmx.de
2011-03-04T00:52:26Z!fabianmueller5@gmx.de
2011-03-04T11:27:39Z!fabianmueller5@gmx.de
2011-03-04T11:28:48Z!fabianmueller5@gmx.de
2011-03-05T09:12:02Z!fabianmueller5@gmx.de
2011-03-05T11:16:09Z!fabianmueller5@gmx.de
2011-03-05T11:19:37Z!fabianmueller5@gmx.de
2011-03-05T11:21:19Z!fabianmueller5@gmx.de
2011-03-05T11:32:25Z!fabianmueller5@gmx.de
2011-03-05T11:47:30Z!fabianmueller5@gmx.de
2011-03-05T12:00:39Z!fabianmueller5@gmx.de
2011-03-05T12:01:22Z!fabianmueller5@gmx.de
2011-03-05T12:02:03Z!fabianmueller5@gmx.de
2011-03-05T12:02:46Z!fabianmueller5@gmx.de
2011-03-05T12:04:13Z!fabianmueller5@gmx.de
2011-03-05T12:05:02Z!fabianmueller5@gmx.de
2011-03-05T12:20:25Z!fabianmueller5@gmx.de
2011-03-05T12:24:39Z!fabianmueller5@gmx.de
2011-03-05T13:56:43Z!fabianmueller5@gmx.de,
2011-03-05T16:32:38Z!fabianmueller5@gmx.de
2011-03-05T16:34:34Z!fabianmueller5@gmx.de
2011-03-05T16:35:17Z!fabianmueller5@gmx.de
2011-03-05T20:39:56Z!fabianmueller5@gmx.de
2011-03-05T22:17:03Z!fabianmueller5@gmx.de
2011-03-05T22:29:29Z!fabianmueller5@gmx.de.

Also reverts a build system change that is no longer needed:

2011-03-05T16:35:04Z!anonymissimus@arcor.de
2011-03-06 08:28:23 +00:00
Steven Panek
9a6855f78c Set svn:executable and svn:eol-style. 2011-03-06 06:29:07 +00:00
Thibault Févry
3d95e9f7fa Use a default value similar to the one used in wiki_grabber.py.
Also a small doc update.
2011-03-05 23:54:45 +00:00
Thibault Févry
a7c96bb4d6 Added a new script: data/tools/terrain2wiki.py
Same as data/tools/terrain2wiki.rb except it works with current format
It also works with arguments, so you can choose source and destination
files

Still need some changes but it already works. Only feature that was in
ruby tool and not in this one is stats from. It will be added in a
future version.

mvt_alias and def_alias will also be added in a future version in the
alias column.

Another thing to not is that the tool does not parse terrains with an
'hidden=yes' because these shouldn't appear in a terrain reference.

Pep8 and Pylint results are good.
2011-03-05 23:37:07 +00:00
Thibault Févry
43f9d2845d Fix a whitespace problem 2011-03-05 23:25:45 +00:00