50571 Commits

Author SHA1 Message Date
Mark de Wever
c6de6fa588 Remove an old-style-cast. 2012-07-22 17:15:30 +00:00
Simon Forsyth
1edff828c5 Add new files to Xcode project 2012-07-22 16:38:33 +00:00
Fabian Müller
e9c16cf709 Implemented a dialog for editing the map labels in the editor.
Changes to the side menu generation:
Shows the correct side numbers and names,
sadly the default for a side name is "1".
2012-07-22 16:29:09 +00:00
Timotei Dolean
1110020432 Add more clarifications regarding setting the exceptions mask...
...in the preprocessor.
2012-07-22 14:15:04 +00:00
Timotei Dolean
f616aa5884 Update the MSVC9 solution file - remove the palette_layout files 2012-07-22 13:17:21 +00:00
Charles Dang
ffb6bba3a6 Removed refs to deleted files 2012-07-22 11:46:28 +00:00
Fabian Müller
5fa7dc7f7c Redraw the palette every time a side is switchted.
This updates the unit's team color for example.
2012-07-22 11:25:29 +00:00
Fabian Müller
6da230921a Enabled the side menu in the editor.
It allows side creation and switching for now.
2012-07-22 11:04:20 +00:00
Fabian Müller
f23e15aa25 Fixed spelling in comments. 2012-07-22 10:50:59 +00:00
Fabian Müller
a68f0ca12b The palette is now a part of theme WML...
...instead of being placed at hardcoded coordinates. Windows and Mac
build systems still have to be adjusted.
2012-07-22 09:10:21 +00:00
Timotei Dolean
58d28e3f09 Set the std::ios::failbit exception when preprocessing a resource.
Fixes bug #19335

