64885 Commits

Author SHA1 Message Date
Celtic Minstrel
8fa73053b8 Remove a couple more MSVC 2008 workarounds 2016-07-29 23:18:10 -04:00
Celtic Minstrel
d1728ea0c5 Remove some instances of boost::ref 2016-07-29 23:18:10 -04:00
Celtic Minstrel
ad7daee4a8 Remove a few more uses of Boost type traits and enable_if 2016-07-29 23:18:10 -04:00
Celtic Minstrel
fc97838626 Use raw string literals for regex
Also ensure some regexes cannot match null characters.
2016-07-29 23:18:10 -04:00
Charles Dang
b5cf79424f Removed compatibility code for pre-VS2013 (MSVC12) compilers 2016-07-27 18:39:41 +11:00
Charles Dang
fcd90d0533 Removed floating_point_emulation.hpp from CB projfile 2016-07-27 03:23:53 +11:00
Jyrki Vesterinen
c2abe3a622 Kill floating_point_emulation.hpp with fire (#713)
Ability to emulate floating point calculations makes sense only if we
intend to support platforms without native floating point support. Such
platforms haven't been relevant since mid-1990s or so. Besides, supporting
such platforms would require converting the entire codebase to use the
tfloat class instead of native float and double types, which would be
outright Herculean effort.

As a bonus, killing floating_point_emulation.cpp also eliminates two uses
of boost::enable_if_c.

I also removed the nonexistent file SDL_SavePNG/savepng.hpp from the
Visual Studio project, and added #include <string> to
formula/debugger_fwd.hpp because the build failed otherwise
(maybe compilation order changed when I removed
floating_point_emulation.hpp?).
2016-07-26 11:45:15 -04:00
Charles Dang
771936ad95 Update unit tests 2016-07-26 11:41:03 +11:00
Charles Dang
23c2dd0c94 Un-constify a unique_ptr consted in error 2016-07-25 17:55:17 +11:00
Charles Dang
a1f6884555 Refactor uses of boost::tuple to std::tuple or std::pair as appropriate 2016-07-25 17:26:24 +11:00
Celtic Minstrel
e6b8681de8 Boost type traits / enable_if -> <type_traits> 2016-07-25 01:31:43 -04:00
Jyrki Vesterinen
531e05af9e Implement tod_manager::resolve_random() without Boost.Range (#711)
In order to do this, it was necessary to switch from boost::copy to
standard library algorithms, which is less space-efficient.
2016-07-25 01:31:20 -04:00
Celtic Minstrel
09153f07bc Eliminate boost::bind in wesnothd 2016-07-24 23:44:14 -04:00
Celtic Minstrel
9d39a06ae2 Fix some missing <string> 2016-07-24 23:44:12 -04:00
Charles Dang
7a8f3ff110 Refactored formula's use of boost::intrusive_ptr
This removes all the custom reference counting code from the
formula variant class, and also removes the WFL refcount() function.
The reference counting base class is also removed, since it is no longer used.
2016-07-24 23:43:58 -04:00
Charles Dang
563947e1b3 Refactored GUI2's uses of boost::intrusive_ptr 2016-07-25 09:28:43 +11:00
Charles Dang
05092ba2f6 Refactor most boost pointer related stuff to use their stdlib counterparts
This constitutes drop-in replacements for:

* boost::shared_ptr
* boost::scoped_ptr
* boost::weak_ptr
* boost::enable_shared_from_this
* boost::static_pointer_cast
* boost::dynamic_pointer_cast

This excludes boost::intrusive_ptr, except for stray includes. Refactoring that is more complicated.
2016-07-25 09:28:42 +11:00
Charles Dang
211ba2e770 Converted remaining cases of boost::lexical_cast to our own lexical_cast implementation
Excludes uses in tools/
2016-07-24 17:28:51 +11:00
Jyrki Vesterinen
3d140f988a Remove two uses of boost::bind() 2016-07-24 01:43:07 -04:00
Celtic Minstrel
083ce3a52a Remove bind_void_exact, use std::bind for bind_void 2016-07-24 01:25:15 -04:00
Charles Dang
aea6cbbabc Tiny tweak to vertically centered text to make it more centered 2016-07-24 13:51:36 +11:00
ancestral
ce50063f1a Removed include for sdl_net 2016-07-23 21:45:15 -05:00
Charles Dang
7a859a2ece Fixup a5130a4c3600 (forgot to include small resolution buttons) 2016-07-24 10:00:01 +11:00
Charles Dang
a5130a4c36 Made sure menu button are flush with window border 2016-07-24 09:56:12 +11:00
Charles Dang
d90f1eae7b tlua_interpreter: fixed placement of Clear button 2016-07-24 09:48:42 +11:00
Charles Dang
9f6d9b45cb Use darker borders on titlescreen panels 2016-07-24 09:45:25 +11:00
Charles Dang
a3e535300b Revert "Don't show any images for buttons in menu bar"
This reverts commit a4c4f18a7c45ef8c652fe9be72d166ab3e798309.
2016-07-23 15:27:15 +11:00
Andreas
b9b97bab84 Merge pull request #709 from jyrkive/fix-event-context-crash
Fix undefined behavior on destroying an event context
2016-07-23 11:09:34 +12:00
Jyrki Vesterinen
8a296386e3 Fix undefined behavior on destroying an event context
The destructor of the context class accidentally incremented the iterator
twice per iteration. If the number of event handlers was odd, the
destructor ended up incrementing the end iterator, which is UB.

I rewrote the whole destructor. It's unnecessary to manually remove event
handlers from the list because the list will do it automatically when it's
destroyed.
2016-07-22 21:05:08 +03:00
Celtic Minstrel
681322bf29 Update changelog 2016-07-21 18:04:04 -04:00
Charles Dang
6ed995c53e Cleaned up some units/animation.hpp includes 2016-07-22 03:21:17 +11:00
Celtic Minstrel
6587ffeba6 Merge pull request #708 from jyrkive/multiprocessor-compilation
Visual Studio: enable multi-processor compilation
2016-07-20 15:13:21 -04:00
Jyrki Vesterinen
f56cb7f9bb Visual Studio: enable multi-processor compilation 2016-07-20 18:40:05 +03:00
Celtic Minstrel
939e15f771 Merge pull request #670 from dorng/core_logo
[game_config]: new keys for logo
2016-07-19 23:14:47 -04:00
Charles Dang
02a43e2d61 tpreferences: small hotkey tooltip tweak 2016-07-20 13:57:04 +11:00
Charles Dang
ee8ff792b5 Cleaned up map generator code 2016-07-20 13:57:03 +11:00
Jyrki Vesterinen
a8c3bac31f Update Visual Studio project files (#706) 2016-07-19 14:08:55 -04:00
Bär Halberkamp
1d8d843a80 move set_variable.rand's logic to helper.rand 2016-07-19 13:48:31 -04:00
Charles Dang
34d78f2a2a Updated CB projfile 2016-07-20 01:02:19 +11:00
Lari Nieminen
849cacceb1 Merge pull request #699 from GregoryLundberg/GL_L_final
Liberty fixes
2016-07-19 16:31:53 +03:00
Lari Nieminen
b02e084064 Merge pull request #690 from GregoryLundberg/GL_AOI_recruit_mages
AOI Linaera should recruit Mages, not Elves
2016-07-19 16:30:53 +03:00
Gregory A Lundberg
4e75868bf6 AOI Update changelog 2016-07-19 07:19:58 -05:00
gfgtdf
ca1811228a fix asserion failure when redoing and undoing menu actions. 2016-07-19 13:46:33 +02:00
gfgtdf
d43e5ad8bc fix compilation 2016-07-19 13:17:48 +02:00
gfgtdf
084dfc9887 make victory event fire on proceed_to_nextlevel
This changes the behaviour of victory event so that they are now also fored when there is at least one human that is victorious, for sp and for coop mp scenarios the conditions when victory is fired is the same as before, in non-coop mp games the victory event will now also be fired whenever there is any human side that wins, since such scenarios usually don't use victory events this is not tha much of an issue. For those cases i added the 'local_victory' event (maybe if people want to print congratulation messages in their mp maps or similar)

The reason for this change is that now, since victory events fire on all client the same ,way we can mark them as synced, this specially fixes issues with invalid unit ids of units created suring victory events in sp.
2016-07-19 13:16:21 +02:00
Lari Nieminen
a09f0ed6a9 Merge pull request #689 from GregoryLundberg/GL_AOI_fixes
An Orcish Incursion fixes
2016-07-19 11:25:13 +03:00
Charles Dang
fbcf4943b1 Use darker window border color 2016-07-19 13:07:14 +11:00
Celtic Minstrel
465ca498b6 mapgen: Fix erroneously trying to generate road names
when no [naming] is provided
2016-07-18 20:59:49 -04:00
Celtic Minstrel
a824d88079 Lua API: Make end level data mutable 2016-07-18 20:59:49 -04:00
Celtic Minstrel
be2a613fff Move Lua dispatch shim to top of file 2016-07-18 20:59:49 -04:00