64433 Commits

Author SHA1 Message Date
Celtic Minstrel
7c767e6402 tloadscreen: Use atomic access for current stage 2016-04-01 00:43:33 -04:00
Celtic Minstrel
8580245c29 Complete config.hpp compiler detection 2016-04-01 00:43:32 -04:00
mattsc
1cc3711996 Xcode project: ignore inconsistent-missing-override warning 2016-03-31 19:58:15 -07:00
Celtic Minstrel
e35e46ec2e Enable commented C++11 xBRZ code 2016-03-31 21:40:14 -04:00
Celtic Minstrel
d9eab21bd0 Remove redundant gamestate::bind() 2016-03-31 21:40:11 -04:00
Celtic Minstrel
1368a05ee9 Correct indentation 2016-03-31 21:40:09 -04:00
Celtic Minstrel
a5cd2c7f4a Restore loadscreen translatable stage messages 2016-03-31 21:40:08 -04:00
Celtic Minstrel
1c5f6024fd Reduce needlessly large closures 2016-03-31 21:40:05 -04:00
Charles Dang
51957589ed Removed some C++11 include guards I missed 2016-04-01 12:27:06 +11:00
gfgtdf
bc20a3d7d9 remove a c++11 #ifdef 2016-04-01 03:19:37 +02:00
gfgtdf
b6282d8662 use c++11 heterogeneous map lookups in config if possible.
this means that codes like cfg.child("abcd") or cfg["abcd"] won't create
a temporary std::string anymore. At least when cfg is const.
2016-04-01 03:17:40 +02:00
Celtic Minstrel
9c442ebb4b XCode: Fix wesnothd build
A unit test file had been accidentally included in the build, leading to link errors.
2016-03-31 18:47:13 -04:00
Celtic Minstrel
e7cb3f500c XCode: Fix dynamic link errors in unit tests 2016-03-31 17:37:52 -04:00
Celtic Minstrel
ec43700ff5 XCode: Enable unit tests build 2016-03-31 16:05:15 -04:00
gfgtdf
c01e5e8a39 fix starting positions in gamemap::write() 2016-03-31 20:19:06 +02:00
gfgtdf
5d9e211b34 fix loadscreen always showing before campaigns menu. 2016-03-31 20:19:06 +02:00
Celtic Minstrel
c8a71438ac Fix unit tests 2016-03-31 13:23:03 -04:00
Charles Dang
a0a8836bbe Used to_string() method instead of enum::enum_to_string() when possible 2016-04-01 02:41:17 +11:00
Celtic Minstrel
4024e673f7 tpreferences: Make checkmark translatable 2016-03-31 11:38:19 -04:00
Charles Dang
f6452a3dd6 Small test fixup (same as 0936066bf3e6) 2016-04-01 02:29:51 +11:00
Charles Dang
0936066bf3 Fixed initializing of mp scenarios
Was accidentally broken in 876710af8c2.
2016-04-01 02:00:23 +11:00
Charles Dang
a0ffdff812 Convert plain usecases of boost::assign::list_of() to initializer lists
Usecases calling to_container() or convert_to_container() were left alone.
2016-04-01 01:51:01 +11:00
Charles Dang
accbcd0466 SoF: italicize description poem 2016-03-31 23:59:08 +11:00
Charles Dang
83dd965f9e WML test fixup by Soliton 2016-03-31 21:31:21 +11:00
Charles Dang
61cb45ac8c Fixup b98687147 2016-03-31 21:22:53 +11:00
Celtic Minstrel
fb6031d6a1 lua_function= in SUF now has limited support for non-global functions
To be precise, the string is considered as a dot-separated list of components.
2016-03-31 02:13:40 -04:00
Celtic Minstrel
4c45683d4d Modernize luaW_getglobal
The variadic form now uses a variadic template, and a vector form has been added.
Since the nullptr sentinel argument is no longer required, it has been removed from all calls.
2016-03-31 02:13:39 -04:00
Celtic Minstrel
86b4680371 Use vector/templating for Lua-like bulk registration functions 2016-03-31 02:13:38 -04:00
Charles Dang
1ae22aa046 tpreferences: use initializer list for accl speeds 2016-03-31 17:02:05 +11:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Celtic Minstrel
486cf46993 scons: sort source file lists 2016-03-30 22:41:40 -04:00
Charles Dang
0acea0c502 Revert accidental conversion of make_enum test to to_string (from 876710af8c24) 2016-03-31 13:18:16 +11:00
Charles Dang
7a2955f053 Revert accidental conversion of lexical_cast test to to_string (from 876710af8c24) 2016-03-31 12:14:30 +11:00
Charles Dang
cf6fa69d27 Removed C++11 include guards
This also expands the OVERRIDE compatibility macro (FINAL was not used).
2016-03-31 12:06:35 +11:00
Charles Dang
7f1dd72c93 tloadscreen: fixed another case of conflicting layout keys 2016-03-31 11:33:44 +11:00
Charles Dang
5afdb0f72a tloadscreen: better calculations for positioning spacers
This allows the loadscreen to look good on both small and large resolutions
2016-03-31 11:33:08 +11:00
Charles Dang
876710af8c Use std::to_string() or equivalent wherever possible
This commit removes the utility srt_cast() function and replaces its calls,
along with calls to lexical_cast<std::string>() (and its boost variant),
with std::to_string().

In a few cases where the input type isn't compatible with to_string,
lexical_cast<std::string> is still used.

In other cases where lexical_cast was operating on MAKE_ENUM enums, the
call has been replaced with ENUM::enum_to_string, which is faster.
2016-03-31 11:18:51 +11:00
Charles Dang
531f391ad8 Exclude loadscreen from GUI2 tests 2016-03-31 09:49:36 +11:00
Charles Dang
f849048a42 Use unique_ptr instead of auto_ptr (deprecated in c++11) 2016-03-31 09:43:13 +11:00
Celtic Minstrel
3eb45c6b2c Travis: Force GCC version 4.7 2016-03-30 18:40:49 -04:00
Charles Dang
c97a5d14ff Codeblocks: enable building with c++11
This also adds the necessary boost::thread linker option required by
recent loadscreen code.
2016-03-31 09:37:10 +11:00
Charles Dang
1f52abcbfb tloadscreen: fix conflicting alignment keys in animation label 2016-03-31 09:33:11 +11:00
Charles Dang
38223569ab Removed unnecessary boost include 2016-03-31 09:33:10 +11:00
Charles Dang
b98687147a Fixup compilation on C++11 2016-03-31 09:33:09 +11:00
loonycyborg
f962431710 travis: install boost.thread too 2016-03-31 00:59:17 +03:00
loonycyborg
af7286c421 scons: add check for boost.thread since it's a dependency now 2016-03-31 00:46:06 +03:00
loonycyborg
0795ad879b scons: due to switch to std c++11 always pass -std=c++11 2016-03-31 00:10:32 +03:00
Celtic Minstrel
acc752aa9a XCode: Build with C++11 and libc++ 2016-03-30 16:12:37 -04:00
Celtic Minstrel
94d3d5aec6 Don't attempt every WML test if binary missing 2016-03-30 16:10:17 -04:00
gfgtdf
249792e08d fix segfault in loadingscreen when staring campaigns, 2016-03-30 21:08:31 +02:00