59570 Commits

Author SHA1 Message Date
Chris Beck
48a14ddadf move lua fcn 'wesnoth.tovconfig' to lua kernel base / lua common
there was no reason for it to only be in the game kernel, most
other vconfig functions were already in lua common.
2014-11-24 01:12:25 -05:00
Chris Beck
bcecc081b1 add support for mass registration of C++ functions with lua 2014-11-24 00:49:48 -05:00
Chris Beck
2c6af2f459 fix a camelcase identifier LuaKernel -> game_lua_kernel 2014-11-23 23:05:27 -05:00
Chris Beck
c19b63d857 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2014-11-23 22:49:40 -05:00
Chris Beck
ad7c5c029c make 'extract_preload_scripts' a class member function 2014-11-23 22:49:12 -05:00
mattsc
eebc91f70b Update Xcode project file 2014-11-23 19:25:34 -08:00
Chris Beck
98a537c7a3 remove resources.hpp links from playmp, playsingle controllers 2014-11-23 22:17:02 -05:00
Chris Beck
f21dcf0efe complain more loudly about memory leaks 2014-11-23 21:32:28 -05:00
Chris Beck
851f644074 fix a warning: placement new syntax does not require var assignment
Coverity complained about this and I added compiler directives to
suppress the unused var when I first wrote this, but in fact the
variable is unnecessary and this is the correct way.
2014-11-23 21:30:24 -05:00
Chris Beck
3b1c52f3c8 move lua boost::function wrapper to scripting/lua_cpp_function.?pp 2014-11-23 20:24:47 -05:00
Chris Beck
93becab0ac clean up some comments, improve type-safety in lua boost function 2014-11-23 19:11:41 -05:00
Chris Beck
f0fac7f367 add a "__tostring" method for boost functions
It makes it easier to realize that they are functions when in the
console.
2014-11-23 19:02:07 -05:00
Chris Beck
7deecdca46 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2014-11-23 18:34:37 -05:00
Chris Beck
3740b24b28 fixup ilua _pretty_print function
had some global vs local problems after making this a module loaded
with require rather than a dofile script
2014-11-23 18:33:50 -05:00
Chris Beck
8adfd3a38c fixup lua <-> boost function binding system
The solution in place was working but it was flawed in that unlike
with normal lua callbacks, the callbacks would find the userdata
with a pointer to themselves as the first item on the stack. This
breaks the normal lua stack discipline for callback functions.

