1252 Commits

Author SHA1 Message Date
Mark de Wever
579c62e1a3 Initialize all members. 2011-03-06 18:27:50 +00:00
Mark de Wever
294817587f Catch exception by reference.
Issue found by cppcheck.
2011-02-27 15:20:04 +00:00
Mark de Wever
19b67d01e8 Catch exception by reference.
Issue found by cppcheck.
2011-02-27 15:20:01 +00:00
Karol Nowak
b2d9a12c3d Corrected indentation. 2011-02-08 22:32:38 +00:00
Karol Nowak
72cd559e3e Removed some WIP comments and added spacing for readability. 2011-02-06 12:34:22 +00:00
Karol Nowak
9d5edf7944 Simplified calling conventions. 2011-02-06 11:39:28 +00:00
Karol Nowak
0f5584ba52 Merge branch 'server' 2011-02-05 16:55:10 +00:00
Mark de Wever
51224862be Add an extra header for g++ 4.6. 2011-01-16 09:48:45 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
390713c969 Fixed utterly broken RNG due to improper serialization of seeds.
(Issue spotted by isionous.)
2010-12-21 10:13:05 +00:00
Guillaume Melquiond
fd006ce54f Prevented some denials of service...
...due to the server propagating misquoted strings to the
hosts. (Partial fix for bug #17298.)
2010-12-18 10:24:52 +00:00
Karol Nowak
de4dbd3236 Fixed a violation of set_attr contract.
The given value must remain valid for lifetime of the node.
2010-12-12 23:58:31 +00:00
Derek Hoagland
3020a9ed1b Fixed a bug where players who flooded the lobby would never get reset. 2010-12-10 20:30:33 +00:00
Ignacio R. Morelle
3487ab1a23 Set wesnothd and wesnoth client MP username length limit to 20 (was 18) 2010-12-05 21:12:23 +00:00
Mark de Wever
753b25d75f Remove an unneeded include. 2010-12-05 18:09:18 +00:00
Mark de Wever
11c999b260 Remove unneeded includes. 2010-12-05 18:09:15 +00:00
Guillaume Melquiond
dd1b2e607b Removed unused function wesnothd::find_user. 2010-11-28 15:58:31 +00:00
Guillaume Melquiond
783f3e8f5f Removed unused function wesnothd::game::find_user. 2010-11-28 15:58:29 +00:00
Ignacio R. Morelle
d6a3de1938 Apply patch #2213 by stikonas, using file #11274 2010-11-21 01:56:29 +00:00
Alexander van Gessel
1a19ac0aa5 Get rid of detect_format_and_read,
...which read both plain WML and binary WML
2010-11-19 12:55:44 +01:00
Alexander van Gessel
9a508b5730 Remove the 'gzipped' parameters from the network API.
ANA did not even implement binary WML.
2010-11-17 00:28:08 +01:00
Guillaume Melquiond
001f868d21 Removed unused function banned_compare_subnet::set_use_subnet_mask. 2010-10-30 09:40:30 +00:00
Guillaume Melquiond
8b6a774cdb Removed unused function simple_wml::node::set_attr_dup_key_and_value. 2010-10-30 09:13:30 +00:00
Guillaume Melquiond
f24c5f8b59 Removed unused function wesnothd::room_manager::storage_room. 2010-10-30 09:07:51 +00:00
Guillaume Melquiond
5fcd87eca4 Removed unused function wesnothd::room_manager::string_from_pp. 2010-10-30 09:07:48 +00:00
Guillaume Melquiond
1a1c2af5c0 Removed unused function wesnothd::room_manager::delete_room. 2010-10-30 09:02:24 +00:00
Guillaume Melquiond
4419fdda15 Avoided costly roundtrip through strings. 2010-09-11 20:04:14 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Mark de Wever
d9332e79bb Simplify non-empty string test.
Issue found by cppcheck.
2010-08-29 20:12:52 +00:00
Gunter Labes
9ea22e8099 properly fixed bug #16456 2010-08-20 19:41:56 +00:00
Gabriel Morin
cf8a22fd2b Stopped the Join button in the lobby from always being disabled.
The problem was that the server was sending the open game slots as a
string of the form "#/#", which lobby_data.cpp then tried to convert
to an int with: game["slots"].to_int()). The result of that was
obviously always zero.

