59995 Commits

Author SHA1 Message Date
gfgtdf
2a395fb750 don't allow toggle shroud during enemies turn.
whether DSU (= delayed shroud updates) is enabled for a team is part of
the gamestate and toggeling it during a turn of a networked side will
cause OOS sooner or later. So we cannot toggle it then.
2015-01-10 01:47:46 +01:00
gfgtdf
579bad7437 fix [store_starting_location]
fixes up 9cde1af9c8
2015-01-09 18:04:23 +01:00
Boldizsár Lipka
51d47b1ee4 Changelog entries for previous commit. 2015-01-09 13:43:23 +01:00
Boldizsár Lipka
a7f4849836 Change title screen music to transience.ogg. 2015-01-09 13:22:07 +01:00
Charles Dang
6ae54c62ac T: added image for highlighting hexes in ZoC lesson 2015-01-09 22:18:40 +11:00
Charles Dang
5d5f85814f T S2: initial refactor. Still much to do 2015-01-09 22:12:57 +11:00
Charles Dang
b4614de149 Fixup ee868fc82b09. Forgot to remove an 'end' key
Also re-added the parens around the get_child call
2015-01-09 22:11:56 +11:00
Charles Dang
ee868fc82b Misc code cleanup 2015-01-09 21:53:36 +11:00
Charles Dang
0e63440aa4 Merge branch 'update_dejavu_sans' 2015-01-09 20:41:48 +11:00
Charles Dang
3c882ae564 Added myself to Programming 2015-01-09 15:13:59 +11:00
Charles Dang
59b57fab95 Updated DejaVu Sans to 2.34
The following codepoints were added:
* 8378
* 10858-10859
* 11807
* 42816-42817
* 42912-42922
* 128512
* 128529
* 128533
* 128535
* 128537
* 128539
* 128543
* 128550-128551
* 128558-128559
* 128561-128562
* 128564
2015-01-09 13:06:03 +11:00
gfgtdf
9cde1af9c8 fix explicit indexes for [store_unit]
and for [store_locations] [store_starting_location] [store_unit_type]

see comment for 201d83f608 (fix [store_side] to allow explicit indexes)

