49997 Commits

Author SHA1 Message Date
Simon Forsyth
45d8eec9df add new files to Xcode project 2012-06-16 17:45:16 +00:00
Anonymissimus
25983b4fd2 CB project update 2012-06-16 15:53:28 +00:00
Anonymissimus
29f6369bc0 VC9 project update 2012-06-16 15:53:19 +00:00
Anonymissimus
1a09b8eeff mute MSVC warnings 2012-06-16 15:53:09 +00:00
Simon Forsyth
afe7320815 use id list instead of many [or]s 2012-06-16 02:33:52 +00:00
Simon Forsyth
52ac35485f properly layers sand->dirt transitions 2012-06-16 01:40:20 +00:00
Steven Panek
b9be1742cb Use [show_if][variable] instead of [show_if][have_unit]...
...so we don't have ever have Garak's and Zhul's death objectives
disappear.
2012-06-16 01:25:27 +00:00
Simon Forsyth
c0f2fd74e5 remove texture from some cave walls 2012-06-16 01:04:30 +00:00
Steven Panek
6bf3fca1d7 A little bit of tidying with the help of ON_DIFFICULTY. 2012-06-16 00:56:31 +00:00
Simon Forsyth
63215c1bb7 parameterize INCREASE_RECRUIT_COSTS 2012-06-15 22:37:03 +00:00
Mark de Wever
29d487773e Move the point code to a new file and library.
Trying to offload some code into seperate libraries to improve
(re)build time.
2012-06-15 18:30:47 +00:00
Mark de Wever
2f27cecc0d Spaces to tabs.
Conforming to the style of the rest of the file.
2012-06-15 18:28:52 +00:00
Simon Forsyth
db3f49a3b0 remove duplicate dialog and extraneous variables from leader death event 2012-06-15 11:55:50 +00:00
Anonymissimus
5c5a4bae49 changelog update 2012-06-14 14:26:31 +00:00
Anonymissimus
5ac6b5a876 improve CALL_FUNCTION macro
(bug #19805, http://forums.wesnoth.org/viewtopic.php?f=21&t=36989&p=531212)
2012-06-14 14:26:21 +00:00
Anonymissimus
6f48761f93 Fix a variable referenced out of its scope (bug #19803) 2012-06-13 21:58:01 +00:00
Dmitry Kovalenko
b207a1b1ca LuaAI: the need to define an engine is now deprecated.
All CAs can be store in external .lua files. If the scenario config
lacks an [engine] tag for the Lua AI engine, but still tries to use CA
with engine=lua, a dummy engine will be automatically generated,
providing the needed functionality
2012-06-12 12:36:06 +00:00
Elvish_Hunter
a46252cbdb TSG, Choice in the Fog: if the player is allied with the Elves,
...both Urza Afalas and Mal M'Brin must be defeated to win. Second
part of the fix for bug #19758
2012-06-12 09:19:02 +00:00
Elvish_Hunter
ee8b41ae04 TSG: replaced a store unit/create unit/clear variable cycle with [modify_unit] 2012-06-12 09:07:18 +00:00
Ignacio R. Morelle
50e7a70883 Implement [lock_view] and [unlock_view] WML actions
They are trivial wrappers for the wesnoth.lock_view() function in Lua.
Neither takes any parameters.

There is no wrapper for wesnoth.view_locked() yet until I decide on its
name and usefulness factor.
2012-06-11 23:10:03 +00:00
Ignacio R. Morelle
3536a15b27 lua: Implement wesnoth.view_locked() and wesnoth.lock_view()
Both are simple wrappers for display::view_locked() and
display::set_view_locked(), respectively. view_locked() returns a
boolean specifying whether the view is locked, and lock_view() takes a
boolean specifying whether to lock the view (true) or unlock it (false).
2012-06-11 23:09:43 +00:00
Anonymissimus
bd8cca5ff8 some wmllint fixes 2012-06-11 19:07:25 +00:00
Lari Nieminen
0a44e00484 Added a missing image which should have been in 2012-06-02T21:51:08Z!lari.nieminen@iki.fi. 2012-06-11 18:34:22 +00:00
Ignacio R. Morelle
b12bb3524a display: Allow disabling viewport scrolling
This will later allow WML/Lua to lock the viewport so the user cannot
scroll away from the current viewport location. WML and Lua actions such
as [scroll], [scroll_to] and [scroll_to_unit] will always be able to
scroll the screen regardless of this setting.
2012-06-11 09:37:33 +00:00
Ignacio R. Morelle
5beca9f7df lua: Forgot code documentation in 2012-06-11T08:50:08Z!shadowm@wesnoth.org 2012-06-11 09:37:18 +00:00
Ignacio R. Morelle
a552b15df9 Add an optional .immediate (def. false) attribute...
...to the [scroll_to] and [scroll_to_unit] WML actions

When immediate is set to a true value, the display code will instantly
warp to the chosen location regardless of the scroll speed setting in
Preferences.
2012-06-11 08:50:21 +00:00
Ignacio R. Morelle
c382986454 lua: Allow wesnoth.scroll_to_tile() to instantly warp...
...to the selected location

This adds a fourth argument (boolean) to
wesnoth.scroll_to_tile(). When true, the display code instantly warps
to the chosen location regardless of the scroll speed setting in
Preferences.
2012-06-11 08:50:08 +00:00
Richard Kettering
06dc47201f New portrait for troll warrior. 2012-06-10 22:09:44 +00:00
Steven Panek
4808940242 Made it so that the epilogue scenarios no longer produce replay saves;...
...eliminated some useless occurrences of save= in [endlevel].
2012-06-10 03:16:59 +00:00
Sergey Popov
6376cee85a Add -Wno-unused-local-typedefs to scons scrict compile options
That supposed to silence a warning from gcc 4.8, as in 
2012-06-09T21:41:05Z!koraq@xs4all.nl
2012-06-09 22:13:40 +00:00
Mark de Wever
ca6b656d25 Fixes strict compilation with gcc-4.8 and CMake.
In gcc-4.8 there will be a new warning -Wunused-local-typedefs. This
warning is triggered by boost's static asserts, causing strict
compilation to fail when using this compiler.

Note the compiler is not officially released yet so used a recent
snapshot.
2012-06-09 21:41:05 +00:00
Mark de Wever
29ac897e34 Remove an unused typedef.
The issue was detected by the upcoming gcc-4.8.
2012-06-09 21:30:21 +00:00
Nils Kneuper
8a60269dee updated Credits for Greek translation 2012-06-09 07:07:07 +00:00
Nils Kneuper
c948287a01 updated Greek translation 2012-06-09 06:56:45 +00:00
Mark de Wever
f42e941975 Adds the ENABLE_SHARED_LIBRARIES CMake option.
The use of shared libraries makes compilation debug versions faster but
results in extra shared libraries. For installation this is not
practical since the libraries need to be given SONAMES and kept in sync.
Therefore installation is not supported for this option and will
probably fail.

The statistics for the change are:

Static build:
  - Normal:
      real 20m51.604s
      user 19m47.838s
      sys  1m5.100s
      size 94MB
  - Debug:
      real 24m48.577s
      user 23m3.114s
      sys  1m22.305s
      size 1.9GB

Shared build:
  - Normal:
      real 21m5.141s
      user 19m56.879s
      sys  1m7.692s
      size 29MB
  - Debug:
      real 24m24.239s
      user 22m55.278s
      sys  1m20.193s
      size 596MB

So the build times don't change that much but the sizes do. When
rebuilding after changing a file the build times start to improve for
the shared build, but not timing done.
2012-06-08 18:58:10 +00:00
Iurii Chernyi
9679d734f1 Patch #3275 by akihara: AI now properly considers the expected damage...
...from poison when attacking using poisoners
2012-06-07 19:08:05 +00:00
Nils Kneuper
ac64096259 updated list of Chinese (Traditional) translators 2012-06-07 12:27:18 +00:00
Dmitry Kovalenko
a72febe0e4 LuaAI: first draft of the external candidate action system,
...with on-the-fly file reloading, if you use the --debug-lua launch argument
2012-06-07 09:53:19 +00:00
Steven Panek
743cb21c1c Improved invalid closing tag error message. 2012-06-05 11:38:55 +00:00
Ignacio R. Morelle
78086f92ee help: Update "Installing Add-ons" section...
...in order to address the UI changes from 2012-05-29T23:50:14Z!shadowm@wesnoth.org
2012-06-05 06:18:44 +00:00
Simon Forsyth
2c0a891ac7 simplify scenario 12 2012-06-03 21:22:39 +00:00
Simon Forsyth
5d42423c69 correct lines out of order 2012-06-03 19:50:43 +00:00
Simon Forsyth
3d412c8a8f simplify possessed Garak minion spawning 2012-06-03 19:47:08 +00:00
Steven Panek
c1084b7511 Updated the Japanese translation. 2012-06-03 18:38:24 +00:00
Mark de Wever
9a491b1db7 Move map and map_location to the game library.
It's not required in the core library and moving so lets me experiment
with shared libraries.
2012-06-03 17:32:46 +00:00
Mark de Wever
68ecffefce Let the pane builder return a widget.
It returned a pane before due to some test code, this code is no longer
used to the returned widget will suffice.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-06-03 17:32:44 +00:00
Mark de Wever
ae1c5cab16 Make an constructor explicit.
The change got lost while refactoring some code.

The code is used to experiment with a different approach of the
implementation of a listbox.
2012-06-03 17:32:40 +00:00
Simon Forsyth
314572fe98 simplify epilogue 2012-06-03 16:14:31 +00:00
Simon Forsyth
01823a3230 remove unused terrain from UtBS...
...and place images in images/scenery so anyone can use them
2012-06-03 15:46:48 +00:00
Simon Forsyth
50c45188fd further clean up of scenario 4 2012-06-03 15:08:50 +00:00