I made the "slots" string to be written as only the number of open
slots, instead of using the form 'X slots'/'Y total'. Change it if you
like, but now everything seems to work as intended.
2010-08-16 20:30:07 +00:00
Jody Northup
4985f1cbe9 Persistent variables can now be retrieved from remote players...
...even when it is not their turn.
2010-08-10 10:48:40 +00:00
Guillaume Melquiond
7ff1703a54 Fixed server chocking on unquoted attributes. 2010-08-09 12:33:21 +00:00
Guillaume Melquiond
d8da47b5a0 Removed all the error logs for preprocessing,
...since they are useless now that preprocessor errors are no longer
silent.
2010-08-05 08:32:20 +00:00
Alexander van Gessel
48ce177759 Made some more errors inherit from game::error 2010-08-03 18:36:59 +01:00
Alexander van Gessel
884de7f851 Make user_handler::error and gui::button::error inherit from game::error 2010-08-01 23:26:47 +01:00
Ali El Gariani
4f8e3f4fab Mark @deprecated (since 2007-12-28T20:24:52Z!soliton@wesnoth.org)
a player advances to the next scenario of a MP campaign
(notify_next_scenario)
2010-07-27 02:09:23 +00:00
Mark de Wever
a99c78e0d8 Update doxygen comment.
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Ali El Gariani
c7c222380d Clean the use of @todo for Doxygen
Use ///@todo bla   or  /** @todo bla */ 
with lowercase and no colon after todo
2010-07-26 00:31:55 +00:00
Mark de Wever
003e02cbc5 Code improvements over 2010-07-02T06:58:13Z!gabrielmorin@gmail.com due to last rev.
With the unused variable now being a warning some work-arounds
introduced in 2010-07-02T06:58:13Z!gabrielmorin@gmail.com are no longer needed. Other improvements
remove the temporary variable by directly testing the function result
in the assert.
2010-07-11 16:50:47 +00:00
Gabriel Morin
d4d01078ee 'Fixes' for compilation in release mode.
Some variables were used only in asserts, and a method missed a return
path.
2010-07-02 06:58:13 +00:00
Guillaume Melquiond
4819fc1f01 Avoided costly roundtrip through strings. 2010-06-12 18:57:47 +00:00
Guillaume Melquiond
8441610078 Avoided costly roundtrip through strings. 2010-05-29 09:21:43 +00:00
Guillaume Melquiond
761806b318 Removed unused function server::send_error_dup. 2010-05-26 20:18:57 +00:00
Sergey Popov
e447603e5b Fixed compile with forum_user_handler enabled. Was broken by 2010-05-24T08:01:31Z!guillaume.melquiond@gmail.com 2010-05-24 10:50:18 +00:00
Guillaume Melquiond
76c34a23d3 Modified WML attributes so that they are stored with...
...smaller effective types when they are not translatable.

This patch considerably reduces the memory footprint of WML and speeds it up.

It should not change any WML behavior, except for a few corner cases
detailled below:

- "off" is no longer a synonym for "no" (it wasn't used anyway),

- _"42" is no longer an integer,

- untranslatable "true" and "false" are stored as booleans, hence
  displayed as "yes" and "no",

- "042" is now understood as octal notation (hence 34) rather than decimal,

- hexadecimal notation "0x42" is now recognized.
2010-05-24 08:01:31 +00:00
Alexander van Gessel
8f2f43d3ea Add the minimum ping interval to the ping timeout.
Define this interval as a constant in network.hpp
2010-04-12 03:44:53 +01:00
Gunter Labes
dff1fb1519 remove excessive whitespace from the beginning of queries, too 2010-04-08 05:27:57 +00:00
Guillaume Melquiond
ab21de1ef1 Added conversions from config::proxy_string to int. 2010-04-05 06:02:01 +00:00
Guillaume Melquiond
7a9ce909e6 Removed usage of config::get_children. 2010-03-27 18:48:58 +00:00