As a side effect, this commit now also alows mode="replace"/"append"/default for
[store_locations] [store_starting_location] [store_side] [store_unit_type] which was
previously only possible for store_unit
2015-01-09 00:51:41 +01:00
gfgtdf
db5f6daec3 don't assign computer sides to new players
seems like that part of bug https://gna.org/bugs/?22968 effected 1.13 too.
2015-01-08 17:09:09 +01:00
gfgtdf
e2a52ee0cb add OOS debug option in mp configure 2015-01-08 17:09:08 +01:00
gfgtdf
dbb75bdd47 add oos debug mode and mp_debug_checkup class
The game sometimes does some checkup to test whether the calculated results in a replay match the ones calculated during the original game.
This data was stored in the replay inside the [command] for that action. The problem is that this doesn't work in networked mp because we often send the [command] before calculating the results.
I added an alternative mode that used get_user_choice to compare the results, this also works in networked mp but it causes a little more network traffic.
2015-01-08 17:09:07 +01:00
gfgtdf
5067ecf932 Merge pull request #361 from mstrebel/changelog-1.13
Update changelog for bug #18926 in 1.13+dev
2015-01-07 23:56:39 +01:00
Michael Strebel
50982cec5b Updates changelog and player_changelog.
(Bug #18926)
2015-01-07 23:07:45 +01:00
Michael Strebel
f4f25126bd Add Michael Strebel to miscellaneous contributors. 2015-01-07 22:44:09 +01:00
Charles Dang
31b3090cf8 T S1: merged 'Recruits' and 'New Recruits' lessons, and tweaked the product 2015-01-08 06:43:31 +11:00
Charles Dang
d9ef035bc0 Ran wmlindent on the new unit test. Some formatting had to be manually fixed. 2015-01-08 06:07:07 +11:00
Chris Beck
2c6d4dacf7 Merge pull request #360 from cbeck88/menu_item_tests
add lua function "fire_wml_menu_item" and unit tests for menu items
2015-01-07 14:03:41 -05:00
gfgtdf
a3e2b0e5e4 Merge pull request #359 from mstrebel/bug_18926
Changes registration of hotkeys for tips on titlescreen.
2015-01-07 17:37:30 +01:00
Chris Beck
f015745e22 Revert "Always consider border hexes when filtering locations"
This reverts commit dc807a0ab68387b4579a3acbd51c1b4b8f7fe82c.

We agreed on irc that this commit is too hasty and requires more
testing.
2015-01-06 22:28:23 -05:00
Chris Beck
8459bf7104 add lua function "fire_wml_menu_item" and unit tests for menu items
this commit also changed slightly the way that wml menu events
are synced. previously they were run via "run_in_synced_context",
now they are run via "run_in_synced_context_if_not_already", which
makes it safe to fire them from lua (a synced context).
2015-01-06 21:42:52 -05:00
gfgtdf
88de21a5ff check is_replay on [set_global_variable] and [do_command]
adds a new method is_replay() to check whether we are in a replay.
fixes http://gna.org/bugs/?21906
Also also we make [do_command]/run_in_synced_context_if_not_already more
robust by checking is_replay
2015-01-06 23:54:40 +01:00
Charles Dang
d71d39ec7a Fixup 238a48944477, typo in transform_to key 2015-01-07 00:49:47 +11:00
Charles Dang
6f60640c8e Revert "Use [modify_unit] for MODIFY_UNIT"
This reverts commit 02ecc00b769c1479afe019a5d36e3810f4e89bba.
2015-01-07 00:26:24 +11:00
Charles Dang
4ac0373d09 Converted mainline uses of ON_SIGHTING to sighted events 2015-01-07 00:24:37 +11:00
Charles Dang
a0543d8206 Add note to ON_SIGHTING documentation that it's no longer necessary 2015-01-07 00:04:15 +11:00
Charles Dang
02ecc00b76 Use [modify_unit] for MODIFY_UNIT 2015-01-06 23:53:10 +11:00
Charles Dang
238a489444 Use [transform_unit] for TRANSFORM_UNIT 2015-01-06 23:40:46 +11:00
Charles Dang
8a620dd5f1 Use [filter_condition] in RECALL_AI_SIDE 2015-01-06 19:33:13 +11:00
Charles Dang
75e7d41425 Use [filter_condition] in second part of LIMIT_CONTEMPORANEOUS_RECRUITS 2015-01-06 19:05:31 +11:00
Charles Dang
10023d79a6 Use [not] instead of [else] hack in IF_DEAD 2015-01-06 18:58:23 +11:00
Charles Dang
f7ff591fe5 Use [clear_menu_item] instead of the [set_menu_item] workaround where applicable 2015-01-06 18:52:38 +11:00
Chris Beck
7adde8af9c lua: change a reference variable to a non-reference type
This line was not an error -- it is legal in C++ to bind a const
reference to a temporary value. It's only slightly more confusing
than usual in this case because the string it is built from is
a C-string owned by lua, and the temporary std::string object is
implicit.

I don't believe this commit will even make any difference in the
compiled code, it's only slightly simpler and more readable.
2015-01-06 00:00:04 -05:00
Charles Dang
7a9a13c80d Drop border_size= and usage= keys from NO_MAP_DATA 2015-01-06 15:39:36 +11:00
Charles Dang
2eff60bc42 Use [filter_condition] in AI_CANT_PLAY 2015-01-06 15:36:42 +11:00
Chris Beck
748f872091 lua: make it easier to disable strict mode global variables
After this commit, the "strict mode" lua variable errors may be
disabled with

  ilua.strict = false

and reenabled with

  ilua.strict = true

There will typically be no noticeable performance difference from
previously to this commit.

This is a bit simpler than the other methods described which
include using pcall or resetting the metatable of _G.
2015-01-05 14:58:09 -05:00
Chris Beck
567f135f1e Merge branch 'maybe_fix_23115' 2015-01-05 13:15:10 -05:00
Chris Beck
eaa078a86d initialize wml menu item handlers when they are set, not in ctor
this commit causes wml menu items to have their events registered
not during construction but only when "init_handler" is called.
it refactors the wmi_container object to do this when it
constructs new items via the [set_menu_item] path.

this is necessary because the items might be constructed before
the event queue even exists, and we want them to be able to
persist and be reactivated when a new campaign scenario starts.

more testing is necessary to determine if all code paths, including
carryover and reloading, are still working after this commit, and
the earlier commit 6fc1ac1bb224cddec5ccbb7f7865b69b1b093a01

See also discussion of bug #23115.
2015-01-05 12:47:32 -05:00
Michael Strebel
3b1abdf1e7 Changes registration of hotkeys for tips.
Removes the static const from wrapper methods.
Take binding function as copy in register_hotkey.

Fixes bug #18926
2015-01-05 18:17:49 +01:00
gfgtdf
486fc8ed71 fixup HEAD 2015-01-05 17:29:46 +01:00
gfgtdf
201d83f608 fix [store_side] to allow explicit indexes
[store_side] variable= some_variable[0] ... [/store_side] would result in a wesnoth.set_variable(some_variable[0][0]. ...)  call which we don't allow in master after https://github.com/wesnoth/wesnoth/pull/231. 1.12 would just ignore the second index in this case. I decided to rather fix [store_side] than to restore the 1.12 behaviour of set_variable (which wouldn't be harder).
2015-01-05 17:11:27 +01:00
Charles Dang
46fc0d4d93 Fixup HEAD, small formatting bit I missed 2015-01-05 20:57:05 +11:00
Charles Dang
3b43c7dcf1 Ran wmlindnet on unit tests. Some formatting had to be manually corrected 2015-01-05 20:42:12 +11:00
Chris Beck
18b5059b23 add some [time_area] unit tests 2015-01-05 02:34:09 -05:00
Ignacio R. Morelle
f61a0fa28e Merge pull request #358 from aquileia/VC_proj
Update wesnoth.vcproj
2015-01-05 03:09:16 -03:00
aquileia
a59440fe9e Update wesnoth.vcproj 2015-01-05 07:01:40 +01:00
Charles Dang
70e040791f Added a fortune 2015-01-05 13:09:27 +11:00