Commit graph

1774 commits

Author SHA1 Message Date
kallaballa
4dda0ad9b2
rebase commit: implemented a surrender dialog that records a surrender command in replays and quits the game 2017-12-05 17:01:06 -06:00
Charles Dang
c2fbfbf8ac Removed abandoned CodeLite projectfiles
[ci skip]

No updates have been made since 2015, and it was last used seriously in 2014 by @cbeck88.
2017-12-06 01:37:01 +11:00
Wedge009
f61138498c Remove header from VC project (deleted in 056d7ac8).
[ci skip]
2017-11-30 11:59:01 +11:00
lundberg
ba6b6a1f53 Update VC12 project for wesnothd
Drop the additional requirements for SDL2 libraries. Wesnothd no longer requires SDL2.
2017-11-26 15:26:17 -06:00
mattsc
5987ff88ae Update Xcode project 2017-11-24 11:23:52 -08:00
Wedge009
34008913ed Add missing configuration for Release compilation.
[ci skip]
2017-11-20 16:33:21 +11:00
Wedge009
de31ac37b1 Tidy recent additions.
[ci skip]
2017-11-20 16:32:39 +11:00
Jyrki Vesterinen
91151cbe52 Update Visual Studio project 2017-11-19 20:21:11 +02:00
mattsc
e0899d5b81 Update Xcode project 2017-11-12 09:30:24 -08:00
Charles Dang
378b9199ae Moved point wrapper out of GUI2 namespace
I'm not sure if it should become part of the sdl namespace, but for now I'm leaving it out.
2017-11-11 21:49:05 +11:00
mattsc
8d2a3d369b Update Xcode project 2017-11-08 22:25:45 -08:00
Charles Dang
b1ad293ccd GUI2: removed unused MP Command Wrapper dialog
This was the equivalent of the Player Info dialog for the old GUI1 MP Lobby, and is now unused.
The new GUI2 lobby uses the aforementioned Player Info dialog. The functionality is basically
the same, though, except the send-private-message interface is more streamlined in the new lobby.
2017-10-29 16:56:16 +11:00
Charles Dang
e6830faab4 Proper (I think) VC projectfile update for e9c6dff56a
[ci skip]
2017-10-29 11:23:10 +11:00
gfgtdf
e9c6dff56a Slider refactor
1) We now use a single function to set slider min/max value, this fixes #1641
   (sliders having a temporary invalid (min > max) state between set_min() and
   set_max() calls)
2) I split the sliders_base class from the scrollbar_base class to not
   accidently break the rather complicated scrollbar_base class while
   refactoring sliders.
3) We don't use floats in the slider code to make sure no rounding errors happen.
4) This fixes #1539 by removing slider::in_orthoginal (which made it impossible
   to pull a slider to its maximum/minimum) and intead clamping the mouse
   position in range.
5) This fixes #1656 and #1767 by refactoriung code (that bug happend mainly
   because the old code used variables that contained the position in 'steps'
   as pixel position and vice versa)
6) Sliders now 'snap' to the correct values just like the gui1 sliders did.
7) Slider positions are now poperly rounded to its neariest values
   instead of just beeing 'floored'
2017-10-29 01:13:48 +02:00
Gregory A Lundberg
f7bea59fe9 Finish switch to MT19937 for randomness
Coverity has been complaining about using rand() as an insecure function. As we're using it, this function is not insecure; but is also not a very good RNG. We're using MT19937 in a system-independant manner. But some uses of rand() were never converted. This converts them.

This closes the following Coverity issues:

