rubidium
ae115cda83
(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.
15 years ago
rubidium
e1e9b68b54
(svn r17635) -Codechange: make the chat gui nested
15 years ago
rubidium
99235a0d30
(svn r17618) -Fix [FS#3226]: the 'lock' icon would erroneously be drawn for companies if the company had a password before the reset
15 years ago
rubidium
d1032d69c8
(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
15 years ago
rubidium
d579a9366a
(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)
15 years ago
smatz
f85b8c4e09
(svn r17596) -Codechange: constify some tables
15 years ago
alberth
4ff755ac90
(svn r17573) -Codechange: NWID_SELECTION containers have a selected widget-plane, and optionally an index in the nested_array.
15 years ago
alberth
d54028fde8
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
rubidium
d9519fdf64
(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
15 years ago
frosch
c192bbe800
(svn r17539) -Codechange: Replace a magic number.
15 years ago
frosch
804b40b48c
(svn r17538) -Codechange: Rename STR_CONTENT_FILTER_(OSKTITLE|TOOLTIP) for more general usage.
15 years ago
frosch
0e36260337
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
fd04d4ed00
(svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI
15 years ago
frosch
b3fd812eee
(svn r17523) -Fix (r17514): InvalidateWindowClasses() only does SetDirty(), which is no longer enough.
15 years ago
frosch
3511a6a7c4
(svn r17522) -Fix: Scroll to selected content after sorting the list and after updating the scrollbar maximum.
15 years ago
rubidium
0153e7a211
(svn r17467) -Change: show the client id in join messages at the server (patch by dihedral)
15 years ago
rubidium
6d72ae033a
(svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers
15 years ago
glx
cf2d2cb4b6
(svn r17350) -Fix (r17336): broken compilation with mingw
15 years ago
rubidium
533e3da493
(svn r17339) -Codechange: move thread related files to their own directory (like done for video, music, sound, etc)
15 years ago
rubidium
3af095aa19
(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
15 years ago
rubidium
d4a98be94a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
be9033295e
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
79844fd27f
(svn r17245) -Fix [FS#3137] (r17015): you could, via unselect all, also unselect already installed content; it would not uninstall it though
15 years ago
smatz
b8bd45ba4f
(svn r17169) -Codechange: apply coding style to some for statements
15 years ago
smatz
d64bdb138c
(svn r17168) -Codechange: apply coding style to if and while statements
15 years ago
rubidium
93493827b6
(svn r17139) -Change: add the concept of sound sets
15 years ago
rubidium
cdb969e164
(svn r17133) -Codechange: generalise the code that searches for base graphics
15 years ago
rubidium
d61be2637e
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
5bb7b8ad35
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
5b315dacf2
(svn r17038) -Fix (r17015): don't download the stuff we already have
15 years ago
rubidium
ede3aee313
(svn r17015) -Fix [FS#3075]: infinite recursion in content dependency checking
15 years ago
rubidium
871f3ec803
(svn r16981) -Fix [FS#3062]: the last manually added server would not be saved
15 years ago
rubidium
4874578e79
(svn r16930) -Codechange: more StringID name unification and grouping
15 years ago
rubidium
39e6dbd5e3
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
rubidium
98b6faa2f6
(svn r16846) -Codechange: make the content download status window only use nested widgets
15 years ago
alberth
fe9f5cbc46
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
rubidium
34570f4e93
(svn r16842) -Cleanup: add some spaces around a few operators
15 years ago
rubidium
677b2d07bd
(svn r16732) -Fix [FS#2991]: show Close instead of Cancel when there's nothing to canel in the content downloading window.
15 years ago
smatz
54cbd17bd8
(svn r16634) -Codechange: use Company::IsHumanID() instead of IsHumanCompany()
16 years ago
rubidium
71c7064ad6
(svn r16601) -Fix [FS#2880]: try 2... hopefully better this time
16 years ago
rubidium
c011ea92f2
(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.
16 years ago
rubidium
8f74c85d74
(svn r16592) -Fix [FS#2880]: 'connection lost' was also shown when the client was 'leaving'.
16 years ago
rubidium
f1840d084b
(svn r16574) -Codechange: reorder stuff in NetworkGameInfo so compilers waste less bytes aligning stuff and fix the comment of the structs.
16 years ago
rubidium
8b8920533b
(svn r16573) -Fix: [Network] Always send the starting date from the game you're currently playing instead the starting date from the config file.
16 years ago
smatz
a2567c84a0
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
16 years ago
smatz
7d4d3850cb
(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)
16 years ago
smatz
f74b597c83
(svn r16506) -Fix: count only active clients (not those waiting for map download) when checking min_active_clients limit
16 years ago
rubidium
f163217dbb
(svn r16493) -Fix: missing/wrong @file doxygen 'headers'
16 years ago
alberth
580e478e4e
(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
16 years ago
rubidium
78c726d2b1
(svn r16437) -Codechange: remove the hack that for CMD_COMPANY_CTRL the company was changed from spectator to company 0 in the network code.
16 years ago
rubidium
2832d69272
(svn r16422) -Codechange: use const_cast for removing const and warn when const is (accidentally?) removed using C-style casts.
16 years ago
smatz
3793b966c3
(svn r16380) -Codechange: rename pool.hpp to pool_type.hpp
16 years ago
smatz
d6e203ebe2
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
16 years ago
smatz
50624d5c0f
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
7eb14aa49f
(svn r16377) -Codechange: unify FOR_ALL_* macros, use separate index variable instead of var->index
16 years ago
rubidium
1daa10520c
(svn r16361) -Fix: pointer incremented with wrong count
16 years ago
rubidium
789999ecf3
(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
512db5248e
(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get()
16 years ago
rubidium
f1955333c9
(svn r16332) -Codechange: replace some -1 + 1 with 'nothing' or <= .. - 1 with < .. - 1 (both caused due to wrapper functions)
16 years ago
smatz
0c10daa243
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
16 years ago
smatz
cf986c3099
(svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize()
16 years ago
smatz
d495dc5dbc
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
rubidium
043c3c8b06
(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
d87206b6f7
(svn r16288) -Fix (r16237): crash after clicking in the ClientList window
16 years ago
smatz
ce7dff4acc
(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
e5529d8995
(svn r16265) -Fix (r16238): wrong format string for debug output
16 years ago
alberth
9e99cbf93d
(svn r16255) -Fix [FS#2887] (r16237): Nested widgets of client list window used incorrect length.
16 years ago
frosch
d84faa8209
(svn r16254) -Fix [FS#2886]: Magic constant removed.
16 years ago
rubidium
31b9cd6d03
(svn r16250) -Fix (r16242): do not try to unpause when paused for a joining company
16 years ago
rubidium
241af768f0
(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
dd0b93532a
(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
4c703618ff
(svn r16237) -Codechange: Add nested widgets to remaining network windows.
16 years ago
alberth
c6be093c89
(svn r16236) -Codechange: Make widget enums complete of various network windows, and add them as comment.
16 years ago
alberth
2b78839ac9
(svn r16235) -Codechange (r16234): But keep the window description.
16 years ago
alberth
40a2e0d2a3
(svn r16234) -Codechange (r16231, r16233): Do not add test functions to trunk.
16 years ago
alberth
a67052199f
(svn r16233) -Codechange: Added nested widgets to network content windows.
16 years ago
alberth
eab14e1e1c
(svn r16232) -Codechange: Moving network content widgets enums outside window structs.
16 years ago
alberth
b6f4126cf2
(svn r16231) -Codechange: Added nested widgets to chat window.
16 years ago
alberth
709acb38ed
(svn r16230) -Codechange: Moving chat widgets enum outside window struct.
16 years ago
yexo
965b8196fb
(svn r16176) -Fix: forbid joining AI companies via the 'move' and 'join' console commands.
16 years ago
yexo
f6070e2261
(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
156d45505d
(svn r16163) -Codechange: instead of SetDParamStr(0, string); DrawString(..., STR_JUST_RAW_STRING, ...) use DrawString(..., string, ...).
16 years ago
rubidium
3bd4eeb178
(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
dd2661bbbd
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
16 years ago
rubidium
6c3fa9b487
(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
c530ca27bb
(svn r16134) -Change: do not add duplicates to the broadcast list
16 years ago
rubidium
5c5b357043
(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
d3de980714
(svn r16071) -Fix [FS#2845]: content download progress bar 'resetting' due to mathematical overflow.
16 years ago
rubidium
b34eb75c11
(svn r16065) -Fix: don't readd (and resolve) the last joined server each time the window gets repainted
16 years ago
rubidium
8ad5729e9c
(svn r16064) -Fix: memory leak when querying a server multiple times.
16 years ago
glx
388dc27474
(svn r16050) -Fix (r15933): little typo causing OTTDfreeaddrinfo to use the fallback even when freeaddrinfo is available
16 years ago
rubidium
b78820a361
(svn r16034) -Fix: compile warnings generated by 64 bits MSVC.
16 years ago
peter1138
f492281b9d
(svn r16026) -Codechange: Use font height for chat line spacing instead of fixed value.
16 years ago
rubidium
a46de87b03
(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
8cd7def31c
(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
7ae8228ed3
(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
c71e59263d
(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
04b174687b
(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
fe42ae8ad4
(svn r16000) -Feature: IPv6 support
16 years ago
rubidium
b0113af67c
(svn r15998) -Codechange: some coding style updates
16 years ago
rubidium
be53295ee8
(svn r15993) -Codechange: clean up/generalise the handling of the server list
16 years ago
rubidium
e321f5637f
(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
19b50f8ed8
(svn r15990) -Codechange: provide a thread safe variant of GetAddressAsString.
16 years ago
rubidium
6c6fb6a927
(svn r15989) -Fix (r15987: segfault due to uninitialised sockets.
16 years ago
rubidium
0630f0db4f
(svn r15988) -Fix: inconsistency between using NETWORK_NAME_LENGTH and NETWORK_CLIENT_NAME_LENGTH for the length of client names.
16 years ago
rubidium
f5339e492a
(svn r15987) -Fix: make the master socket only listen on the IP the server is bound to.
16 years ago
rubidium
10ccad9d3d
(svn r15984) -Codechange: prepare the UDP receiver to process multiple types of returned server lists.
16 years ago
rubidium
1cd5ac75ff
(svn r15982) -Codechange: use GetAddressAsString to get the name instead of passing the hostname and the IP into a string.
16 years ago
rubidium
f9f61dc208
(svn r15981) -Fix: don't print the address family when writing the IP+port to the config file.
16 years ago
rubidium
5a6198092d
(svn r15980) -Codechange: don't try to bind to the same socket twice; it's quite pointless.
16 years ago
rubidium
edf4ab97e1
(svn r15979) -Codechange: tweak the debug/warning levels of some of the messages when binding
16 years ago
rubidium
ac043bc7e8
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
16 years ago
rubidium
632a263f8a
(svn r15976) -Codechange: make it a bit more clear for what (type of) address binding fails
16 years ago
rubidium
b9864e9988
(svn r15975) -Codechange: register each of the IPs we have bound to to the masterserver
16 years ago
glx
da49105b9e
(svn r15974) -Fix (r15969): win32 compilation was broken (again)
16 years ago
rubidium
a2c5cf906c
(svn r15973) -Codechange: make it possible to listen on multiple TCP sockets
16 years ago
rubidium
bc072884b0
(svn r15972) -Codechange: remove unneeded parameter
16 years ago
rubidium
e1a7fad295
(svn r15971) -Codechange: make it possible for UDP socket handlers to bind to multiple sockets.
16 years ago
rubidium
e3d183f3dd
(svn r15970) -Codechange: make it possible to resolve a single address into multiple sockets.
16 years ago
rubidium
f6e27e7274
(svn r15969) -Codechange: make the list of broadcast addresses virtually unlimited.
16 years ago
rubidium
d66827b289
(svn r15968) -Codechange: do not allocate a buffer for NetworkAddresses so passing it around is easier.
16 years ago
rubidium
a25684b833
(svn r15967) -Codechange: do not access NetworkSocketHandler::has_quit directly
16 years ago
rubidium
22ab962baf
(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
3e6d3ff9a2
(svn r15954) -Fix: comparing addresses kinda fails (sometimes) causing duplicates in the game list
16 years ago
rubidium
3ce836c4af
(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
d5e4f8152f
(svn r15950) -Fix (r15946): mingw compilation
16 years ago
rubidium
2f220d09bb
(svn r15948) -Fix: resolve network addresses before comparing them
16 years ago
rubidium
a76218eab9
(svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address.
16 years ago
rubidium
a5576bc6e1
(svn r15946) -Codechange: move netmask matching to NetworkAddress and add some support for IPv6 netmask matching.
16 years ago
glx
a1b6c34623
(svn r15945) -Fix (r15944): win32 compilation
16 years ago
rubidium
1a0249f9d8
(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
c3af69eb9d
(svn r15941) -Codechange: jonty-comp's wish partly implemented (content server) ;)
16 years ago
rubidium
e8852635ab
(svn r15940) -Codechange: move setting reuse address to the binding process.
16 years ago
glx
d3db002a4f
(svn r15938) -Fix: broadcast addresses detection was broken for win32
16 years ago
rubidium
cda1cb02ed
(svn r15935) -Codechange: function to compare IP addresses (to sort them)
16 years ago
rubidium
627163b785
(svn r15934) -Fix: work around Solaris' inability to "parse" 0 as defined in the specifications.
16 years ago
glx
cfac582c36
(svn r15933) -Fix (r15920): mingw doesn't know getaddrinfo() and freeaddrinfo() either
16 years ago
rubidium
2d140fab62
(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
bc7a870a61
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
glx
825aa87e80
(svn r15930) -Fix (r15926): MSVC compilation
16 years ago
rubidium
2b7a30f209
(svn r15926) -Codechange: make the broadcast IP list less AF dependent.
16 years ago
rubidium
be8919c968
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
16 years ago
rubidium
197eff1fa9
(svn r15924) -Codechange: replace NetworkResolveHost with something less AF dependant.
16 years ago
rubidium
3e6c6d7294
(svn r15922) -Codechange: unify the ways to listen on a socket
16 years ago
rubidium
020b1f9328
(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
34f9223f6a
(svn r15920) -Codechange: make the (TCP) connecting less AF dependent.
16 years ago
glx
c56767317f
(svn r15919) -Fix (r15916): mingw doesn't know getnameinfo() (unless you compile for XP SP2+). Also fix a MSVC warning.
16 years ago
rubidium
6664998667
(svn r15918) -Fix (r15917): comparing IPs sometimes failed due to 'random' data (as spotted by SpComb)
16 years ago
rubidium
f22566f8df
(svn r15917) -Codechange: remove the latest traces of NetworkAddress::GetIP.
16 years ago
rubidium
785779ca62
(svn r15916) -Codechange: let the network game list use NetworkAddress
16 years ago
rubidium
bdf3611d02
(svn r15915) -Codechange: let the udp code use NetworkAddress.
16 years ago
rubidium
822ff14d73
(svn r15914) -Codechange: let the content handling make use of NetworkAddress.
16 years ago
rubidium
9050f35f8f
(svn r15905) -Fix (r15424): chat completion got called twice causing tab completion to seemingly fail
16 years ago
alberth
bbd546b792
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
peter1138
3b748ec62f
(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
d8a0e59b9d
(svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN.
16 years ago
rubidium
0e96b7b7c0
(svn r15822) -Codechange: replace some magic numbers and improve alignment of the start server window.
16 years ago
alberth
8f5f39cf09
(svn r15820) -Codechange: Some windows using nested widgets
16 years ago
rubidium
2e38d7c332
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
16 years ago
rubidium
12f1abbce0
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
16 years ago
rubidium
31a5457c03
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
16 years ago
rubidium
dcd5ad8b19
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
a1088869f5
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
16 years ago
rubidium
2a422e3e95
(svn r15791) -Codechange: remove the *RightAligned part of the old text drawing API.
16 years ago
rubidium
89d614deea
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
16 years ago
rubidium
2f1bfe3813
(svn r15788) -Codechange: enumify the network join status widgets and use them.
16 years ago
rubidium
c1aabd9842
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
glx
583c756679
(svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows
16 years ago
rubidium
b3b4be2dde
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
16 years ago
rubidium
f524d39963
(svn r15773) -Fix [FS#2475]: number of active clients wasn't always properly
16 years ago
rubidium
485961b260
(svn r15766) -Fix [FS#2744]: Crash when opening the content list window twice; inconsistencies when clicking download twice.
16 years ago
smatz
e0fe28fdc9
(svn r15726) -Codechange: unify coding style for const pointers
16 years ago
rubidium
57c5ce84eb
(svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth)
16 years ago
rubidium
7f468dc142
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
16 years ago
rubidium
f3e0fd7416
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
0bb1fd18ad
(svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows.
16 years ago
yexo
fbe159ab9e
(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
880d296b25
(svn r15644) -Fix [FS#2710]: closing a network connection twice in the case that sending packets starts failing while disconnecting
16 years ago
smatz
19c01ee0ec
(svn r15640) -Fix [FS#2712]: game crashes when network pools are empty, so always allocate at least one pool block
16 years ago
rubidium
d5762a5069
(svn r15632) -Feature: allow downloading scenarios and heightmaps via bananas.
16 years ago
smatz
154b4da4cc
(svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server
16 years ago
rubidium
34bd9ee636
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
16 years ago
rubidium
9e3449ecc9
(svn r15605) -Codechange: constify a function
16 years ago
rubidium
0d12c46b5e
(svn r15580) -Fix [FS#2684]: last activity time not properly updated causing downloads to be aborted after a minute.
16 years ago
rubidium
b2def94607
(svn r15577) -Codechange: bool _networking belongs in network/ not gfx.cpp
16 years ago
yexo
7e818f0456
(svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum.
16 years ago
yexo
bd2544b5ea
(svn r15575) -Codechange: Rename GameModes to GameMode and store _game_mode as GameMode instead of as byte.
16 years ago
smatz
3707a11e5e
(svn r15571) -Fix: incorrect use of memset
16 years ago
rubidium
926b721cc2
(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
39b6a2a507
(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
5c127d51b8
(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
fcdeb5c522
(svn r15544) -Fix [FS#2650]: extracting downloaded content didn't work for Windows if one uses a non-ASCII.
16 years ago
rubidium
e3ac127617
(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
426857bc72
(svn r15442) -Codechange: don't do magic on magic numbers when you can also use a single named constant.
16 years ago
peter1138
545804b67a
(svn r15433) -Fix (r15126): Content download progress bar was not centered properly.
16 years ago
rubidium
89e1afdaa0
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
a7693c6059
(svn r15425) -Codechange: some color->colour changes and type safety.
16 years ago
rubidium
5080feba0d
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
rubidium
283b3d16ab
(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
6ad9fcc6ec
(svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server.
16 years ago
rubidium
9f1a20a2be
(svn r15377) -Fix [FS#2607]: filter did resort when unneeded and didn't deselect properly in some cases (Roujin)
16 years ago
rubidium
cd0edc9201
(svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed.
16 years ago
rubidium
a3da2d5145
(svn r15372) -Feature: filter the 'content' based on the tag/name. Based on a patch by Roujin.
16 years ago
rubidium
42fe0b65d2
(svn r15338) -Fix [FS#2598]: close all construction related windows whenever changing company.
16 years ago
peter1138
bce50498fc
(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
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
bf45d44c3c
(svn r15247) -Change: show a lock near the password/join button in the company window whenever the company is password protected
16 years ago
rubidium
2722cabcce
(svn r15242) -Feature: allow moving clients between companies/spectators by the server and the clients themselves (dihedral)
16 years ago
Yexo
9fc9697929
(svn r15234) -Fix (r15176): Crash if you pressed space in the content download window before selecting an item.
16 years ago
rubidium
75055f011d
(svn r15221) -Change [FS#2574]: only show missing NewGRFs when opening the content download window from a NewGRF list and there are missing NewGRFs, otherwise show just all NewGRFs the system knows.
16 years ago
rubidium
fc5022d76e
(svn r15217) -Fix [FS#2573] (r15176): more corner cases when removing things from iterated vectors
16 years ago
rubidium
80e59f375f
(svn r15215) -Fix: various MSVC x64 compiler warnings
16 years ago
rubidium
2f282380ef
(svn r15207) -Add: sorting to the content list.
16 years ago
rubidium
bf47489d58
(svn r15206) -Fix [FS#2567]: memory corruption due to not properly cleanup up the mess when cancelling a download
16 years ago
rubidium
840217d717
(svn r15200) -Feature: give server admins a tool to combat profanity in nick names (based on patch by dihedral)
16 years ago
rubidium
3849dfce55
(svn r15196) -Fix (r15195): != != == :(
16 years ago
rubidium
40b7769723
(svn r15195) -Fix: don't crash when removing from something you're iterating over
16 years ago
peter1138
00aa88040e
(svn r15194) -Fix: Don't count dedicated server as a spectator
16 years ago
rubidium
fd7063530c
(svn r15178) -Change: rename 'update' to 'upgrade' as that's a bit more clear
16 years ago
rubidium
7c5a618639
(svn r15176) -Fix [FS#2554]: querying the content server could free when resolving the hostname or connecting takes long/is timing out.
16 years ago
rubidium
206841ba5f
(svn r15163) -Change/Fix: use a non-blocking method to resolve the hostname and connect to game servers.
16 years ago
rubidium
12ff4cf083
(svn r15162) -Fix: the join status window didn't get properly created
16 years ago
rubidium
ad43d72a3e
(svn r15161) -Change: bump url to 96 bytes
16 years ago
glx
62ec25a8ff
(svn r15160) -Fix (r15157): port != IP
16 years ago
rubidium
82e98c2188
(svn r15159) -Fix: move the UDP queries that resolve a hostname into threads so they don't freeze OpenTTD when for example the network connection got severed. Thanks to glx for writing the mutex implementation for Windows.
16 years ago
rubidium
4aabc91c04
(svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again.
16 years ago
rubidium
7a81c0e5b4
(svn r15155) -Codechange: remove unused return value
16 years ago
rubidium
32e46fc067
(svn r15154) -Fix [FS#2555] (r15126): wrong tooltip for the matrix
16 years ago
rubidium
127d80d3f5
(svn r15153) -Fix (r15126): the scrollbar's "count" wasn't always correctly set
16 years ago
rubidium
730ceecb8b
(svn r15136) -Fix (r15126): (file) name could occasionally be wider than the download window causing glitches.
16 years ago
rubidium
1bc8e3f536
(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
16 years ago
rubidium
2ce42873d1
(svn r15134) -Fix (r15126): not selecting dependencies when pressing "select update"
16 years ago
rubidium
72b0341ed0
(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
16 years ago
rubidium
eff693d2e9
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
16 years ago
peter1138
31a586dc6f
(svn r15094) -Feature: Add support for IP range bans using CIDR notation.
16 years ago
rubidium
850a2735cc
(svn r15079) -Codechange: split tcp 'backend' and in-game handling like it is for UDP.
16 years ago
rubidium
737c187f79
(svn r15053) -Cleanup: remove some unneeded includes
16 years ago
rubidium
01e92ac32a
(svn r15052) -Codechange: move the implementation of Send_CompanyInformation to network_server.cpp as the server's the one that sends that information
16 years ago
truebrain
c2406cd42d
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
c0e7434f38
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
rubidium
054787f082
(svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces
16 years ago
belugas
f0033f8003
(svn r14927) -Codechange: constify widget numbers in network chat gui.
16 years ago
rubidium
78c43297e2
(svn r14916) -Codechange: make it possible to send CommandContainers directly to DoCommand(P).
16 years ago
rubidium
0e1127e8b5
(svn r14915) -Codechange: unify the receiving and sending of commands, and thus unifying most of the validity checking too.
16 years ago
belugas
da7da4c1c8
(svn r14914) -Documentation: Correct doxygen comment for file name. <nitpicked> by Swallow
16 years ago
rubidium
4df86694a7
(svn r14910) -Codechange: merge the command queue handling into a single location
16 years ago
rubidium
32d65845d4
(svn r14898) -Fix (r14897): ccache's caching seems to be a bit too agressive or so.
16 years ago
rubidium
4231c3ee82
(svn r14897) -Codechange: don't allow a few command flags to be sent over the network as it's bogus information anyway; e.g. the "do not send over network" flag as it will be set whenever the command is received from the server/client.
...
-Codechange: test earlier whether the command (send from the server) is actually valid.
16 years ago
smatz
91233ea596
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
glx
06519a56f2
(svn r14816) -Fix: signed/unsigned warnings (MSVC)
16 years ago
rubidium
72d89337ee
(svn r14804) -Codechange: unify opening the OSK (Zuu)
16 years ago
rubidium
f55995f1ef
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
rubidium
1892994ab2
(svn r14771) -Fix (r14764): resolving of error types to error messages kinda failed :(
16 years ago
rubidium
b597e52e29
(svn r14770) -Fix: gracefully handle an invalid packet instead of asserting.
16 years ago
rubidium
42fb037005
(svn r14766) -Fix (r14730ish): remove unused typedef.
16 years ago
rubidium
0b806c7bbc
(svn r14764) -Codechange: make the '***' chat messages like "Game paused (not enough players)" fully translateable.
16 years ago
rubidium
3b08d2ecaa
(svn r14760) -Fix (rlongago): network connection of clients being closed twice (found due to added assertion in r14730)
16 years ago
rubidium
5fe023cb1b
(svn r14759) -Fix (r14730): tab completion causing out-of-bounds read.
16 years ago
rubidium
e83cca7d13
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
bf6ec8b19f
(svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
...
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
rubidium
81f409e8e7
(svn r14733) -Fix (r14730): creating new companies didn't always work as expected.
16 years ago
rubidium
2b5362de13
(svn r14731) -Fix: don't initialise UDP multiple times without closing it.
16 years ago
rubidium
54f23ed0b3
(svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
...
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
16 years ago
rubidium
2576aceb21
(svn r14728) -Fix [FS#2470]: don't select anything when opening the client list.
...
-Fix: don't show clients that are "only" in the lobby.
16 years ago
rubidium
4ce0e8ccce
(svn r14727) -Codechange: replace some magic numbers with a constant.
16 years ago
rubidium
b4f74d2e01
(svn r14726) -Fix (r14720): making new companies in network kinda failed...
16 years ago
rubidium
c1b2f17bc8
(svn r14725) -Change: make it clearer why (and that) MAX_CLIENTS isn't the amount of slots in the array, but one less as a dedicated server takes a slot too.
16 years ago
rubidium
e267bee098
(svn r14724) -Codechange: move some NetworkClientSocket related function/definitions closer together.
16 years ago
rubidium
97662a0fff
(svn r14723) -Codechange: shuffling some stuff around to reduce indirect #include dependencies.
16 years ago
rubidium
768fdee77a
(svn r14722) -Codechange: s/DEREF_CLIENT/GetNetworkClientSocket/
16 years ago
rubidium
cb8b31c3c1
(svn r14721) -Codechange: s/NetworkTCPSocketHandler/NetworkClientSocket/ as it's (way) more descriptive what it's used for.
16 years ago
rubidium
3ddde0c8d6
(svn r14720) -Codechange: s/FOR_ALL_CLIENTS/FOR_ALL_CLIENT_SOCKETS/ as the latter describes the name more precisely.
16 years ago
rubidium
9a96557763
(svn r14719) -Codechange: replace DEREF_CLIENT with an instance function and replace looping socket structs with info structs when the loop is only interested in the info structs (i.e. not derefing the info from sockets when one can loop info directly and the socket isn't used)
16 years ago
rubidium
bdd92008cf
(svn r14718) -Change: remove some direct network core variable accesses from non-network locations.
16 years ago
rubidium
7403790ba4
(svn r14717) -Change: more 'Index' -> ClientID to not confuse ClientID and ClientIndex
16 years ago
rubidium
dbb2950e83
(svn r14716) -Codechange: move more network core querying to the network files.
16 years ago
rubidium
8e81749872
(svn r14715) -Codechange: move some network code from the main gui file into one of the the network files.
16 years ago
rubidium
648d7072a4
(svn r14714) -Codechange: only allocate the company network "state" variables (password/months not used) when needed, i.e. only for servers.
16 years ago
rubidium
d146b48063
(svn r14712) -Codechange: split server and client side w.r.t. the storage of network related company information.
16 years ago
rubidium
c393913563
(svn r14711) -Codechange: don't misuse the _network_company_info password field for changing the password on clients.
16 years ago
rubidium
a4c27263bb
(svn r14710) -Change: simplify sending company information from the server to the client.
16 years ago
rubidium
6d23f48bb6
(svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays.
16 years ago
rubidium
94a5f66427
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
16 years ago
smatz
a5b33d1f3b
(svn r14671) -Fix: compilation was broken for some systems
16 years ago
rubidium
ed649dddba
(svn r14588) -Fix [FS#2414]: the range for kicking/banning clients is based on the maximum number of clients, not the maximum number of companies.
16 years ago
smatz
f8c8405311
(svn r14564) -Fix (r14555): one more incorrect use of lastof()
16 years ago
smatz
1257ba3214
(svn r14560) -Fix [FS#2396](r14555): lengthof() can't be simply replaced by lastof() in some cases (part by Aali)
16 years ago
skidd13
9b282b3e51
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
rubidium
db1fd2e085
(svn r14542) -Codechange: replace some sprintf with s[en]printf to make sure they will not overflow their buffers.
16 years ago
glx
48a047d73b
(svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu)
16 years ago
frosch
ee393d5693
(svn r14531) -Fix (r12425): OSK accessed wrong widgets of password query window.
16 years ago
rubidium
040950f56e
(svn r14517) -Feature: arrow key scrolling in the server list (Roujin)
16 years ago
smatz
bc1d994f6c
(svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
...
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
16 years ago
smatz
ad0a578b69
(svn r14486) -Fix (r13343)(r14484): compilation with desync debug was broken
16 years ago
rubidium
e7bb5c63a4
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
16 years ago
rubidium
96156a8ab1
(svn r14423) -Codechange: also do r14221 for the strings.
16 years ago
rubidium
e589c7e580
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
f56e630e5c
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
5ab74534da
(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
16 years ago
rubidium
f49d5057ee
(svn r14390) -Codechange: replace magic constants with symbolic constants.
16 years ago
smatz
ffa39caf3d
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
rubidium
efe93c527b
(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
16 years ago
rubidium
de532c616f
(svn r14318) -Fix [FS#2296]: OSK of the chat box did not get updated. This as the chatbox got a higher priority than the OSK instead of the usual other way around.
16 years ago
smatz
97b1eb2c6f
(svn r14228) -Fix (r14209): double click on the 'last joined' server didn't work
16 years ago
smatz
3c5ab035d8
(svn r14209) -Feature(tte): doubleclick to join selected server/company
16 years ago
rubidium
a20b833516
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
16 years ago
smatz
eeaeecd255
(svn r14177) -Fix: define INADDR_NONE only when it hasn't been defined yet
16 years ago
smatz
1294253d68
(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'
16 years ago
glx
c7453851d3
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
16 years ago
rubidium
c816cc37fd
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
16 years ago
rubidium
6199dc987b
(svn r14052) -Codechange: make the size of the chat message "box" configurable and increase the default size slightly so it can hold the longest chat messages.
16 years ago
rubidium
b76620939d
(svn r14051) -Codechange: enumify the DrawString buffer length.
16 years ago
rubidium
31d69a49e8
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
16 years ago
rubidium
122f029b93
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
16 years ago
rubidium
0fab1dc699
(svn r14045) -Codechange: move the network's limitation to chat messages to a more logical location and give it a more consistent name.
16 years ago
glx
812ab1279a
(svn r14026) -Cleanup (r13995, r14004): trailing whitespaces
16 years ago
rubidium
12037a8b38
(svn r13997) -Fix (r13988): in some cases no broadcast addresses would be found.
16 years ago
rubidium
b32b101b8c
(svn r13995) -Fix (r13988): some warnings of the compile farm.
16 years ago
glx
b9bbcfcb9b
(svn r13990) -Fix (r13988): win32 compilation failed
16 years ago
rubidium
eb5fb4443a
(svn r13988) -Codechange: move the to IP resolving functions to a separate file.
16 years ago
belugas
98d8501278
(svn r13970) -Codechange: Replace numbers with Colours enum on network, toolbar and dropdown guis.
...
Mostly forgotten ones.
16 years ago
belugas
1648da0e47
(svn r13907) -Codechange: Replace a number with Colours enum on DrawFrameRect usage
16 years ago
rubidium
59d815b391
(svn r13796) -Fix [FS#2161]: one couldn't start the last scenario in the "start server window"'s list of scenarios.
16 years ago
rubidium
b81e31bdb1
(svn r13776) -Fix: some revision checking code was unintentionally disabled.
16 years ago
glx
11ca40cf88
(svn r13775) -Codechange: enforce the validity of a NetworkAction (chat packet) issued by a client
16 years ago
rubidium
bd0e52011d
(svn r13773) -Codechange: disable autoclean for protected/unprotected companies when the timeout is set to 0. Based on an idea by Thomas.
16 years ago
rubidium
67275acdff
(svn r13740) -Fix (r13731): one could only join the first company.
16 years ago
rubidium
664bbd304a
(svn r13739) -Fix (r13731): some variables would be erroneously zeroed, causing autoclean and company passwords not to work.
16 years ago
rubidium
6ecfaa5c84
(svn r13732) -Feature: add a few extra columns with information to the server list. Patch by Pegasus.
16 years ago
rubidium
cde65455ac
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
6898a76c5f
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
a1ca1da1b3
(svn r13716) -Fix [FS#2144]: any player could construct new companies.
16 years ago
rubidium
5a94972c2d
(svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
...
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
rubidium
31d283c6c8
(svn r13714) -Fix: remove the unique_id from the message that a client has joined as it is only exposes the unique_id more than needed. Patch by dih.
16 years ago
rubidium
348600eca9
(svn r13713) -Fix: possible crash on creating a network packet.
16 years ago
rubidium
03afcec36f
(svn r13712) -Fix: enforce the length restrictions of company and president name in the commands too.
16 years ago
belugas
a324f30783
(svn r13682) -Codechange: -Codechange: remove a now useless variable(dih).
16 years ago
rubidium
35f3284a60
(svn r13433) -Codechange: remove a now useless global variable.
...
-Fix: MP advertising was not advertising.
17 years ago
rubidium
e2adaf59b2
(svn r13408) -Codechange: some stricter checking.
17 years ago
glx
b60a1326bf
(svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
17 years ago
glx
f4b1d4b48b
(svn r13380) -Fix (r13327): MSVC signed/unsigned warning
17 years ago
smatz
1f1eea4873
(svn r13378) -Fix (r13375): compilation without network support was broken
17 years ago
rubidium
a315054443
(svn r13370) -Codechange: move the VARDEF stuff from openttd.h to variables.h so one doesn't need to include openttd.h before variables.h.
17 years ago
rubidium
994779e9e2
(svn r13369) -Codechange: remove duplication of network configuration settings between NetworkSettings and NetworkGameInfo.
...
-Fix: failure of changing the server password during games because the password wasn't duplicated properly.
17 years ago
skidd13
f1c954e842
(svn r13359) -Codechange: convert _fios_items to a SmallVector
...
-Cleanup: some reincarnations of _fios_items in the code
17 years ago
rubidium
387f4cfbe1
(svn r13344) -Codechange: remove some code duplication.
17 years ago
rubidium
bae02e8c67
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
17 years ago
rubidium
02dbab8721
(svn r13334) -Codechange: move the network settings variables from network/network_internal to settings.
17 years ago
smatz
713923cd7e
(svn r13330) -Fix: 'Player name' dialog was broken in two ways
17 years ago
skidd13
c624a20a32
(svn r13328) -Fix (r13327): Don't access an item when there isn't any
17 years ago
skidd13
73cf52a7c4
(svn r13327) -Codechange: NetworkGameWindow uses GUILists Sort() now
17 years ago
rubidium
e7a501100a
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
17 years ago
peter1138
44dd8955d1
(svn r13291) -Fix (r13266): qsort passed wrong sizeof data
17 years ago
peter1138
781b90ac91
(svn r13266) -Codechange: Use SmallVector in GUIList
17 years ago
rubidium
d289464d69
(svn r13255) -Codechange: move _opt to _settings.
17 years ago
rubidium
dc77647ea4
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
17 years ago
rubidium
ce821b1ada
(svn r13242) -Codechange: remove _opt_ptr.
17 years ago
rubidium
080af12d8b
(svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums.
17 years ago
rubidium
bf3b61cfa3
(svn r13228) -Codechange: split console.h.
17 years ago
rubidium
162e2e074b
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
17 years ago
rubidium
a21d3fc63b
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
17 years ago
rubidium
d284ba2283
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
17 years ago
rubidium
ad6e52080c
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
17 years ago
rubidium
a89b5721a8
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
17 years ago
rubidium
6f45805af0
(svn r13135) -Codechange: make a class of the NetworkJoinStatusWindow.
17 years ago
rubidium
439b328f41
(svn r13108) -Codechange: make a Window subclass of the main toolbars sub menus.
17 years ago
glx
07e10eade8
(svn r13107) -Codechange: make NetworkCompanyPasswordWindow and SelectPlayerFaceWindow children of PlayerCompanyWindow.
17 years ago
rubidium
89a60ce249
(svn r13045) -Codechange: make list_d (now GUIList) more generic and uniform.
17 years ago
rubidium
aa0929351d
(svn r13044) -Fix: deleting an already deleted window.
17 years ago
rubidium
4a46a5cdda
(svn r13043) -Codechange: remove some duplicate variables from news_d.
17 years ago
rubidium
d8a6bb392a
(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
17 years ago
rubidium
29ad1d442a
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
17 years ago
rubidium
1f70b47e22
(svn r13040) -Codechange: make a class of the NetworkLobbyWindow.
17 years ago
rubidium
f710876037
(svn r13028) -Codechange: WE_MESSAGE and WE_INVALIDATE_DATA were doing the same thing.
17 years ago
rubidium
2c96ce4506
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
17 years ago
rubidium
8d0a7f4634
(svn r13025) -Codechange: remove the need for two WindowEvents.
17 years ago
glx
a28ea38653
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
17 years ago
rubidium
92aac531c2
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
17 years ago
rubidium
51cda2252c
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
17 years ago
rubidium
e0e1bf76a2
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
17 years ago
rubidium
8796331d83
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
17 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
maedhros
28e1da6c5d
(svn r12968) -Fix: Don't segfault when adding a server if 0.0.0.0 was entered for the address.
17 years ago
rubidium
e7d125de58
(svn r12963) -Fix (r12960): loading some NewGRFs could cause an infinite loop.
17 years ago
rubidium
f2683a6037
(svn r12960) -Codechange: handle return values of (some) file system related functions.
17 years ago
rubidium
41aeb7ffa0
(svn r12957) -Codechange: do not misuse snprintf when you just want to copy a string, also use DEBUG instead of fprintf in one case.
17 years ago
smatz
89a8dc8cf7
(svn r12944) -Codechange: use rev.h instead of externs at many places
17 years ago
rubidium
f1820a5708
(svn r12930) -Add: build support for NetBSD and HP-UX. Patch by ahoka.
17 years ago
smatz
3fe8c58257
(svn r12777) -Codechange: rename fatal() and error() in strgen, so it can always have the NORETURN attribute
17 years ago
rubidium
d46d8d9c9d
(svn r12765) -Codechange: move some stuff out of variables.h that required including other headers in variables.h.
17 years ago
rubidium
f4b07a78c4
(svn r12762) -Fix: tabs after the first non-tab character are generally not okay (or lines starting with a space and then tabs).
17 years ago
rubidium
ca1f8fbe2e
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
52d83de8d8
(svn r12709) -Feature: show the last joined server. Heavily based on a patch by Yexo.
17 years ago
rubidium
cf00e8e1d9
(svn r12701) -Codechange: do not explicitly number a widget enum because that causes a big diff when adding something.
17 years ago
rubidium
cd23dd64bf
(svn r12637) -Fix [FS#1913]: possible NULL pointer dereference when reading some NewGRF data.
17 years ago
rubidium
fcf888799f
(svn r12574) -Fix: binding to a specific IP could cause OpenTTD to not register properly with the masterserver if one has multiple external interfaces.
17 years ago
rubidium
b488fe1929
(svn r12501) -Codechange: split signs.h.
17 years ago
rubidium
0f1a82a4c2
(svn r12499) -Codechange: some coding style tweaks for network_internal.h.
17 years ago
rubidium
c51b81c247
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
17 years ago
rubidium
a28f2f2bb1
(svn r12426) -Cleanup: sprinkle some coding style over a few files.
17 years ago
rubidium
a606fe9610
(svn r12425) -Feature [FS#1846]: On Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
17 years ago
glx
15cd2931f3
(svn r12407) -Add [FS#1866]: more language flags for servers
17 years ago
rubidium
f76110425b
(svn r12404) -Codechange: rename the string buffer used for network GUIs to something more unique than what it is called now.
17 years ago
rubidium
d4b6b57f8b
(svn r12403) -Codechange: unmisuse a variable in the chat window and make the code a little cleaner.
17 years ago
peter1138
46ad4b8267
(svn r12370) -Fix [FS#1853]: Close language drop down when parent window is clicked/closed.
17 years ago
smatz
8d7f246b55
(svn r12367) -Fix [FS#1650](r707): commands were sent to clients waiting for map download causing 'executing command from the past' error
17 years ago
rubidium
3e90a16cfc
(svn r12017) -Fix: when you have more than 9 network interfaces you'll enter the wonderfull world of overflows.
17 years ago
rubidium
1b7051768c
(svn r12004) -Codechange: refactor the random functions to reduce code duplication.
17 years ago
glx
b3e35db958
(svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command)
17 years ago
peter1138
04da1e1d45
(svn r11915) -Codechange: Add a function to draw a sort button's up/down arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
17 years ago
peter1138
8794c5bc3c
(svn r11909) -Codechange: use dropdown widget for player livery, network lobby/setup and news settings windows
17 years ago
peter1138
1fa2285327
(svn r11848) -Codechange: New class-based drop down list functionality. Lists are now dynamically generated, and can include parameters, or be extended however needed.
17 years ago
glx
88e16866bc
(svn r11844) -Fix: road vehicle count was incorrect in network lobby window
17 years ago
rubidium
9ac26e1bf1
(svn r11840) -Codechange: split network.h so not everything in there needs to be included when wanting to know whether we are a server.
17 years ago
rubidium
9c0c798dd8
(svn r11834) -Codechange: only include settings_type.h if needed.
17 years ago
rubidium
0ca79e2fb8
(svn r11829) -Feature: allow reloading openttd.cfg when starting a new game on a dedicated server. Patch by dihedral.
17 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
2fc62eab05
(svn r11818) -Codechange: split player.h into smaller pieces.
17 years ago
rubidium
07e0e0a1ff
(svn r11816) -Fix: forgot clearing one byte, causing the passwords to differ slightly on different platforms.
17 years ago
rubidium
97d6e0e6c0
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
17 years ago
rubidium
64d691bacc
(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
71d4004a85
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
17 years ago
rubidium
2469bca24c
(svn r11771) -Codechange: split settings.h into better separated headers.
17 years ago
glx
7a890182c0
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
17 years ago
belugas
1b76c8bb67
(svn r11714) -Fix[FS#1569]: Do not allow player inauguration date on scenarios to be bigger than current year.
...
This will not (yet) be true if you are loading a scenario with the "-g" command line option.
17 years ago
rubidium
722613f7f3
(svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
17 years ago
rubidium
db73addb43
(svn r11702) -Codechange: move all date related stuff to date*.
17 years ago
rubidium
f82aeb82c5
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
17 years ago
skidd13
7bcc4d28e1
(svn r11695) -Codechange: Converted the md5 algorithm to OOP
...
-Codechange: Adapt the md5 algorithm to the OpenTTD source
17 years ago
rubidium
851f19b341
(svn r11694) -Codechange: move more endianness related stuff to endian_func.hpp.
17 years ago
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
507463e420
(svn r11684) -Codechange: split gfx.h in a type and functional header.
17 years ago
rubidium
1f6043458c
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
17 years ago
rubidium
3074bca136
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
17 years ago
rubidium
766551b0bc
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
17 years ago
rubidium
8427b8bad2
(svn r11675) -Codechange: split the string types from the string functions.
17 years ago
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
rubidium
2cf7d5b2cb
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
17 years ago
rubidium
8bfbfd0031
(svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
17 years ago
rubidium
cdee7d4cb8
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
17 years ago
rubidium
8ce9c5f29b
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
17 years ago
rubidium
5b689aa665
(svn r11630) -Fix [FS#1544] (r11556): the chat GUI got broken.
17 years ago
glx
bfda3c82f1
(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions.
17 years ago
belugas
f271038461
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
17 years ago
glx
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
17 years ago
rubidium
2b9f51219f
(svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482.
17 years ago
belugas
1495f6aaf8
(svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
...
A better solution will be deviced, but not now. Let's not cause a ton of bug reports
17 years ago
belugas
cc29d43876
(svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
...
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
17 years ago
rubidium
49e6247de8
(svn r11557) -Codechange: send and store the passwords a little more secure to/in the servers.
...
Each server and game yield a (usually) different 'salt'. This salt is used by the clients to hash their passwords. This way the passwords are not sent in clear text and it is not trivial to use those hashes on other servers.
NOTE: It is still NOT safe to use your trusted passwords and it will not stop people from being able to 'hijack' your password, it only makes it harder to do and certainly much less trivial than just dumping passwords from the memory.
17 years ago
rubidium
2880047689
(svn r11556) -Feature: allow setting a default password for new companies in network games.
17 years ago
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
17 years ago
skidd13
e3092f6791
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
17 years ago
smatz
ca30e9b849
(svn r11519) -Codechange: enumerization and cleanup of NetworkLobbyWindow in network_gui.cpp
17 years ago
smatz
13128407d9
(svn r11517) -Codechange: better cleanup of NetworkStartServerWindow in network_gui.cpp
17 years ago
smatz
d056b350eb
(svn r11516) -Codechange: cleanup of NetworkGameWindow in network_gui.cpp
17 years ago
smatz
8e19280a72
(svn r11515) -Codechange: cleanup of NetworkStartServerWindow in network_gui.cpp
17 years ago
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
6801cceda1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
7a4d96f629
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
...
This fixes also FS#1450
17 years ago
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
belugas
e2c0f1faf7
(svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
...
Patch heavily based on BiBB's work (FS#1383)
17 years ago
truelight
9cf6fe8bca
(svn r11357) -Fix: NetworkUniqueID could be 80 chars, while the max size we generate is 32. So reduce the size a bit. Pointed out by dihedral, so give him a big hug ;)
17 years ago
rubidium
6f75794b0f
(svn r11290) -Fix: obiwan in the assertion that checked for overflows when writing a packet, causing still correctly sized packets to cause assertions.
17 years ago
rubidium
7350b88bf2
(svn r11188) -Codechange: rewrite of the town action related code (remove some of the magic).
...
-Feature: possibility to disable exclusive rights and giving money. Both by skidd13.
17 years ago
rubidium
e9924421bf
(svn r11089) -Codechange: add revision detection to MSVC.
17 years ago
rubidium
d4290086e8
(svn r11006) -Fix: spectators are not allowed to issue commands. Issue spotted by SmatZ.
17 years ago
rubidium
4ef6e75609
(svn r10932) -Codechange: replace "text" with "chat" for the chat related function and variables.
17 years ago
rubidium
fe16c97a19
(svn r10888) -Fix (r10886): 64 bits alignment made a struct too big.
17 years ago
rubidium
15ee365b10
(svn r10886) -Codechange: modify the "start network server" GUI so it can actually handle more than 10 clients/companies/spectators in a nice way, i.e. without making a combobox with 100 players and add 90 new strings to be able to do so.
17 years ago
peter1138
61f94c2d5e
(svn r10736) -Fix: Correct all mispellings of 'successful'.
17 years ago
rubidium
364d42f2cd
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
17 years ago
rubidium
000b582423
(svn r10726) -Codechange: make it possible that the chat window is less than 640 pixels.
17 years ago
rubidium
8fef079cbc
(svn r10706) -Codechange: allow resizing the multiplayer server list window.
17 years ago
rubidium
13ab17bca8
(svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size.
17 years ago
rubidium
6806635971
(svn r10694) -Codechange: update the server information in the game list every once in a while so the information stays fairly up-to-date when you are looking through the servers.
17 years ago
rubidium
7fe3635cdb
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
17 years ago
rubidium
df009178d4
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
17 years ago
rubidium
3ba01bec84
(svn r10501) -Fix [FS#1015]: error dialog was sometimes shown on all clients when a command failed instead of only the client that actually did the command.
17 years ago
rubidium
5ef18e693c
(svn r10500) -Fix [FS#1007]: cannot navigate using arrow keys in the game name text box. Patch by benc.
17 years ago
rubidium
b1ab5f3e1c
(svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour.
17 years ago
rubidium
db5c9fc9a0
(svn r10462) -Add: a command dumper/loader that could be enabled compile-time and server side only to aid debugging some desyncs, i.e. dump the stream of commands so it could be replayed in exactly the same way later. This should primarily be used to make desyncs more easily reproducable, so it can be properly debugged.
17 years ago
rubidium
f7151d44b7
(svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too.
18 years ago
rubidium
daafda6f62
(svn r10365) -Fix: compiling without png and networking support under MSVC.
18 years ago
rubidium
f603383eb9
(svn r10352) -Fix: the network did not request the newgrf names of newgrfs that it couldn't find; it only wanted to request the newgrf names of newgrfs that where available locally and than were called "<Unknown>".
18 years ago
peter1138
3154374e19
(svn r10325) -Fix (r10323): Missed 3 company name references
18 years ago
rubidium
e0a9a7d388
(svn r10313) -Fix (r8546): value for password "protected" was sent toggled for UDP packets, i.e. unpassworded companies showed up passworded and vice versa.
18 years ago
rubidium
627aa240ba
(svn r10298) -Fix [FS#903]: show the subdirectory below the default data directory in this filename in the newgrf list. The directory was removed in r9560 because then it used to full path instead of the path relative to the data directory, but since the inclusion of "search paths" that is not necessary anymore.
18 years ago
truelight
292a75a5ec
(svn r10293) -Add [FS#885]: a sticky button for the client list window (oxygene)
18 years ago
rubidium
d0fa4eb9de
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
...
-Fix: some displays of money were wrong.
18 years ago
rubidium
1b27095c83
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
18 years ago
rubidium
0d8e82b7d7
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
18 years ago
glx
623a848cca
(svn r10211) -Feature: [NewGRF] Add support for action 0F
18 years ago
rubidium
7dda2d93da
(svn r10207) -Codechange: remove the redundant player_money in favour of the money64, which is now renamed to player_money.
18 years ago
rubidium
3c7a85fe94
(svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
...
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
18 years ago
rubidium
b50f694a85
(svn r10082) -Fix [FS#846]: another memory leak in the networking code (benc).
18 years ago
rubidium
469e7cb991
(svn r10075) -Fix [FS#844]: small memory leak on some early returns.
18 years ago
glx
a81fd98057
(svn r10037) -Fix (r10035, r10036): silence some 'may be used uninitialized' warnings
18 years ago
glx
a5e5757656
(svn r10035) -Change: simplified network language string sorting
18 years ago
glx
a816369802
(svn r10032) -Add: sort the strings in server language dropdown
18 years ago
glx
9113b5721a
(svn r10017) -Add (FS#790): more languages flags for servers
18 years ago
rubidium
08be68e0b4
(svn r9841) -Codechange: add a little more type strictness to the vehicle types.
18 years ago
peter1138
87b731ead5
(svn r9727) -Fix (r8546): Company password field in network player info was inverted.
18 years ago
rubidium
98e59a5add
(svn r9719) -Fix: in-game private messages did not work for clients with a Client ID > 255.
18 years ago
glx
bbc9a67f6f
(svn r9716) -Add: server_lang in [network] section of openttd.cfg, so dedicated servers can have the little lang flag.
18 years ago
rubidium
2ce514284c
(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting tabs with spaces.
18 years ago
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
18 years ago
rubidium
1c1a4bc872
(svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
...
-Codechange: do not add duplicate files to the newgrf list.
18 years ago
rubidium
d99a269493
(svn r9378) -Fix [FS#688] (r9038): cancel in password queries reduces amount of players in the network game when they haven't joined the game yet.
18 years ago
rubidium
36cea84b11
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
18 years ago
rubidium
283fca3ee7
(svn r9061) -Fix [r9038, FS#668]: passwords are send when the server is in the 'authorizing' state, not 'inactive'.
18 years ago
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
18 years ago
rubidium
4169bfba06
(svn r9050) -Codechange: Foo(void) -> Foo()
18 years ago
rubidium
4b75a29766
(svn r9038) -Fix [FS#115]: inactive connections are not automatically kicked, i.e. people who only open a telnet (or similar) connection to a server.
18 years ago
maedhros
b838a90657
(svn r9031) -Codechange: Introduce grfconfig->status, and use it for states that are
...
mutually exclusive. At the same time, add an INITIALISED state which makes it
possible to check if a grf is not yet active but will be later on during the
GLS_ACTIVATION loading stage.
18 years ago
celestar
7d08af73f0
(svn r9016) [SunOS] -Fix: Don't use a struct-member that doesn't exist.
...
-Documentation: Updated readme.txt for SunOS 5.10 (aka Solaris 10)
Note: With this commit, building and running on Solaris 10 works, thus
we officially support this OS now :)
18 years ago
rubidium
3e9cc1a651
(svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games.
18 years ago
celestar
dfa3c0aae1
(svn r8857) -Documentation: Added some doxygen @file tags, repaired others (the @file tag MUST be found before any line of code, that includes preprocessor directives).
18 years ago
truelight
c8c9c0c831
(svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
...
-Add: added general header-inclusing for PSP
18 years ago
rubidium
9d545a69c5
(svn r8673) -Codechange: use SetNonBlocking instead of implementing yet another version.
18 years ago
truelight
bc5d3ef3b0
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
...
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
18 years ago
rubidium
2f249e650b
(svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive booleans.
18 years ago
rubidium
e50cc1ae49
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
18 years ago
rubidium
fe996cb13d
(svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP.
18 years ago
rubidium
6fd39ebb7c
(svn r8542) -Codechange (Fix?): tweak the gamelist requery timeout so more servers are found for slow network connections.
18 years ago
rubidium
922a623402
(svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler.
18 years ago
rubidium
105cd53868
(svn r8523) -Codechange: move all the Network(Recv|Send)_(uintXX|string) functions to Packet.
18 years ago
rubidium
51c2af6e5e
(svn r8521) -Codechange: initial step in converting Packet to a class; make and use constructors and functions related to the reading/saving the packet size.
18 years ago
rubidium
752ca4ebf7
(svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query.
18 years ago
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
18 years ago
KUDr
02f17406b1
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
...
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
18 years ago
rubidium
6787514d62
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
18 years ago
rubidium
cd6a826ecf
(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler.
18 years ago
rubidium
f78d463f07
(svn r8446) -Fix (8445): accidentally made a function that should not be abstract abstract.
18 years ago
rubidium
66f46b71a1
(svn r8445) -Cleanup: remove some @params from comments as the parameters did not exist anymore and add comments to several variables/functions.
18 years ago
rubidium
3e6bd9c2e9
(svn r8437) -Codechange: move often duplicated (in MSU) define to the udp header.
18 years ago
Darkvater
2ff4492abc
(svn r8428) -Codechange: Add proper names to aircraft subtypes instead of magic numbers and add a function IsNormalAircraft() which tells us whether the aircraft is in fact some flying device or a rotor/shadow.
18 years ago
truelight
ef37b30674
(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
18 years ago
rubidium
89865658b1
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
18 years ago
rubidium
daeadd9a0e
(svn r8361) -Codechange: make sure the range of the dates coming from the network are valid in OpenTTD
...
-Codechange: use_password is a boolean variable
-Codechange: move range checking for server_lang and map_set to Recv_NetworkGameInfo
18 years ago
rubidium
a93eb4b8d8
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
18 years ago
rubidium
e3b79e5ecc
(svn r8198) -Codechange: two global variables are not needed when network is disabled.
18 years ago
rubidium
3ce83d41fa
(svn r8171) -Fix (FS#556): return SL_ERROR when unthreaded saves failed, to make sure we do not try to send zero-byte savegames.
18 years ago
Darkvater
4b3cbf1a14
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
18 years ago
rubidium
5696dfef94
(svn r8167) -Fix (FS#556): a network client crashes, due to a division by zero, when the connection gets lost at the right moment or when the packet is malformed (server sends size 0 for the map).
18 years ago