This is needed in order for the preprocessor's thrown
exceptions to reach our code and not be caught inside
STL's stream implementation.
2012-07-21 21:41:13 +00:00
Timotei Dolean
096d990b4e Move the --preprocess command's logic into a separate function 2012-07-21 21:41:06 +00:00
Mark de Wever
7e13a53e4e Add -Wmismatched-tags to the pedantic flags. 2012-07-21 21:10:34 +00:00
Mark de Wever
659d19c4f4 Add -Wdouble-promotion to the pedantic flags. 2012-07-21 21:10:32 +00:00
Mark de Wever
5c38ce6151 Add -Wnon-virtual-dtor to the pedantic flags. 2012-07-21 21:10:29 +00:00
Mark de Wever
00af0909c2 Add -Wctor-dtor-privacy to the pedantic flags. 2012-07-21 21:10:26 +00:00
Elvish_Hunter
9476d796c1 Moved [store_villages] from C++ to Lua 2012-07-21 10:03:31 +00:00
Elvish_Hunter
c8716ad799 Added new Lua function wesnoth.get_villages() 2012-07-21 09:55:26 +00:00
J. Tyne
f3631cd713 Get rid of parameters that are always...
...*resources::game_map, *resources::units.
2012-07-20 22:17:33 +00:00
J. Tyne
b2561adf81 Get rid of a parameter that is always *resources::game_map. 2012-07-20 21:11:25 +00:00
J. Tyne
4dc03b8239 Quick fix for (non-undoable) recruits not updating fog when DSU is on. 2012-07-20 18:23:28 +00:00
Riss Aline
6c22960136 new ai formula 'aki_eval' for testing a battle evaluation 2012-07-20 15:58:34 +00:00
J. Tyne
2f4e21d65c Refactor the parameters for move_unit(),
...eliminating two no-longer-useful ones.
2012-07-20 13:45:38 +00:00
J. Tyne
2992548026 Some code cleanup (for interrupted unit moves). 2012-07-20 05:04:46 +00:00
J. Tyne
0645d7da4e Eliminate some no longer useful parameters (for unit movement). 2012-07-20 04:48:00 +00:00
Simon Forsyth
b0854bf5f9 Simplify PLACE_UNITS_RANDOMLY macros 2012-07-20 03:24:38 +00:00
Simon Forsyth
1444d3f91d Remove the RANDOM_TRAIT_UNIT macro 2012-07-20 03:13:56 +00:00
Simon Forsyth
93e78c3e7d Make all the testing units generic with no id.
They certainly do not need names
2012-07-20 02:49:55 +00:00
Simon Forsyth
ba0c9e2ef2 No need to name the scenario in comments...
...before naming the scenario in WML
2012-07-20 02:43:59 +00:00
Simon Forsyth
b29dcc8dd5 Have units speak instead of locations. 2012-07-20 02:40:28 +00:00
Simon Forsyth
061bd5277d Move condition so test is done in event it is associated with 2012-07-20 02:27:30 +00:00
Simon Forsyth
9652a7f483 Remove saw_mermaid_enchantress variable 2012-07-20 02:16:47 +00:00
Simon Forsyth
e54ebb8261 Remove all the cages at the same time 2012-07-20 01:57:25 +00:00
Simon Forsyth
3e90a54c4f Zhul cannot know the gender of a unit she has never seen...
...or had identified for her.
2012-07-20 01:50:47 +00:00
Simon Forsyth
96231133df Making taking the ring and holy water optional...
...and not available to the dust devil. Also call the holy water holy
water everywhere instead of holy in some places and pure in others.
2012-07-20 01:42:30 +00:00
J. Tyne
17185a49b8 Simplify the AI detection of a unit actually moving. 2012-07-19 17:23:11 +00:00
Steven Panek
9e23b722f9 'Bahasa Indonesian' -> 'Indonesian' on g.w.o. 2012-07-19 05:26:44 +00:00
J. Tyne
e6c069bb87 Don't allow "Press t to continue" if we're executing a whiteboard move.
Fixes bug #19744.
2012-07-19 05:13:02 +00:00
J. Tyne
ad7b39687b Add "the moving unit is gone" to the definition of movement being interrupted. 2012-07-19 04:21:29 +00:00
J. Tyne
d6b2915b9e Clean up the display for "press t to continue". 2012-07-19 03:50:13 +00:00
J. Tyne
4c3a445f26 Allow fog to be cleared during a move+attack.
Suppressing the fog clearing was just creating inconsistencies. It denied
players a chance to abort if their movement revealed a powerful enemy. Plus,
there are already other things (e.g. ambushes) that can interrupt the move.
2012-07-19 03:42:57 +00:00
J. Tyne
8705ef16e3 Making better use of move_unit()'s parameters. 2012-07-19 03:25:17 +00:00
J. Tyne
16e478dec4 Making better use of move_unit()'s parameters. 2012-07-19 02:37:51 +00:00
J. Tyne
dfe441c74f Streamline wb::move::execute()...
...to make better use of the new parameters and return value of
move_unit_along_route().
2012-07-19 00:52:58 +00:00
Alexander van Gessel
354d51693b Add a few more timestamps to g.w.o log 2012-07-18 23:46:07 +01:00
J. Tyne
095b20bca4 Convert unit_sighted_result to interrupted.
This should allow there to be less guessing as to why movement ended.
2012-07-18 22:43:58 +00:00
Alexander van Gessel
4c18f76a12 Make GitHub._github_api_request recurse...
...when a Link header with rel="next" is encountered, to deal with pagination
2012-07-18 22:56:57 +01:00
Alexander van Gessel
514780ee99 Refactor libgithub.GitHub._github_api_request: take an url...
...and optional request method, not a urllib2.Request object
2012-07-18 22:56:55 +01:00
Alexander van Gessel
63ce3d2bb4 libgithub fix 2012-07-18 22:56:46 +01:00
Fabian Müller
dcfe147768 Paint the unit palette items in team color. 2012-07-18 21:39:19 +00:00