Commit Graph

523 Commits

Author SHA1 Message Date
smatz 56a7b70591 (svn r16380) -Codechange: rename pool.hpp to pool_type.hpp 2009-05-22 15:39:22 +00:00
smatz 10d1ef5447 (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead 2009-05-22 15:23:47 +00:00
smatz 62a7948af0 (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 2009-05-22 15:13:50 +00:00
smatz 04723b240e (svn r16377) -Codechange: unify FOR_ALL_* macros, use separate index variable instead of var->index 2009-05-22 14:23:36 +00:00
rubidium 26070726ac (svn r16361) -Fix: pointer incremented with wrong count 2009-05-19 21:25:20 +00:00
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. 2009-05-19 21:20:14 +00:00
smatz 8808f3beea (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 2009-05-18 16:21:28 +00:00
rubidium e7dedf4e1b (svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions) 2009-05-17 11:17:53 +00:00
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 2009-05-17 01:00:56 +00:00
smatz ed1e54bd84 (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() 2009-05-16 23:44:36 +00:00
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 2009-05-16 23:34:14 +00:00
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. 2009-05-14 12:08:24 +00:00
smatz 3afce9b641 (svn r16288) -Fix (r16237): crash after clicking in the ClientList window 2009-05-13 00:24:21 +00:00
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
2009-05-10 17:27:25 +00:00
smatz d4971a22d0 (svn r16265) -Fix (r16238): wrong format string for debug output 2009-05-10 13:23:23 +00:00
alberth 977db77921 (svn r16255) -Fix [FS#2887] (r16237): Nested widgets of client list window used incorrect length. 2009-05-09 08:02:17 +00:00
frosch 8fc723800f (svn r16254) -Fix [FS#2886]: Magic constant removed. 2009-05-08 09:00:47 +00:00
rubidium 101af1f9b5 (svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company 2009-05-07 17:08:41 +00:00
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
2009-05-06 15:06:57 +00:00
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). 2009-05-06 09:52:52 +00:00
alberth 29675278c4 (svn r16237) -Codechange: Add nested widgets to remaining network windows. 2009-05-05 20:40:08 +00:00
alberth b967b45ae8 (svn r16236) -Codechange: Make widget enums complete of various network windows, and add them as comment. 2009-05-05 20:36:16 +00:00
alberth 4d3f8bbb97 (svn r16235) -Codechange (r16234): But keep the window description. 2009-05-05 20:33:05 +00:00
alberth 6d783983e7 (svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk. 2009-05-05 20:17:39 +00:00
alberth 819588c51f (svn r16233) -Codechange: Added nested widgets to network content windows. 2009-05-05 20:08:50 +00:00
alberth 4add445012 (svn r16232) -Codechange: Moving network content widgets enums outside window structs. 2009-05-05 20:07:33 +00:00
alberth fb1dbd6d19 (svn r16231) -Codechange: Added nested widgets to chat window. 2009-05-05 20:03:57 +00:00
alberth e04d2c88d9 (svn r16230) -Codechange: Moving chat widgets enum outside window struct. 2009-05-05 20:03:12 +00:00
yexo 52b95bdc96 (svn r16176) -Fix: forbid joining AI companies via the 'move' and 'join' console commands. 2009-04-26 20:01:14 +00:00
yexo c8ce3f7ef0 (svn r16175) -Fix: Disable the join button in the multiplayer lobby for AI companies, since joining an AI company is not possible. 2009-04-26 19:48:42 +00:00
rubidium 85b653bafc (svn r16163) -Codechange: instead of SetDParamStr(0, string); DrawString(..., STR_JUST_RAW_STRING, ...) use DrawString(..., string, ...). 2009-04-26 15:42:45 +00:00
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. 2009-04-26 15:26:19 +00:00
rubidium 11c6d30e77 (svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter) 2009-04-26 10:45:07 +00:00
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 2009-04-24 10:52:51 +00:00
rubidium 5db32d1dc5 (svn r16134) -Change: do not add duplicates to the broadcast list 2009-04-24 10:33:16 +00:00
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. 2009-04-21 23:40:56 +00:00
rubidium f14425e2c4 (svn r16071) -Fix [FS#2845]: content download progress bar 'resetting' due to mathematical overflow. 2009-04-17 17:48:33 +00:00
rubidium d04ebf2fa5 (svn r16065) -Fix: don't readd (and resolve) the last joined server each time the window gets repainted 2009-04-15 20:37:00 +00:00
rubidium 3061d70387 (svn r16064) -Fix: memory leak when querying a server multiple times. 2009-04-15 20:35:52 +00:00
glx 532fca65ef (svn r16050) -Fix (r15933): little typo causing OTTDfreeaddrinfo to use the fallback even when freeaddrinfo is available 2009-04-12 22:13:05 +00:00
rubidium 47e2901e18 (svn r16034) -Fix: compile warnings generated by 64 bits MSVC. 2009-04-11 20:26:25 +00:00
peter1138 be7215497c (svn r16026) -Codechange: Use font height for chat line spacing instead of fixed value. 2009-04-11 10:38:00 +00:00
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. 2009-04-10 20:18:48 +00:00
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] 2009-04-10 12:56:55 +00:00
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 :( 2009-04-10 09:23:35 +00:00
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. 2009-04-09 21:36:09 +00:00
rubidium 8477e92386 (svn r16004) -Fix (r16000): explicitly binding to an IPv4 socket would try to register an IPv6 address (only if it could ofcourse) 2009-04-09 21:26:29 +00:00
rubidium c0f9af5607 (svn r16000) -Feature: IPv6 support 2009-04-09 01:22:45 +00:00
rubidium ebe0f9e7f7 (svn r15998) -Codechange: some coding style updates 2009-04-09 01:16:15 +00:00
rubidium 882e495f5c (svn r15993) -Codechange: clean up/generalise the handling of the server list 2009-04-08 23:41:48 +00:00