CID 1356297
CID 1356299
CID 1356303
CID 1356304
CID 1356306
CID 1356312
CID 1356314
CID 1380163
CID 1380173
CID 1380179
CID 1380191
CID 1380198
CID 1380201
CID 1380210
CID 1380214
CID 1380215
CID 1380219
CID 1380230
CID 1380241
2017-10-26 09:28:24 +11:00
Wedge009
73fa6bc508 Minor VC project updates
* Remove dependencies on SDL2_net.lib (hasn't been required since at least 8b341411)
* Remove unnecessary backslashes introduced in dccd73d1
* Sort associated filter.

[ci skip]
2017-10-25 16:33:32 +11:00
mattsc
5d7f00b3c0 Update Xcode project 2017-10-24 20:25:11 -07:00
Charles Dang
dccd73d11f Fixup f2593034a8 (output dir not set)
[ci skip]
2017-10-20 16:52:49 +11:00
Charles Dang
f2593034a8 GUI2: moved MP Lobby and Player Info files into the multiplayer dialog subdir 2017-10-20 16:36:18 +11:00
Wedge009
3be5346051 Updating VC project files for 010237fb and c4d55647.
[ci skip]
2017-10-10 22:14:04 +11:00
galegosimpatico
8b0d7e6799 On Boost: update build scripts and documentation.
At branch 'doc-from-discord-boost-discussion-20170926'.

The build documentation and scripts were slightly out of date about
Boost. This commit makes a (probably interim) update to them.

(CMakeLists.txt|SConstruct): `wesnoth` won't build using Boost earlier
than '1.50.0'. Boost 1.50.0 changed the location of version 3 of Boost
filesystem, from 'boost/filesystem/v3/' (e.g. for
'using boost::filesystem::v3::path;') to 'boost/filesystem/' (e.g. for
'using boost::filesystem::path;', enforced since the very introduction
of 'src/filesystem_boost.cpp'), making it incompatible unless using
precompiler directives for supporting backwards versions of Boost
filesystem prior than '1.50.0'. Using Boost 1.50.0 (and 51, 52 etc.)
`wesnoth` is able build and run. I checked using `ldd` that I am right
about the run time environment.

INSTALL.md: Requirement of Boost libraries version up to date.

projectfiles/VC12/README.md: Requirement of Boost libraries up to
date, only the statement of which one is the minimum version, not the
rest of the build guide for Boost as requirement.

.gitignore: Add KDevelop backup documents.
2017-10-06 20:38:50 +03:00
Charles Dang
bc86ce762d Pre-release version bump
[ci skip]

A serious issue was discovered in the 1.13.9 release, so we're releasing 1.13.10 now.
2017-09-22 14:22:20 -04:00
Charles Dang
e47ea7fded Pre-release version bump
[ci skip]
2017-09-21 23:05:30 -04:00
Sofartin
a672f3c8a6 Fix for error: unused typedef in Xcode builds
This PR fixes this:
```
10:43:06 In file included from /Users/user/.jenkins/workspace/Wesnoth/src/color_range.cpp:24:
10:43:06 In file included from ../../src/map/map.hpp:22:
10:43:06 In file included from ../../src/terrain/translation.hpp:29:
10:43:06 In file included from Headers/boost/multi_array.hpp:21:
10:43:06 In file included from Headers/boost/multi_array/base.hpp:28:
10:43:06 Headers/boost/multi_array/concept_checks.hpp:42:43: error: unused typedef 'index_range' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index_range index_range;
10:43:06                                           ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:43:37: error: unused typedef 'index' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index index;
10:43:06                                     ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:53:43: error: unused typedef 'index_range' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index_range index_range;
10:43:06                                           ^
10:43:06 Headers/boost/multi_array/concept_checks.hpp:54:37: error: unused typedef 'index' [-Werror,-Wunused-local-typedef]
10:43:06       typedef typename Array::index index;
10:43:06                                     ^
10:43:06 4 errors generated.
```
2017-09-21 14:26:21 -04:00
Jyrki Vesterinen
c4d556475e Add sdl/userevent.hpp to the Visual Studio project
Follow-up for c6f523f8cd.

[ci skip]
2017-09-17 16:04:32 +03:00
Wedge009
98c0443d9a Properly update MSVC project files for new fs_commit files (cb99d90d and 28c51796)
[ci skip]
2017-09-15 17:29:38 +10:00
Charles Dang
cb99d90dc0 Updated MSVC campaignd projectfile for 28c5179636
[ci skip]
2017-09-15 10:29:12 +11:00
Sofartin
b441b375b4 Fixed Xcode project build (#1907)
I added new source files and removed old ones.
Xcode project now works
2017-08-19 22:38:12 -04:00
Wedge009
50818594ea Add missing configuration for VC Release build.
[ci skip]
2017-08-16 18:49:53 +10:00
Charles Dang
78002951dd Update CB projectfile for 25a0d09 2017-08-15 11:23:52 +11:00
Celtic Minstrel
25a0d099a9 Enable sorting campaign list in chronological or lexicographical order 2017-08-14 12:36:07 -04:00
Charles Dang
bc3f72b45b Update CB projectfile for 4e4d7b527
This is the same fix as applied to Scons in a3d884ef.
2017-07-26 22:29:22 +11:00
Sofartin
fd77dd8115 Add revision info inside macOS releases. (#1858)
I added 'autorevision.sh' script inside Xcode project. Now DEBUG targets will contain revision number.
This script is used in CMAKE 'project' and I just added it also to Xcode project.
2017-07-25 19:56:22 -04:00
Sofartin
dd5983b176 Updated Xcode project. (#1859)
I added missing function_gamestate.*pp files inside Xcode project.
2017-07-23 13:02:05 -04:00
Sofartin
4d41c8aa08 Removed duplicates inside project file. (#1854) 2017-07-23 10:56:03 -04:00
DisherProject
b790184ece Add new file to CB projectfile 2017-07-09 17:26:49 +11:00
Wedge009
1fe589cf99 Add missing Release build from 4bd1fa71.
[ci skip]
2017-07-01 11:53:30 +10:00
Celtic Minstrel
4bd1fa7157 Allow filter formulas to use a number of previously FormulaAI-exclusive functions 2017-06-24 19:07:53 -04:00
Martin Proud
5dce3a3a53 Fixed issue where libcrypto was not copied over to Frameworks during build
Removed unused libcrypto compiler flag (not needed)
2017-06-04 11:23:53 -05:00
Celtic Minstrel
933ff02800 Fix for notifications in macOS showing as not built when looking at build info in the game.
Updated the macOS project file to include a new dependency on libcrypto.
2017-06-04 10:36:01 -05:00
Charles Dang
84929f69a6 Update CB projectfile again (forgot to remove a file)
[ci skip]
2017-06-02 23:47:12 +11:00
Charles Dang
648ca5cd04 Updated CB projectfile 2017-06-02 22:52:54 +11:00
Jyrki Vesterinen
7507f3cc65 Copy string_view implementation from Boost
@gfgtdf asked me for this in IRC.
2017-06-02 14:24:29 +03:00
Jyrki Vesterinen
9c1b9af525 Use std::unique_ptr to manage the layout and context in pango_text
This makes it easier for one canvas to manage multiple layouts.
2017-06-02 13:54:37 +03:00
Charles Dang
1e28a54cf2 Update CodeBlocks projectfiles for Boost 1.64
Also added a missing include to the wesnothd projfile.
2017-06-01 10:53:04 +11:00
Wedge009
82f7568bb2 Properly update VC project files for 56433d12.
[ci skip]
2017-05-24 15:54:08 +10:00
Charles Dang
922cc201bc Updated CB projectfile
[ci skip]
2017-05-23 10:02:37 +11:00
Celtic Minstrel
80a87d0b49 Update MSVC project 2017-05-22 14:39:20 -04:00
Jyrki Vesterinen
56433d12a3 Merge branch 'login_save_crypt' 2017-05-22 20:10:09 +03:00
mattsc
451e22ddda Update Xcode project 2017-05-22 07:24:01 -07:00