alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
2009-11-22 18:26:01 +00:00
alberth
bf93372ca2
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
2009-11-22 13:22:53 +00:00
rubidium
2332034822
(svn r18219) -Fix: the up/down buttons in the start network server window didn't work anymore
2009-11-22 13:20:26 +00:00
rubidium
206c01a4e5
(svn r18218) -Codechange: make a few network windows big font aware
2009-11-22 13:12:31 +00:00
rubidium
8204f226f1
(svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars
2009-11-22 11:24:30 +00:00
rubidium
d913282e7a
(svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays
2009-11-22 11:20:12 +00:00
alberth
777d5ce12e
(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.
2009-11-20 20:10:06 +00:00
rubidium
8bb9d7026f
(svn r18175) -Codechange: make the network lobby and client list RTL aware
2009-11-18 22:00:04 +00:00
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
2009-11-17 19:16:48 +00:00
peter1138
00f0dfd00d
(svn r18146) -Codechange: Improve content download window scaling and offsets for different font size
2009-11-17 17:51:44 +00:00
rubidium
626de6b128
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
2009-11-16 20:34:57 +00:00
peter1138
3c913ac253
(svn r18103) -Codechange: Base content window detail title height on font height.
2009-11-15 18:39:22 +00:00
rubidium
cddc057a60
(svn r18099) -Codechange: scale the edit boxes to the fontsize
2009-11-15 15:37:37 +00:00
rubidium
54fb944468
(svn r18094) -Codechange: make the network content GUI work better with RTL
2009-11-15 14:01:45 +00:00
rubidium
aeb9f8e715
(svn r18092) -Codechange: remove support for the unnested widgets
2009-11-15 13:36:30 +00:00
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
2009-11-15 10:26:01 +00:00
rubidium
16c2e53191
(svn r18078) -Codechange: remove some duplicate (non translatable) strings
2009-11-14 15:37:33 +00:00
rubidium
b0f18a27fb
(svn r18054) -Change/Fix [FS#3310]: make pause on join pause during the whole joining (including download) phase
2009-11-12 20:52:14 +00:00
rubidium
2a1cab4d46
(svn r18052) -Codechange/Fix: make the 'pause' chat message when actually executing the pause command. This to prevent showing paused and especially unpaused to be shown when the state doesn't change. Output now mentions whether pause changes keep the game paused and what reasons for pausing there 'currently' are.
2009-11-12 20:33:30 +00:00
rubidium
934e6a295d
(svn r18051) -Codechange: make the active clients pause use a separate bit in the pause mode
2009-11-12 17:46:04 +00:00
rubidium
c08c10f329
(svn r18048) -Change: make no distinction between unpausing because of a client aborting to join or actually joining
2009-11-12 17:27:24 +00:00
rubidium
860b9b1cea
(svn r18028) -Codechange: unglobalise some functions
2009-11-09 10:40:33 +00:00
rubidium
c2221885f4
(svn r18027) -Codechange: make some unneededly global variables static and remove some unused variables
2009-11-09 09:59:35 +00:00
frosch
b012a75c47
(svn r17977) -Fix: Busses and trucks are distinguished by cargo class.
2009-11-05 20:26:13 +00:00
rubidium
d79439fb3c
(svn r17963) -Codechange: some documentation style
2009-11-03 17:30:08 +00:00
rubidium
9976da168e
(svn r17958) -Codechange: make the join progress window nested
2009-11-02 19:42:09 +00:00
rubidium
56611d13db
(svn r17955) -Codechange: s/SPR_PLAYER_ICON/SPR_COMPANY_ICON/
2009-11-02 16:07:09 +00:00
rubidium
8382b41420
(svn r17954) -Codechange: make the network client list nested
2009-11-02 16:03:17 +00:00
rubidium
27218dff08
(svn r17952) -Codechange: make the network client list popup nested
2009-11-02 15:37:54 +00:00
rubidium
b1f906e819
(svn r17951) -Codechange: simplify making the popup list, remove arbirary limitations and unused code/strings.
2009-11-02 15:27:05 +00:00
rubidium
44013ba889
(svn r17948) -Codechange: remove some magic numbers from the network client list GUIs / use ResizeWindow instead of custom resize code.
2009-11-02 10:52:57 +00:00
rubidium
4a970202a9
(svn r17947) -Codechange: make the statusbar, chat input and news window know of eachothers size so they don't get overlapped and don't get invisible (bottoms) of windows when a larger font is used
2009-11-02 10:15:48 +00:00
rubidium
148d9b8e38
(svn r17946) -Codechange: move the widget definition of the client list closer to the window
2009-11-02 09:58:08 +00:00
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
2009-10-31 19:46:51 +00:00
rubidium
8cb8f81662
(svn r17905) -Codechange: make the network server list window nested (and increase the default size slightly)
2009-10-30 20:42:42 +00:00
rubidium
4fd74e2f94
(svn r17887) -Codechange: remove some (now) unneeded {SKIP}s
2009-10-27 14:46:59 +00:00
rubidium
7b46503dfc
(svn r17886) -Codechange: make the 'start server' window nested
2009-10-27 14:39:37 +00:00
rubidium
62f42f2131
(svn r17885) -Codechange: make the network lobby window nested
2009-10-27 12:43:08 +00:00
rubidium
fc741b3334
(svn r17884) -Codechange: remove (most) magic numbers from drawing the details of the network lobby and split detail drawing to its own function
2009-10-27 12:03:12 +00:00
rubidium
e61008b599
(svn r17882) -Codechange: make the code to draw the details in the server list a seperate function and remove some magic numbers
2009-10-26 22:10:09 +00:00
rubidium
22db089c0d
(svn r17877) -Fix (r1322/r1174/r464): do not hardcode 'Ban' for GUI purposes, i.e. make it translatable
2009-10-26 12:43:27 +00:00
rubidium
fac3655a4c
(svn r17876) -Codechange: make the network company password window nested
2009-10-26 12:24:14 +00:00
rubidium
ca0521f89f
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
2009-10-24 14:53:55 +00:00
rubidium
ecd5c2901d
(svn r17846) -Codechange: make the network content window nested
2009-10-22 16:45:29 +00:00
rubidium
310be2e5be
(svn r17843) -Codechange: move the details drawing code of the content window to a separate function
2009-10-22 14:26:18 +00:00
rubidium
c90885a17e
(svn r17841) -Codechange: move state changes from OnPaint to OnInvalidate for the content gui.
2009-10-22 13:57:39 +00:00
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
2009-10-17 14:29:10 +00:00
rubidium
3bb1f4217d
(svn r17772) -Fix [FS#3264]: CJK languages don't have spaces, so for adding newlines (multi line strings) we need to (properly) handle the case when there are no spaces instead of truncating the string.
2009-10-13 20:19:34 +00:00
smatz
eb72a0095f
(svn r17746) -Codechange: 'operator new' doesn't return NULL, NetworkSend_Init() is useless
2009-10-09 11:03:00 +00:00
rubidium
59ec3dc267
(svn r17743) -Fix: (post 0.7) memory leak in server in case handling a packet caused the connection to be closed. Also force-close the connection on invalid packets.
2009-10-07 21:11:56 +00:00
rubidium
df75db67eb
(svn r17742) -Codechange: remove unused variable from Recv_Packet
2009-10-07 20:58:14 +00:00
rubidium
8c37da1be6
(svn r17741) -Feature-ish [FS#3116]: show the nickname of the person you're PMing
2009-10-07 19:35:05 +00:00
rubidium
58a36f038b
(svn r17737) -Codechange: remove the chat window when you were chatting with someone who lost his/her connection or when you were team chatting and moved out of the company.
2009-10-07 17:36:33 +00:00
smatz
6c7f8fc8b4
(svn r17701) -Codechange: don't start line with a space if it's not inside comment
2009-10-04 20:51:50 +00:00
rubidium
5ff6053326
(svn r17699) -Codechange: move #ifdef ENABLE_NETWORK till after the 'generic' includes so compilation without network support doesn't get broken as easily by changes in header files
2009-10-04 20:00:56 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
smatz
32cbe57178
(svn r17692) -Codechange: minor coding style fixes
2009-10-04 17:10:57 +00:00
rubidium
afed4330da
(svn r17685) -Fix: autounpausing kept trying to unpause a loaded game that was paused due to an error. Just reject such savegames in dedicated servers.
2009-10-03 14:48:12 +00:00
rubidium
c847f5c04e
(svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant.
2009-09-30 21:07:54 +00:00
rubidium
124e543b1d
(svn r17667) -Fix [FS#3245]: autopause tried to (un)pause the server every tick when the pause command only gets processed once every frame_freq ticks. So it would spam the console with duplicate attempts.
2009-09-30 13:32:39 +00:00
rubidium
3f600bba24
(svn r17635) -Codechange: make the chat gui nested
2009-09-25 18:15:41 +00:00
rubidium
b3c5c8cadb
(svn r17618) -Fix [FS#3226]: the 'lock' icon would erroneously be drawn for companies if the company had a password before the reset
2009-09-22 21:14:31 +00:00
rubidium
7d24e84a81
(svn r17617) -Codechange: make the server side packet handling be more like the client side's handling, i.e. return the connection status
...
-Fix: do not do invalid reads when a packet handling function closed a connection
2009-09-22 20:44:14 +00:00
rubidium
01ab1c6001
(svn r17606) -Add: initial support for Haiku; a dedicated server with zlib and libpng compiles and links (for me). Something's fishy with the network so it doesn't actually work (yet)
2009-09-21 18:36:33 +00:00
smatz
114d48e492
(svn r17596) -Codechange: constify some tables
2009-09-20 23:11:01 +00:00
alberth
ceab116065
(svn r17573) -Codechange: NWID_SELECTION containers have a selected widget-plane, and optionally an index in the nested_array.
2009-09-19 11:55:44 +00:00
alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
2009-09-19 11:31:12 +00:00
rubidium
55c0109ee0
(svn r17562) -Fix [FS#2972]: the NewGRF settings of (remote) network games did not get properly updated when the NewGRFs were rescanned causing reading of freed data
2009-09-17 21:14:16 +00:00
frosch
bc8557d5c0
(svn r17539) -Codechange: Replace a magic number.
2009-09-14 20:24:17 +00:00
frosch
2773865cd6
(svn r17538) -Codechange: Rename STR_CONTENT_FILTER_(OSKTITLE|TOOLTIP) for more general usage.
2009-09-14 20:15:29 +00:00
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
2009-09-13 19:15:59 +00:00
rubidium
45e3141444
(svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI
2009-09-13 17:38:07 +00:00
frosch
ba97964af8
(svn r17523) -Fix (r17514): InvalidateWindowClasses() only does SetDirty(), which is no longer enough.
2009-09-13 16:43:16 +00:00
frosch
0c8c208569
(svn r17522) -Fix: Scroll to selected content after sorting the list and after updating the scrollbar maximum.
2009-09-13 14:50:52 +00:00
rubidium
bd9670ea47
(svn r17467) -Change: show the client id in join messages at the server (patch by dihedral)
2009-09-07 21:28:16 +00:00
rubidium
59ac4f6b21
(svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers
2009-09-02 08:08:30 +00:00
glx
8a367f1ff4
(svn r17350) -Fix (r17336): broken compilation with mingw
2009-09-01 14:20:35 +00:00
rubidium
07d2af338e
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
2009-09-01 10:07:22 +00:00
rubidium
984efae368
(svn r17291) -Fix [FS#3147]: crash after upgrading base graphics/sound set when opening the game options menu and you were using the upgraded set
2009-08-26 20:26:40 +00:00
rubidium
aca7ba714a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
2009-08-23 19:03:09 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
60a3bc9034
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
2009-08-21 20:15:17 +00:00
rubidium
865fc40e29
(svn r17245) -Fix [FS#3137] (r17015): you could, via unselect all, also unselect already installed content; it would not uninstall it though
2009-08-21 08:41:54 +00:00
smatz
2d3ddab7ca
(svn r17169) -Codechange: apply coding style to some for statements
2009-08-14 17:14:04 +00:00
smatz
c5533ae470
(svn r17168) -Codechange: apply coding style to if and while statements
2009-08-14 17:11:59 +00:00
rubidium
9ee2a66c86
(svn r17139) -Change: add the concept of sound sets
2009-08-09 19:50:44 +00:00
rubidium
f118932643
(svn r17133) -Codechange: generalise the code that searches for base graphics
2009-08-09 16:54:03 +00:00
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
2009-08-05 17:59:21 +00:00
rubidium
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
2009-08-04 18:04:33 +00:00
rubidium
95c204ebee
(svn r17038) -Fix (r17015): don't download the stuff we already have
2009-08-02 13:58:11 +00:00
rubidium
ae71df349e
(svn r17015) -Fix [FS#3075]: infinite recursion in content dependency checking
2009-07-31 23:54:43 +00:00
rubidium
63c29124de
(svn r16981) -Fix [FS#3062]: the last manually added server would not be saved
2009-07-29 16:45:51 +00:00
rubidium
e9bc557b2a
(svn r16930) -Codechange: more StringID name unification and grouping
2009-07-23 19:31:50 +00:00
rubidium
e3053660c6
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
2009-07-20 11:21:57 +00:00
rubidium
b4253a94f2
(svn r16846) -Codechange: make the content download status window only use nested widgets
2009-07-16 16:48:16 +00:00
alberth
d0a47fc1b4
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
2009-07-16 16:22:23 +00:00
rubidium
594070194f
(svn r16842) -Cleanup: add some spaces around a few operators
2009-07-16 10:13:33 +00:00
rubidium
ab67cf0031
(svn r16732) -Fix [FS#2991]: show Close instead of Cancel when there's nothing to canel in the content downloading window.
2009-07-03 21:08:18 +00:00
smatz
22cf8d8480
(svn r16634) -Codechange: use Company::IsHumanID() instead of IsHumanCompany()
2009-06-23 12:11:35 +00:00
rubidium
9b156c1bd4
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
2009-06-19 20:26:18 +00:00
rubidium
904d2bc458
(svn r16594) -Fix [FS#2969]: mouse would under some circumstances not be undrawn when drawing the first chat line causing two mouse pointers to be visible.
2009-06-18 17:16:29 +00:00
rubidium
a497e3ff4a
(svn r16592) -Fix [FS#2880]: 'connection lost' was also shown when the client was 'leaving'.
2009-06-18 15:05:45 +00:00
rubidium
4cd94e17a1
(svn r16574) -Codechange: reorder stuff in NetworkGameInfo so compilers waste less bytes aligning stuff and fix the comment of the structs.
2009-06-13 22:48:41 +00:00
rubidium
f8bccce555
(svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file.
2009-06-13 12:06:31 +00:00
smatz
bea3fe2b8b
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
2009-06-10 22:05:01 +00:00
smatz
35635c6248
(svn r16555) -Feature [FS#570]: ability to enter server and company password via command line when joining a server (based on patch by Progman, Ammler and planetmaker)
2009-06-10 19:00:34 +00:00
smatz
2b4d37de3d
(svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit
2009-06-02 19:56:23 +00:00
rubidium
765c65b738
(svn r16493) -Fix: missing/wrong @file doxygen 'headers'
2009-06-01 12:56:18 +00:00
alberth
bab70a823d
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
2009-06-01 11:43:36 +00:00
rubidium
bacbafe510
(svn r16437) -Codechange: remove the hack that for CMD_COMPANY_CTRL the company was changed from spectator to company 0 in the network code.
2009-05-26 21:25:24 +00:00
rubidium
168ae6f7e2
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
2009-05-24 21:09:00 +00:00
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
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
2009-04-08 21:16:24 +00:00
rubidium
0f0cc67d62
(svn r15990) -Codechange: provide a thread safe variant of GetAddressAsString.
2009-04-08 21:11:16 +00:00
rubidium
e779c56e31
(svn r15989) -Fix (r15987: segfault due to uninitialised sockets.
2009-04-08 21:03:00 +00:00
rubidium
1d4318c0d1
(svn r15988) -Fix: inconsistency between using NETWORK_NAME_LENGTH and NETWORK_CLIENT_NAME_LENGTH for the length of client names.
2009-04-08 19:39:03 +00:00
rubidium
08e37a6f10
(svn r15987) -Fix: make the master socket only listen on the IP the server is bound to.
2009-04-08 19:36:51 +00:00
rubidium
080095ade5
(svn r15984) -Codechange: prepare the UDP receiver to process multiple types of returned server lists.
2009-04-08 17:51:04 +00:00
rubidium
cd8da0d69e
(svn r15982) -Codechange: use GetAddressAsString to get the name instead of passing the hostname and the IP into a string.
2009-04-08 12:52:53 +00:00
rubidium
9d6edae94d
(svn r15981) -Fix: don't print the address family when writing the IP+port to the config file.
2009-04-08 12:09:07 +00:00
rubidium
18146572b0
(svn r15980) -Codechange: don't try to bind to the same socket twice; it's quite pointless.
2009-04-08 11:57:00 +00:00
rubidium
c2152fa31f
(svn r15979) -Codechange: tweak the debug/warning levels of some of the messages when binding
2009-04-08 01:23:44 +00:00
rubidium
a5a424ce28
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
2009-04-08 01:22:57 +00:00
rubidium
20e82c46d3
(svn r15976) -Codechange: make it a bit more clear for what (type of) address binding fails
2009-04-08 00:41:35 +00:00
rubidium
1eb4aa971e
(svn r15975) -Codechange: register each of the IPs we have bound to to the masterserver
2009-04-08 00:26:49 +00:00
glx
d466fa9672
(svn r15974) -Fix (r15969): win32 compilation was broken (again)
2009-04-08 00:10:20 +00:00
rubidium
8cf88876ef
(svn r15973) -Codechange: make it possible to listen on multiple TCP sockets
2009-04-08 00:05:16 +00:00
rubidium
c0f8214218
(svn r15972) -Codechange: remove unneeded parameter
2009-04-08 00:03:05 +00:00
rubidium
2a6e9288fd
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
2009-04-07 20:27:13 +00:00
rubidium
6db7f15b3a
(svn r15970) -Codechange: make it possible to resolve a single address into multiple sockets.
2009-04-07 19:52:01 +00:00
rubidium
82f8badc07
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
2009-04-07 19:06:36 +00:00
rubidium
fdddfd6269
(svn r15968) -Codechange: do not allocate a buffer for NetworkAddresses so passing it around is easier.
2009-04-07 19:04:37 +00:00
rubidium
22d9306889
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
2009-04-07 18:23:14 +00:00
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.
2009-04-05 19:43:41 +00:00
rubidium
edfc2e536e
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
2009-04-04 13:09:36 +00:00
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.
2009-04-04 08:48:12 +00:00
glx
5eed35ef54
(svn r15950) -Fix (r15946): mingw compilation
2009-04-04 03:45:02 +00:00
rubidium
a779611665
(svn r15948) -Fix: resolve network addresses before comparing them
2009-04-04 01:51:32 +00:00
rubidium
c9ebf14ba5
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
2009-04-04 00:48:48 +00:00
rubidium
2fd9f0fffa
(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
2009-04-04 00:47:08 +00:00
glx
e460d3f4d0
(svn r15945) -Fix (r15944): win32 compilation
2009-04-03 23:44:31 +00:00
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
2009-04-03 21:46:52 +00:00
rubidium
ce06df313d
(svn r15941) -Codechange: jonty-comp's wish partly implemented (content server) ;)
2009-04-03 17:20:57 +00:00
rubidium
1463b00b48
(svn r15940) -Codechange: move setting reuse address to the binding process.
2009-04-03 17:02:29 +00:00
glx
2dafb9dd57
(svn r15938) -Fix: broadcast addresses detection was broken for win32
2009-04-03 16:22:34 +00:00
rubidium
e05e1822d6
(svn r15935) -Codechange: function to compare IP addresses (to sort them)
2009-04-03 15:42:41 +00:00
rubidium
2bfc9ca50c
(svn r15934) -Fix: work around Solaris' inability to "parse" 0 as defined in the specifications.
2009-04-03 15:24:39 +00:00
glx
65d10e66f0
(svn r15933) -Fix (r15920): mingw doesn't know getaddrinfo() and freeaddrinfo() either
2009-04-03 14:01:45 +00:00
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.
2009-04-03 12:54:38 +00:00
rubidium
89d0eca6b7
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
2009-04-03 12:49:58 +00:00
glx
d84fb358f5
(svn r15930) -Fix (r15926): MSVC compilation
2009-04-03 12:48:11 +00:00
rubidium
11723c40b2
(svn r15926) -Codechange: make the broadcast IP list less AF dependent.
2009-04-03 11:02:41 +00:00
rubidium
47602d7b60
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
2009-04-03 10:29:56 +00:00
rubidium
dccfba6e20
(svn r15924) -Codechange: replace NetworkResolveHost with something less AF dependant.
2009-04-03 09:07:16 +00:00
rubidium
632d74c6b1
(svn r15922) -Codechange: unify the ways to listen on a socket
2009-04-03 01:24:52 +00:00
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
2009-04-03 00:33:00 +00:00
rubidium
c7b6469dab
(svn r15920) -Codechange: make the (TCP) connecting less AF dependent.
2009-04-02 23:59:43 +00:00
glx
521bf687ee
(svn r15919) -Fix (r15916): mingw doesn't know getnameinfo() (unless you compile for XP SP2+). Also fix a MSVC warning.
2009-04-02 23:22:59 +00:00
rubidium
beef5da970
(svn r15918) -Fix (r15917): comparing IPs sometimes failed due to 'random' data (as spotted by SpComb)
2009-04-02 23:03:18 +00:00
rubidium
c5160c7c8e
(svn r15917) -Codechange: remove the latest traces of NetworkAddress::GetIP.
2009-04-02 20:39:30 +00:00
rubidium
1e205e01b8
(svn r15916) -Codechange: let the network game list use NetworkAddress
2009-04-02 20:17:46 +00:00
rubidium
c0c6e07081
(svn r15915) -Codechange: let the udp code use NetworkAddress.
2009-04-02 19:21:26 +00:00
rubidium
804370d964
(svn r15914) -Codechange: let the content handling make use of NetworkAddress.
2009-04-02 18:35:59 +00:00
rubidium
d3fa15e620
(svn r15905) -Fix (r15424): chat completion got called twice causing tab completion to seemingly fail
2009-03-31 00:57:21 +00:00
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
2009-03-29 09:49:11 +00:00
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.
2009-03-25 16:30:33 +00:00
yexo
b61a681f02
(svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN.
2009-03-23 00:08:59 +00:00
rubidium
e25b2f5d60
(svn r15822) -Codechange: replace some magic numbers and improve alignment of the start server window.
2009-03-22 23:38:29 +00:00
alberth
6567a29e18
(svn r15820) -Codechange: Some windows using nested widgets
2009-03-22 21:16:57 +00:00
rubidium
9038733f1a
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
2009-03-22 14:39:20 +00:00
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
2009-03-22 12:01:21 +00:00
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
2009-03-22 09:34:06 +00:00
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
2009-03-21 23:45:34 +00:00
rubidium
f11300d1f9
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
2009-03-21 22:46:17 +00:00
rubidium
69decac406
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
2009-03-21 22:22:00 +00:00
rubidium
9003641095
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
2009-03-21 22:00:00 +00:00
rubidium
fd0f0bda72
(svn r15788) -Codechange: enumify the network join status widgets and use them.
2009-03-21 21:26:10 +00:00
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
2009-03-21 20:12:12 +00:00
glx
9fcff01850
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
2009-03-21 20:06:00 +00:00
rubidium
8a758beec3
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
2009-03-21 19:10:26 +00:00
rubidium
ee4a660b0c
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
2009-03-19 23:32:39 +00:00
rubidium
f5cb1873d6
(svn r15766) -Fix [FS#2744]: Crash when opening the content list window twice; inconsistencies when clicking download twice.
2009-03-19 17:56:45 +00:00
smatz
8585aa71ed
(svn r15726) -Codechange: unify coding style for const pointers
2009-03-15 16:04:39 +00:00
rubidium
4f8eeca437
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth)
2009-03-15 15:22:09 +00:00
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
2009-03-15 15:12:06 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
2009-03-14 18:16:29 +00:00
rubidium
27bcfd115b
(svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows.
2009-03-13 21:32:38 +00:00
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.
2009-03-11 09:21:11 +00:00
rubidium
4a5c4f6089
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
2009-03-08 16:14:14 +00:00
smatz
642dc1ea5e
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
2009-03-07 22:40:47 +00:00
rubidium
406832fed8
(svn r15632) -Feature: allow downloading scenarios and heightmaps via bananas.
2009-03-06 19:33:45 +00:00
smatz
f3ed8268b6
(svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server
2009-03-06 12:42:01 +00:00
rubidium
86ca408d46
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
2009-03-06 01:23:25 +00:00
rubidium
908e850b5a
(svn r15605) -Codechange: constify a function
2009-03-04 00:13:52 +00:00
rubidium
3ae9851bd8
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
2009-02-25 17:00:59 +00:00
rubidium
66a8c0a132
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
2009-02-25 00:48:04 +00:00
yexo
3bb872e7dd
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
2009-02-25 00:45:52 +00:00
yexo
901230bde1
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
2009-02-25 00:14:46 +00:00
smatz
846044ee26
(svn r15571) -Fix: incorrect use of memset
2009-02-24 22:25:23 +00:00
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.
2009-02-24 13:32:18 +00:00