rubidium
9f4d64bda0
(svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP.
16 years ago
smatz
8808f3beea
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
rubidium
e7dedf4e1b
(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
16 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
ed1e54bd84
(svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize()
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
rubidium
a5d6e23e9d
(svn r16305) -Codechange: force-enable extra sync checking when random debugging is enable and give the calling location of Chance16(R) instead of the Random call within those functions.
16 years ago
smatz
3afce9b641
(svn r16288) -Fix (r16237): crash after clicking in the ClientList window
16 years ago
smatz
f5316c5cbd
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
16 years ago
smatz
d4971a22d0
(svn r16265) -Fix (r16238): wrong format string for debug output
16 years ago
alberth
977db77921
(svn r16255) -Fix [FS#2887] (r16237): Nested widgets of client list window used incorrect length.
16 years ago
frosch
8fc723800f
(svn r16254) -Fix [FS#2886]: Magic constant removed.
16 years ago
rubidium
101af1f9b5
(svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company
16 years ago
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
16 years ago
rubidium
951b9e7615
(svn r16238) -Change: improve/clarify some network related debug "error" messages by adding more information to them. Also give some clues on how to fix certain issues (like failing advertising).
16 years ago
alberth
29675278c4
(svn r16237) -Codechange: Add nested widgets to remaining network windows.
16 years ago
alberth
b967b45ae8
(svn r16236) -Codechange: Make widget enums complete of various network windows, and add them as comment.
16 years ago
alberth
4d3f8bbb97
(svn r16235) -Codechange (r16234): But keep the window description.
16 years ago
alberth
6d783983e7
(svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk.
16 years ago
alberth
819588c51f
(svn r16233) -Codechange: Added nested widgets to network content windows.
16 years ago
alberth
4add445012
(svn r16232) -Codechange: Moving network content widgets enums outside window structs.
16 years ago
alberth
fb1dbd6d19
(svn r16231) -Codechange: Added nested widgets to chat window.
16 years ago
alberth
e04d2c88d9
(svn r16230) -Codechange: Moving chat widgets enum outside window struct.
16 years ago
yexo
52b95bdc96
(svn r16176) -Fix: forbid joining AI companies via the 'move' and 'join' console commands.
16 years ago
yexo
c8ce3f7ef0
(svn r16175) -Fix: Disable the join button in the multiplayer lobby for AI companies, since joining an AI company is not possible.
16 years ago
rubidium
85b653bafc
(svn r16163) -Codechange: instead of SetDParamStr(0, string); DrawString(..., STR_JUST_RAW_STRING, ...) use DrawString(..., string, ...).
16 years ago
rubidium
7dd677ced2
(svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings.
16 years ago
rubidium
11c6d30e77
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
16 years ago
rubidium
169a003e9a
(svn r16135) -Fix [FS#2856]: always give the server an already resolved 'client address' so we can be sure the client address is always resolved
16 years ago
rubidium
5db32d1dc5
(svn r16134) -Change: do not add duplicates to the broadcast list
16 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
16 years ago
rubidium
f14425e2c4
(svn r16071) -Fix [FS#2845]: content download progress bar 'resetting' due to mathematical overflow.
16 years ago
rubidium
d04ebf2fa5
(svn r16065) -Fix: don't readd (and resolve) the last joined server each time the window gets repainted
16 years ago
rubidium
3061d70387
(svn r16064) -Fix: memory leak when querying a server multiple times.
16 years ago
glx
532fca65ef
(svn r16050) -Fix (r15933): little typo causing OTTDfreeaddrinfo to use the fallback even when freeaddrinfo is available
16 years ago
rubidium
47e2901e18
(svn r16034) -Fix: compile warnings generated by 64 bits MSVC.
16 years ago
peter1138
be7215497c
(svn r16026) -Codechange: Use font height for chat line spacing instead of fixed value.
16 years ago
rubidium
2663ad302f
(svn r16022) -Fix (r15159): sometimes the unregister "query" thread could be delayed so much that the network stuff was already closed and the packet would never reach the master server causing the server to appear online longer than necessary.
16 years ago
rubidium
7d3db3ee91
(svn r16014) -Feature(-ish): allow binding to several IPs; [network]:server_bind_ip doesn't exist anymore. Add the IPs/hostnames to [server_bind_addresses]
16 years ago
rubidium
460fbc7c92
(svn r16007) -Fix (r16004): when we want to bind to both IPv4 and IPv6, make the master socket do that too; too bad getaddrinfo can't handle binding to any address on any port at the same time :(
16 years ago
rubidium
28bce241fd
(svn r16005) -Fix: assertion when there is no last joined server; when you've got an unresolved address, the hostname cannot be resolved either so return it as-is.
16 years ago
rubidium
8477e92386
(svn r16004) -Fix (r16000): explicitly binding to an IPv4 socket would try to register an IPv6 address (only if it could ofcourse)
16 years ago
rubidium
c0f9af5607
(svn r16000) -Feature: IPv6 support
16 years ago
rubidium
ebe0f9e7f7
(svn r15998) -Codechange: some coding style updates
16 years ago
rubidium
882e495f5c
(svn r15993) -Codechange: clean up/generalise the handling of the server list
16 years ago
rubidium
c2dbc8270b
(svn r15991) -Fix: don't add 0.0.0.0/:: to the server list; you can't connect to them in any case
16 years ago
rubidium
0f0cc67d62
(svn r15990) -Codechange: provide a thread safe variant of GetAddressAsString.
16 years ago
rubidium
e779c56e31
(svn r15989) -Fix (r15987: segfault due to uninitialised sockets.
16 years ago
rubidium
1d4318c0d1
(svn r15988) -Fix: inconsistency between using NETWORK_NAME_LENGTH and NETWORK_CLIENT_NAME_LENGTH for the length of client names.
16 years ago
rubidium
08e37a6f10
(svn r15987) -Fix: make the master socket only listen on the IP the server is bound to.
16 years ago
rubidium
080095ade5
(svn r15984) -Codechange: prepare the UDP receiver to process multiple types of returned server lists.
16 years ago
rubidium
cd8da0d69e
(svn r15982) -Codechange: use GetAddressAsString to get the name instead of passing the hostname and the IP into a string.
16 years ago
rubidium
9d6edae94d
(svn r15981) -Fix: don't print the address family when writing the IP+port to the config file.
16 years ago
rubidium
18146572b0
(svn r15980) -Codechange: don't try to bind to the same socket twice; it's quite pointless.
16 years ago
rubidium
c2152fa31f
(svn r15979) -Codechange: tweak the debug/warning levels of some of the messages when binding
16 years ago
rubidium
a5a424ce28
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
16 years ago
rubidium
20e82c46d3
(svn r15976) -Codechange: make it a bit more clear for what (type of) address binding fails
16 years ago
rubidium
1eb4aa971e
(svn r15975) -Codechange: register each of the IPs we have bound to to the masterserver
16 years ago
glx
d466fa9672
(svn r15974) -Fix (r15969): win32 compilation was broken (again)
16 years ago
rubidium
8cf88876ef
(svn r15973) -Codechange: make it possible to listen on multiple TCP sockets
16 years ago
rubidium
c0f8214218
(svn r15972) -Codechange: remove unneeded parameter
16 years ago
rubidium
2a6e9288fd
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
16 years ago
rubidium
6db7f15b3a
(svn r15970) -Codechange: make it possible to resolve a single address into multiple sockets.
16 years ago
rubidium
82f8badc07
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
16 years ago
rubidium
fdddfd6269
(svn r15968) -Codechange: do not allocate a buffer for NetworkAddresses so passing it around is easier.
16 years ago
rubidium
22d9306889
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
16 years ago
rubidium
0678cb561d
(svn r15961) -Codechange: prepare the 'client' side for receiving 'session keys' from the masterserver so servers can register with multiple IPs as the same server.
16 years ago
rubidium
edfc2e536e
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
16 years ago
rubidium
616cac0c54
(svn r15951) -Fix (r15946) [FS#2803]: ofcourse a couple of OSes/compilers do not provide a nice 'interface', so we have to do it the ugly way.
16 years ago
glx
5eed35ef54
(svn r15950) -Fix (r15946): mingw compilation
16 years ago
rubidium
a779611665
(svn r15948) -Fix: resolve network addresses before comparing them
16 years ago
rubidium
c9ebf14ba5
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
16 years ago
rubidium
2fd9f0fffa
(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
16 years ago
glx
e460d3f4d0
(svn r15945) -Fix (r15944): win32 compilation
16 years ago
rubidium
7cf4639255
(svn r15944) -Codechange: disable IPv4 over IPv6 sockets as there is no default value and not all OSes actually support IPv4 over IPv6 so making it the same on all OSes eases debugging and such
16 years ago
rubidium
ce06df313d
(svn r15941) -Codechange: jonty-comp's wish partly implemented (content server) ;)
16 years ago
rubidium
1463b00b48
(svn r15940) -Codechange: move setting reuse address to the binding process.
16 years ago
glx
2dafb9dd57
(svn r15938) -Fix: broadcast addresses detection was broken for win32
16 years ago
rubidium
e05e1822d6
(svn r15935) -Codechange: function to compare IP addresses (to sort them)
16 years ago
rubidium
2bfc9ca50c
(svn r15934) -Fix: work around Solaris' inability to "parse" 0 as defined in the specifications.
16 years ago
glx
65d10e66f0
(svn r15933) -Fix (r15920): mingw doesn't know getaddrinfo() and freeaddrinfo() either
16 years ago
rubidium
5386fe1a1c
(svn r15932) -Codechange: show ip:port as (fallback) servername instead of only the ip. This way you can clearly see there aren't any duplicates.
16 years ago
rubidium
89d0eca6b7
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
glx
d84fb358f5
(svn r15930) -Fix (r15926): MSVC compilation
16 years ago
rubidium
11723c40b2
(svn r15926) -Codechange: make the broadcast IP list less AF dependent.
16 years ago
rubidium
47602d7b60
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
16 years ago
rubidium
dccfba6e20
(svn r15924) -Codechange: replace NetworkResolveHost with something less AF dependant.
16 years ago
rubidium
632d74c6b1
(svn r15922) -Codechange: unify the ways to listen on a socket
16 years ago
rubidium
ba5aafb9bb
(svn r15921) -Fix: some OSes don't like sizeof(sockaddr_storage) but want sizeof(sockaddr) or whatever is 'valid' for the given protocol
16 years ago
rubidium
c7b6469dab
(svn r15920) -Codechange: make the (TCP) connecting less AF dependent.
16 years ago
glx
521bf687ee
(svn r15919) -Fix (r15916): mingw doesn't know getnameinfo() (unless you compile for XP SP2+). Also fix a MSVC warning.
16 years ago
rubidium
beef5da970
(svn r15918) -Fix (r15917): comparing IPs sometimes failed due to 'random' data (as spotted by SpComb)
16 years ago
rubidium
c5160c7c8e
(svn r15917) -Codechange: remove the latest traces of NetworkAddress::GetIP.
16 years ago
rubidium
1e205e01b8
(svn r15916) -Codechange: let the network game list use NetworkAddress
16 years ago
rubidium
c0c6e07081
(svn r15915) -Codechange: let the udp code use NetworkAddress.
16 years ago
rubidium
804370d964
(svn r15914) -Codechange: let the content handling make use of NetworkAddress.
16 years ago
rubidium
d3fa15e620
(svn r15905) -Fix (r15424): chat completion got called twice causing tab completion to seemingly fail
16 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
peter1138
28d3123dfd
(svn r15848) -Feature: Add autoclean_novehicles setting which will, when autoclean_companies is true, remove any company with no vehicles and no active client after autoclean_novehciles-months.
16 years ago
yexo
b61a681f02
(svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN.
16 years ago
rubidium
e25b2f5d60
(svn r15822) -Codechange: replace some magic numbers and improve alignment of the start server window.
16 years ago
alberth
6567a29e18
(svn r15820) -Codechange: Some windows using nested widgets
16 years ago
rubidium
9038733f1a
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
16 years ago
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
16 years ago
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
16 years ago
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
f11300d1f9
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
16 years ago
rubidium
69decac406
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
16 years ago
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
16 years ago
rubidium
fd0f0bda72
(svn r15788) -Codechange: enumify the network join status widgets and use them.
16 years ago
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
glx
9fcff01850
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
16 years ago
rubidium
8a758beec3
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
16 years ago
rubidium
ee4a660b0c
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
16 years ago
rubidium
f5cb1873d6
(svn r15766) -Fix [FS#2744]: Crash when opening the content list window twice; inconsistencies when clicking download twice.
16 years ago
smatz
8585aa71ed
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
4f8eeca437
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth)
16 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
27bcfd115b
(svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows.
16 years ago
yexo
2b0b9a6367
(svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open.
16 years ago
rubidium
4a5c4f6089
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
16 years ago
smatz
642dc1ea5e
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
16 years ago
rubidium
406832fed8
(svn r15632) -Feature: allow downloading scenarios and heightmaps via bananas.
16 years ago
smatz
f3ed8268b6
(svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server
16 years ago
rubidium
86ca408d46
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
16 years ago
rubidium
908e850b5a
(svn r15605) -Codechange: constify a function
16 years ago
rubidium
3ae9851bd8
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
16 years ago
rubidium
66a8c0a132
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
16 years ago
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
16 years ago
smatz
846044ee26
(svn r15571) -Fix: incorrect use of memset
16 years ago
rubidium
8fa247c4b1
(svn r15566) -Change: reintroduce space as valid method of selecting 'content' as long as the filter box is not focused. Enter will also work when the filter box is focused.
16 years ago
rubidium
4bf2f4a166
(svn r15565) -Fix [FS#2675]: dependency information wasn't requested after the content state was reset causing the dependencies not always being selected (and thus downloaded) automatically.
16 years ago
rubidium
54f852f094
(svn r15552) -Fix (r15544): some compiler/OS combinations don't like closing the same FD twice and zlib's docs weren't very clear about whether it would close a FD it didn't open.
16 years ago
rubidium
fdc2e85184
(svn r15544) -Fix [FS#2650]: extracting downloaded content didn't work for Windows if one uses a non-ASCII.
16 years ago
rubidium
c5677da94d
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
16 years ago
rubidium
dba12992e8
(svn r15442) -Codechange: don't do magic on magic numbers when you can also use a single named constant.
16 years ago
peter1138
cd0b38d234
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
8dae160d0f
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
16 years ago
rubidium
d7a053578d
(svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server.
16 years ago
rubidium
841050ec83
(svn r15377) -Fix [FS#2607]: filter did resort when unneeded and didn't deselect properly in some cases (Roujin)
16 years ago
rubidium
ef754b8b6d
(svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed.
16 years ago
rubidium
c346f249cd
(svn r15372) -Feature: filter the 'content' based on the tag/name. Based on a patch by Roujin.
16 years ago
rubidium
ac7757324e
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
peter1138
aad67b5736
(svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe.
16 years ago