Commit Graph

783 Commits

Author SHA1 Message Date
alberth
0dd71a0d7e (svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation. 2010-06-27 09:05:10 +00:00
yexo
df1036f948 (svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password 2010-06-23 00:11:11 +00:00
rubidium
52d136ee2c (svn r19998) -Codechange: Unify the order of ship and plane icon in network-lobby with the rest of the game (frosch) 2010-06-19 16:42:02 +00:00
rubidium
8b8102d30f (svn r19996) -Codechange: Add NetworkVehicleType enum. 2010-06-19 16:37:56 +00:00
frosch
65d058723e (svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation. 2010-06-05 13:32:42 +00:00
rubidium
7620939583 (svn r19869) -Fix [FS#3819]: when a connection gets lost and a game with AIs was loaded the client might crash due to the AIs not being loaded while the game loop is executed 2010-05-20 18:54:14 +00:00
smatz
09cb5fff3a (svn r19818) -Fix [FS#3784](r16004): kicking clients by IP didn't work 2010-05-13 16:00:50 +00:00
rubidium
a70fd540fc (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 2010-05-13 10:14:29 +00:00
rubidium
eb8ee7ad5e (svn r19809) -Codechange: make some unnamed network related enums/defines static const variables 2010-05-13 09:04:41 +00:00
rubidium
5732bdcdb9 (svn r19808) -Codechange: NetworkCalculateLag returned an uint, so keep it that way 2010-05-13 08:59:50 +00:00
rubidium
a06b3c0646 (svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille) 2010-05-10 17:11:24 +00:00
rubidium
2099d3ffb8 (svn r19777) -Change: use the file scanner to find the .tars 2010-05-10 09:37:17 +00:00
smatz
691261674a (svn r19714) -Feature: ctrl+click on a vehicle to start/stop it 2010-04-24 20:55:51 +00:00
rubidium
0cfec82674 (svn r19695) -Fix: leaking a file descriptor 2010-04-22 18:34:45 +00:00
smatz
52b5be7434 (svn r19693) -Codechange: split STATUS_INACTIVE to two states 2010-04-22 17:26:57 +00:00
smatz
920d7d98bb (svn r19686) -Fix (r15126): truncated archives were not detected when using zlib 1.2.3. This also fixes zlib 1.2.4 compatibility, zlib 1.2.5 is bugfree 2010-04-21 11:42:00 +00:00
rubidium
0a703ae70a (svn r19680) -Fix [FS#3775] (r19648): when joining a MP game all clients with company ID > 0 would be shown as if they were a spectator 2010-04-20 11:29:51 +00:00
rubidium
a83194fad3 (svn r19678) -Fix (r19607): client status was shown incorrect in the console 2010-04-19 19:50:56 +00:00
smatz
abaf6b5b42 (svn r19651) -Fix [FS#3745]: when a company is sold, move connected clients to spectators 2010-04-17 11:39:46 +00:00
rubidium
21cc1b1079 (svn r19648) -Fix [FS#3760]: a client would not be properly moved when moved while joining, e.g. when entering a company's password. This caused the client to be in the wrong company (according to the rest of the clients) and the client being kicked on the first command 2010-04-17 10:52:26 +00:00
rubidium
7c3158f0af (svn r19629) -Fix [FS#3757]: chat message caused glitch when rejoining a network game 2010-04-14 16:12:54 +00:00
rubidium
34cdcaf8b2 (svn r19620) -Fix: desync when a command is received and in the queue while a client starts joining, i.e. save the game state. This can happen in two ways: with frame_freq > 1 a command received in a previous frame might not be executed yet or when a command is received in the same frame as the join but before the savegame is made. In both cases the joining client would not get all commands to get in-sync with the server (and the other clients). 2010-04-13 18:55:31 +00:00
rubidium
36c1cf6129 (svn r19619) -Fix (r19618): [desync debug] inserting the "join" pause could cause a crash as some command data was not properly initialised 2010-04-13 18:40:47 +00:00
rubidium
cc25fce629 (svn r19617) -Fix [desync debug]: log the sync state only once per day, not multiple times when paused with _date_fract = 0
-Change [desync debug]: check the sync state from the command stream and make sure no unknown input is encountered
2010-04-13 17:36:19 +00:00
smatz
258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 2010-04-12 14:12:47 +00:00
smatz
073af4eba2 (svn r19613) -Fix [FS#3755]: possible invalid read when server moves client to spectators before he finishes joining 2010-04-11 22:06:17 +00:00
smatz
e0746e5bd3 (svn r19610) -Codechange: rename STATUS_AUTH to STATUS_AUTHORIZED 2010-04-11 17:32:14 +00:00
smatz
2388149ea3 (svn r19609) -Fix: do not print 'Connection lost' message for clients who failed to enter correct password 2010-04-11 17:25:44 +00:00
smatz
535a3bf847 (svn r19608) -Fix: do not kick client if he entered password and the password was cleared meanwhile 2010-04-11 17:23:11 +00:00
smatz
150ae1c707 (svn r19607) -Codechange: use different packet types instead of packet subtypes 2010-04-11 17:17:12 +00:00
smatz
ac82a8fee0 (svn r19606) -Codechange: remove global variable pw_type 2010-04-11 16:38:31 +00:00
rubidium
ea7aececf8 (svn r19602) -Codechange: add the name of the command to the desync logs 2010-04-11 10:11:26 +00:00
rubidium
ff6ec70007 (svn r19601) -Fix: make the desync replay parse the "whole" string instead of everything up to the first space; make it log the sync state too 2010-04-11 09:54:44 +00:00
frosch
1d0335a798 (svn r19600) -Fix (r18994): Presence of online content was not properly updated after download due to duplicate slashes in the path. 2010-04-10 21:34:21 +00:00
glx
b702b1f3fd (svn r19596) -Fix (r19593): dedicated server always fast forwarding if compiled without DEBUG_DUMP_COMMANDS 2010-04-10 02:17:18 +00:00
rubidium
de155e78e7 (svn r19593) -Codechange: improve loading/executing the desync logs 2010-04-09 17:08:44 +00:00
rubidium
ff5dfd9c7e (svn r19589) -Change: add some more useful information to the desync log and unify the formatting 2010-04-08 21:14:49 +00:00
smatz
2682e34911 (svn r19508) -Codechange: remove semicolon after DEFINE_UNAVAILABLE_CONTENT_RECEIVE_COMMAND and DEFINE_UNAVAILABLE_UDP_RECEIVE_COMMAND 2010-03-23 22:36:02 +00:00
smatz
d2e99657fa (svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET 2010-03-23 22:25:43 +00:00
alberth
68213d25ab (svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback. 2010-03-14 19:59:45 +00:00
rubidium
017281bc22 (svn r19385) -Fix [FS#3684]: [IPv6] Netmask calculations were wrong if cidr >= 32. 2010-03-11 17:57:14 +00:00
peter1138
7d9b3ce17a (svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help. 2010-03-08 11:51:23 +00:00
yexo
23af928ce9 (svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info 2010-02-28 20:28:08 +00:00
frosch
e175c704a3 (svn r19283) -Fix (r19256): GRFConfig is not zeroed for non-dynamic construction. GRFIdentifier is sufficient though. 2010-02-27 20:26:42 +00:00
rubidium
04fbf762fb (svn r19262) -Feature: finalise BaNaNaS support for music sets 2010-02-26 00:00:55 +00:00
yexo
daf89297fe (svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized 2010-02-25 20:06:11 +00:00
yexo
b21278659c (svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it 2010-02-25 20:05:31 +00:00
terkhen
6ccd15fd08 (svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop. 2010-02-24 21:45:23 +00:00
smatz
5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 2010-02-24 14:46:15 +00:00
alberth
e3b24801e2 (svn r19132) -Codechange: No need to end a line with ;;. 2010-02-14 16:31:35 +00:00
yexo
9a80d81f4c (svn r19094) -Codechange: don't check for NULL values before calling StrEmpty 2010-02-11 14:58:51 +00:00
rubidium
a7a2568985 (svn r19090) -Codechange: some comment coding style fixes 2010-02-10 21:06:05 +00:00
rubidium
1c468db7d5 (svn r19087) -Codechange: some typos in StringIDs 2010-02-10 20:20:18 +00:00
rubidium
1c494c6f71 (svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel 2010-02-10 16:24:05 +00:00
smatz
c736bbb875 (svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword() 2010-02-10 15:17:27 +00:00
rubidium
78f5533141 (svn r19072) -Fix [FS#3599]: possible read/write after free when the client triggered the server to close the connection 2010-02-09 23:49:19 +00:00
rubidium
5eb860dabe (svn r19054) -Fix [FS#3598]: when banning yourself via rcon do not send the 'command response' to the client as the connection has already been terminated 2010-02-07 18:28:09 +00:00
rubidium
00f64a64d9 (svn r19001) -Fix: some GCC compile warnings 2010-02-04 13:35:20 +00:00
rubidium
416a47f9a2 (svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about 2010-02-03 21:45:48 +00:00
rubidium
57996b7cd5 (svn r18994) -Change: content mirroring support (based on work by TrueBrain). 2010-02-03 18:42:23 +00:00
rubidium
b795af486d (svn r18992) -Codechange: move the file opening/closing out of the content download function 2010-02-03 17:15:35 +00:00
rubidium
6a4726020f (svn r18991) -Codechange: simplify memory management of DownloadSelectedContent 2010-02-03 17:12:19 +00:00
frosch
28bb97ffdf (svn r18967) -Fix (r18966): Never trust your copy&paste skills. 2010-01-30 18:43:14 +00:00
frosch
94a5c917a5 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 2010-01-30 18:34:48 +00:00
frosch
c45c274daa (svn r18965) -Fix (r17846): Don't compare horizontal positions with vertical. 2010-01-30 17:42:04 +00:00
rubidium
149af66877 (svn r18875) -Codechange: remove some unneeded bits from the network protocol and improve the naming of some variables 2010-01-21 11:17:40 +00:00
rubidium
8676af5618 (svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze) 2010-01-16 22:01:33 +00:00
rubidium
9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 2010-01-15 16:41:15 +00:00
rubidium
2cbb3dd7d1 (svn r18804) -Codechange: guard against binaries claiming to be compatible with a future (stable) release of OpenTTD. 2010-01-14 23:06:41 +00:00
rubidium
1e68ee0de8 (svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different. 2010-01-14 21:48:42 +00:00
rubidium
119d742015 (svn r18800) -Fix: in some cases with invalid packets one can crash recent trunk and 1.0.0 betas; 0.7.5 and before can't be crashed though. 2010-01-14 21:47:31 +00:00
rubidium
7f1bf45c03 (svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company. 2010-01-11 20:32:32 +00:00
rubidium
89443276b1 (svn r18782) -Codechange: move the content of callback_table.cpp to network_command.cpp; it's only ever used there. 2010-01-11 20:00:14 +00:00
rubidium
0a54cc9335 (svn r18746) -Fix [FS#3489]: clear the cached NewGRFs of a server when receiving a reply instead of when requesting the information. With slow/unstable network connections it would look like the NewGRF settings button went randomly missing. 2010-01-06 20:49:24 +00:00
rubidium
3de085a143 (svn r18683) -Fix: it's not an other 2010-01-01 18:45:40 +00:00
smatz
c031c9a731 (svn r18645) -Fix [FS#3433](r942): out-of-bounds access in the 'Start new multiplayer game' GUI 2009-12-27 13:38:08 +00:00
smatz
f6177d9708 (svn r18640) -Fix (r18633): don't assert when accessing first invalid item, it's used quite often in the code
-Revert (r18637): it's not needed any more
2009-12-26 13:49:14 +00:00
rubidium
312e0a7580 (svn r18638) -Fix: downloading music sets would fail 2009-12-26 09:38:41 +00:00
rubidium
0946fd974f (svn r18637) -Fix [FS#3428]: check whether the content list is empty before trying to draw it 2009-12-26 09:01:28 +00:00
rubidium
42d7f30dcc (svn r18608) -Change: add the concept of music sets 2009-12-22 21:40:29 +00:00
rubidium
7263d3ff34 (svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant. 2009-12-21 20:32:20 +00:00
alberth
2ac35a8cff (svn r18589) -Codechange: Add tooltip to some network windows, remove old comment. 2009-12-21 16:28:50 +00:00
alberth
f20e477a02 (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 2009-12-20 20:08:39 +00:00
rubidium
5f1bb2e882 (svn r18578) -Feature: initially select the last joined server when going to the server list 2009-12-20 19:18:18 +00:00
rubidium
2d249b9946 (svn r18493) -Fix: don't access something after deleting it 2009-12-13 21:36:10 +00:00
frosch
a23b215b5a (svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it. 2009-12-05 13:53:58 +00:00
rubidium
86529556b1 (svn r18397) -Fix [FS#3346]: after cancelling downloading the download button would remain disabled 2009-12-04 14:23:54 +00:00
frosch
992bc6c345 (svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff. 2009-12-02 17:37:02 +00:00
rubidium
da30e736ca (svn r18330) -Cleanup: remove some unneeded includes 2009-11-28 20:35:25 +00:00
rubidium
21f2acfd01 (svn r18324) -Codechange: there's no need for a default size when the window isn't resizable 2009-11-28 15:01:49 +00:00
rubidium
45eb0be570 (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 2009-11-28 14:42:35 +00:00
rubidium
fedb593293 (svn r18318) -Codechange: add an enum value for manual window placement 2009-11-28 13:54:28 +00:00
rubidium
fe1dcdd635 (svn r18287) -Fix (r17841): a not properly updated list caused reading just freed memory which caused buttons to not work as they should 2009-11-25 17:48:44 +00:00
rubidium
50359b2d08 (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 2009-11-24 18:05:55 +00:00
rubidium
f8b79068e6 (svn r18274) -Codechange: remove the unused WDF flags 2009-11-24 17:28:29 +00:00
rubidium
7824727828 (svn r18251) -Codechange: make the join status window big font aware 2009-11-23 12:45:01 +00:00
rubidium
a71cc49498 (svn r18249) -Codechange: make the network client list big font aware 2009-11-22 22:17:06 +00:00
rubidium
845de0aac1 (svn r18240) -Change: align the 'select' sprite in the network content GUI based on the font height 2009-11-22 19:27:51 +00:00
alberth
5bee09c924 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 2009-11-22 18:28:14 +00:00
alberth
18b33fde83 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 2009-11-22 18:26:01 +00:00