1500 Commits

Author SHA1 Message Date
Celtic Minstrel
d1728ea0c5 Remove some instances of boost::ref 2016-07-29 23:18:10 -04:00
gfgtdf
6f021631e1 replace some std::bind with lambdas 2016-07-29 14:36:22 +02:00
gfgtdf
8bc8efb04d Revert "explicitly use std::placeholders for the second std::bind parameter"
This reverts commit b87d8e5ede060e10b5927b8721933c05d1295c0d.

This didn't completeley fix the issue, also this casues merging conflicts
with some other commits so i'm reverting this.
2016-07-29 14:36:22 +02:00
gfgtdf
b87d8e5ede explicitly use std::placeholders for the second std::bind parameter
done by using this regex replace:
'(std::bind[\ \t\n\r]*\([\ \t\n\r]*[^\,]*[\ \t\n\r]*,[\
\t\n\r]*)_([1-9])' to '$1std::placeholders::_$2' (msvc syntax)

Using boost::placeholder with std::bind seeed to cause compilation
erros with some libc++ version used by dafault on some OSX versions.
2016-07-28 20:32:51 +02: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
Celtic Minstrel
09153f07bc Eliminate boost::bind in wesnothd 2016-07-24 23:44:14 -04: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
Pubudu
129ce2982b Added new checkbox to multiplayer game configure dialog to allow only
registered users to join the game
2016-07-12 11:50:50 +05:30
gfgtdf
64b77a691d fix msvc warning
'found */ outside a comment'
2016-07-09 22:31:14 +02:00
loonycyborg
4c616e010a Reindent code to be consistent with wesnoth coding standards 2016-07-04 17:55:59 +03:00
loonycyborg
03f1a62a97 Properly recreate fifo only when necessary when reloading config 2016-07-04 14:50:56 +03:00
loonycyborg
8710ec2bbc Handle asio::error::eof to properly log client initiated disconnects 2016-06-25 03:19:17 +03:00
loonycyborg
31bbedd94e Merge branch 'master' into campaignd_asio 2016-06-17 21:59:37 +03:00
loonycyborg
bd304cb307 Factor server start into separate function
Needed to allow campaignd to load config before starting server.
2016-06-17 21:50:05 +03:00
loonycyborg
358bf3f9f8 Switch campaignd to use asio by reusing wesnothd code via server_base class 2016-06-15 22:14:29 +03:00
Alexander van Gessel
54c03ea6cb Don't store pointers to internal state of temporaries
Found by coverity
2016-06-10 20:01:51 +02:00
loonycyborg
1aac722378 Split off server_base class from server class in order to reuse it for campaignd 2016-06-09 22:07:05 +03:00
loonycyborg
dce503ebec Fix UB when sending game history due to misuse of simple_wml 2016-06-07 20:58:38 +03:00
Celtic Minstrel
5698f74573 Update XCode project 2016-06-06 21:07:29 -04:00
Charles Dang
1d0e4fff41 Convert most usecases of atoi to std::stoi
Uses in theme.cpp were left alone since changing them causes a crash.
Other cases I'll leave for other people who know the respective code
better to change.
2016-06-07 01:53:53 +11:00
loonycyborg
d3ed75d58a Fixed simple_wml misuse leading to server trying to send invalid wml 2016-06-06 16:04:01 +03:00
loonycyborg
1bc9b423ba Restore accidentally omitted compatibility code 2016-06-06 13:02:00 +03:00
loonycyborg
c8cdbcfe22 Made wesnothd work if built on windows
Disabled handling of SIGHUP on windows because trying to add it to signal
set causes an exception. Do not disable asio's thread support on windows
since it causes deadline_timer to throw.
2016-06-02 23:53:50 +03:00
Andreas Löf
a3831fead2 Various fixes to make travis happier
Take out the clag to suppress warnings for lua in clang as it's not needed.
Make cmake builds in travis verbose.
Fix uninitialised variables that clang picks up on in cmake builds.
2016-06-02 22:37:39 +12:00
loonycyborg
904b4668ce Replace shared_ptr with unique_ptr as suggested in TODO item 2016-06-01 21:32:47 +03:00
loonycyborg
2755920ba2 Fixed wesnothd not showing MOTD 2016-06-01 14:54:33 +03:00
loonycyborg
724408ceb8 Fixed -Wold-style-cast warnings 2016-06-01 13:50:38 +03:00
Wedge009
2f73681499 Fix broken Windows compilation. 2016-06-01 17:08:18 +10:00
loonycyborg
fc9e08e6d9 Fixed invalid iterator usage 2016-05-15 15:11:45 +03:00
loonycyborg
3f91836ded Uncomment filesystem code in ban_manager::write 2016-05-15 13:59:03 +03:00
loonycyborg
0be0b91ee6 Fully implemented graceful shutdown 2016-05-10 19:29:38 +03:00
loonycyborg
ee71c19d11 Remove some more obsolete commented code 2016-05-06 19:04:04 +03:00
loonycyborg
c11728e66f Change casing in class names to be more in line with c++ std, boost and
rest of wesnoth
2016-05-06 15:19:54 +03:00
loonycyborg
87f4a00e47 Reenabled nickserv functionality 2016-05-05 20:07:51 +03:00
loonycyborg
157a0f9c62 Reimplemented the ability to count currently active games 2016-05-05 18:41:45 +03:00
loonycyborg
99dff79b74 Re-enable ip log functionality 2016-05-05 15:20:00 +03:00
loonycyborg
f76327ad6f Reimplement message for admins recognized via user_handler 2016-05-05 14:23:59 +03:00
loonycyborg
cac07b3e79 Fix invalid iterator usage 2016-05-04 20:34:16 +03:00
loonycyborg
39f14b9b4b Merge branch 'master' into asio_wesnothd 2016-05-03 18:20:41 +03:00
loonycyborg
0c3154044c Clean up some more obsolete commented code 2016-05-03 18:08:51 +03:00
loonycyborg
bb61420394 Reimplement filtering based on side in game::send_data_sides 2016-05-02 21:00:06 +03:00
loonycyborg
36b9f7aba4 Re-enable game::send_history 2016-04-26 19:53:42 +03:00
loonycyborg
a3fbafcf85 Disable full WML dumps altogether 2016-04-12 12:44:13 +03:00
ln-zookeeper
37deb40b9b Server-side fix to /adminmsg not working right 2016-04-11 16:40:00 +03:00
loonycyborg
6cab7d2212 Move WML dumps to debug log level, server logdomain 2016-04-10 22:14:11 +03:00
loonycyborg
2172303c13 Disable asio thread support which was causing link error without -pthread
wesnothd is single threaded currently
2016-04-10 20:52:31 +03:00
loonycyborg
94c5e15aa0 Fix typo in copyright year 2016-04-10 19:36:11 +03:00
loonycyborg
16e5496f7e Re-enabled functionality to read bans from file 2016-04-10 19:11:32 +03:00
Celtic Minstrel
e7d254bce7 Update XCode project 2016-04-07 12:18:03 -04:00