This commit makes it work normally, removing the stack entry for
the function before it is called, and also making a local copy
of the function pointer in case the lua garbage collector should
deallocate and destroy it when it is removed from the stack.
2014-11-23 18:27:05 -05:00
gfgtdf
c0b45c1ecf add comment about synced random seed 2014-11-24 00:07:02 +01:00
Chris Beck
3553e8fdf2 Update INSTALL
remove boost thread from the list, since it was determined (in conversation on irc) that we don't actually need it
2014-11-23 17:16:55 -05:00
Chris Beck
965ebce429 Update INSTALL
list header only libs as header only, add boost random to the list
2014-11-23 16:48:33 -05:00
Mark de Wever
8ad907a8ba Fix linking the schema validator. 2014-11-23 19:15:58 +01:00
Mark de Wever
fc82713b5a Fix linking the addon server.
Adds the Boost random library.
Adds the rt library when needed.
2014-11-23 19:15:23 +01:00
Mark de Wever
ae463b7da0 Add the Boost random library.
Adds it for the standard external tools.
2014-11-23 19:14:14 +01:00
Mark de Wever
34cbe043a8 Remove an extra semi-colon. 2014-11-23 19:13:38 +01:00
Mark de Wever
ce6b700354 Merge branch 'pedantic_fixes'
Fixes compilation with pedantic warnings on.
2014-11-23 16:48:55 +01:00
Mark de Wever
6070d4a12c Fix Doxygen comment.
Use the proper trailing comment format.
2014-11-23 16:46:15 +01:00
Mark de Wever
bc80335a01 Fix Doxygen comment.
Document renamed parameters.
2014-11-23 16:45:15 +01:00
Mark de Wever
caee32742e Fix Doxygen comment.
Use @tparam for a template parameter.
2014-11-23 16:44:04 +01:00
Mark de Wever
587626a00a Fix Doxygen comment.
Use @tparam for template parameters.
Remove a non-existing parameter.
2014-11-23 16:23:31 +01:00
Mark de Wever
ac074c0ec1 Remove an extra semi-colon. 2014-11-23 14:59:41 +01:00
Mark de Wever
7e8c537e50 Remove extra semi-colons. 2014-11-23 14:59:21 +01:00
Mark de Wever
5a30942c5e Fix compilation with notifications disabled.
In CMake the notifications are enabled by default, switching them to
disabled didn't clear the LIBDBUS_FOUND flag properly causing the
the compilation to fail due to the #error in
src/desktop/dbus_notification.cpp.
2014-11-23 14:22:37 +01:00
Chris Beck
e3b17ffe47 Update changelog 2014-11-23 01:11:44 -05:00
Chris Beck
88caf3e21b travis: fixup HEAD^ 2014-11-22 23:59:53 -05:00
Chris Beck
56ce328268 travis: enable strict C++11 compilation 2014-11-22 23:56:58 -05:00
Chris Beck
93326f2a6e comment out "history" feature which doesn't work in cmake right now 2014-11-22 23:32:12 -05:00
Chris Beck
aedb0dce33 lua console history feature uses "history" instead of "readline"
This is the correct and more minimal interpretation of the optional
dependency.
2014-11-22 21:56:27 -05:00
Chris Beck
d7bac89460 fixup 136fdbf1e8d9535b59a2efa6940d1c3d53c99644 (HEAD^) 2014-11-22 21:38:53 -05:00
Chris Beck
136fdbf1e8 fix a C++11 gcc warning in a library header 2014-11-22 20:39:15 -05:00
Chris Beck
4281c602f2 add cruft to SConstruct to help cross-compiling with readline 2014-11-22 19:46:49 -05:00
Chris Beck
350579a668 fixup an ambiguity which caused infinite recursion on msvc 2014-11-22 19:45:29 -05:00
gfgtdf
f99e367292 "change_controller" refactor
we don't need to restart the turn if it wasn't local before and isnt
local now.

Also we change the conditional structure which should have no effect on
the resulting code.
2014-11-23 00:42:27 +01:00
gfgtdf
3bc30330c2 comment to assert. 2014-11-23 00:42:26 +01:00
gfgtdf
ec1d0a7a83 "change_controller" refactor
old_controller != new_controller && !was_local && tm.is_local()
is not needed becasue
!was_local && tm.is_local()
already implies
old_controller != new_controller.
2014-11-23 00:42:24 +01:00
Chris Beck
87685816e8 Update RELEASE_NOTES 2014-11-22 17:26:44 -05:00
Chris Beck
d31253f585 bugfix: invalid variable reference
variable v does not exist... the function is not commented so I
can't be sure of the intention, but the most backwards-compatible
fix is to not pass argument v, so that it will be nil as before.

this bug was revealed by enabling lua "strict mode"
2014-11-22 16:43:27 -05:00
Chris Beck
a65d168317 enable "strict mode" in wesnoth lua
Enables an ilua feature called "strict mode" in all of our lua
environments. This change causes lua to report an error if a global
variable is used before it is assigned. The benefits of this are:
- Improved maintainability of lua-based add-ons, since you get
better error reporting in case of a typo.
- Improved behavior of the lua interpreter console, since mistyped
or gibberish lines resolve to an error rather than "nil", which
the console treats as a legal return value.

It is possible to disable this or work around it in individual
scripts. For more info see release notes.
2014-11-22 15:19:19 -05:00
Chris Beck
fd68986bc7 add support for pageup / pagedown in lua_interpreter input bar 2014-11-22 12:33:56 -05:00
Chris Beck
d70fcb2adb refactor lua interpreter: move readline uses (history expansion) 2014-11-22 12:33:56 -05:00
Chris Beck
6b4b4414c1 refactor lua interpreter: clean up readline uses 2014-11-22 11:14:14 -05:00
Ignacio R. Morelle
2c625b6d9d update_server: boost_prefix=-mt isn't good for gonzo anymore 2014-11-22 05:09:01 -03:00
Ignacio R. Morelle
d95b181eaa update_server: Show locations of scons' output 2014-11-22 04:31:18 -03:00