rubidium
fefe22b4aa
(svn r23590) -Codechange: make the string validation settings better expandable
2011-12-18 18:37:54 +00:00
frosch
4e4a87bd3c
(svn r23579) -Fix (r23525): Most up/down arrows stopped working.
2011-12-17 20:52:07 +00:00
truebrain
e2d8abeec5
(svn r23544) -Codechange: document and rename widgets to be consistent and understandable
2011-12-16 18:02:27 +00:00
truebrain
2aa774e831
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +00:00
truebrain
df0afdf0dc
(svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
...
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
2011-12-15 19:54:23 +00:00
yexo
7a7d9a7b6b
(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an url
2011-12-11 12:55:04 +00:00
yexo
e0e5e51e2a
(svn r23492) -Feature: add 'view website' button to the online content window
2011-12-11 11:57:52 +00:00
rubidium
2bf0fc3c5c
(svn r23476) -Codechange: use the error queue to replace switch mode error strings, again making it possible to return multiple errors
2011-12-10 15:16:58 +00:00
rubidium
420d358fef
(svn r23475) -Codechange: queue critical error messages, so when multiple happen you won't miss any
2011-12-10 15:14:11 +00:00
rubidium
58423b26d1
(svn r23474) -Codechange: move the declaration error related functions to error.h
2011-12-10 13:54:10 +00:00
rubidium
b231e80125
(svn r23470) -Codechange: move declaration of SwitchToMode to a header instead of declaring it in 6 other files
2011-12-10 08:31:14 +00:00
yexo
1db365d0e2
(svn r23469) -Fix (r23468): gcc warning about initialization order
2011-12-10 01:49:50 +00:00
yexo
e2a9dd1b0a
(svn r23468) -Feature [FS#4827]: when looking for missing content, automatically select it so you can easily start the download
2011-12-10 00:01:28 +00:00
yexo
e31ed7db25
(svn r23467) -Feature [FS#4827]: automatically close the online content window after confirming the download with 'ok'
2011-12-09 22:44:06 +00:00
yexo
dcba6c25ea
(svn r23465) -Feature [FS#4827]: add 'find missing content online' button to 'load savegame' and 'find network game' windows
2011-12-09 21:49:52 +00:00
truebrain
cc12942d70
(svn r23384) -Remove: no longer allow a binary to be without AI support; the parts some compilers failed at, are integrated in other parts of the code now too
2011-12-01 12:03:34 +00:00
truebrain
e37149a1de
(svn r23362) -Codechange: refactor AIScanner, splitting it in AIScannerInfo and AIScannerLibrary
2011-11-29 23:21:52 +00:00
rubidium
104adbdb3a
(svn r23337) -Fix [FS#4826]: don't send chat messages to clients that haven't joined yet
2011-11-26 17:28:18 +00:00
rubidium
0759649478
(svn r23285) -Fix: scanning of content after download didn't work
2011-11-20 18:36:54 +00:00
rubidium
cc85ef493a
(svn r23240) -Codechange: rework the code of the download status window
2011-11-17 21:06:41 +00:00
rubidium
a3a2fdcfc2
(svn r23234) -Fix [FS#4840]: crash when after downloading content
2011-11-16 16:54:37 +00:00
rubidium
4ae8bbea07
(svn r23222) -Codechange: reduce tar scanning calls to the bare minimum
2011-11-14 21:40:39 +00:00
rubidium
2b897b4fa0
(svn r23219) -Change: different directories for basesets and newgrfs. So data to baseset or newgrf, and gm to baseset
2011-11-14 21:34:27 +00:00
rubidium
6d991b3b10
(svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories
2011-11-14 21:30:37 +00:00
rubidium
160294ff22
(svn r23216) -Codechange: introduce the concept of having different tar lists
2011-11-14 21:28:43 +00:00
rubidium
aa668ba6bd
(svn r23202) -Fix [FS#4829]: unstable sorting in the network list when two servers had the exact same name
2011-11-12 19:26:53 +00:00
rubidium
7fd1e1df81
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
2011-11-12 13:00:29 +00:00
rubidium
bd64bf6372
(svn r23193) -Codechange: don't cast away const unneededly
2011-11-12 08:10:22 +00:00
rubidium
82077965fc
(svn r23179) -Codechange: use some tooltips that already existed (monoid)
2011-11-10 17:55:52 +00:00
rubidium
c8857d4679
(svn r23115) -Fix [FS#4813]: allow accessing the server's client info as well in the admin network (dihedral)
2011-11-04 22:32:21 +00:00
truebrain
a4809b0b98
(svn r23047) -Documentation: silly typo in comment
2011-10-21 14:53:21 +00:00
rubidium
de27205e6c
(svn r23031) -Fix [FS#4804]: for the admin "bots" there was no distinction between bankruptcy and manual removal of companies even though the API suggested that
2011-10-15 20:42:32 +00:00
peter1138
50d1541270
(svn r23017) -Codechange: Add support for resized scrollbars.
2011-10-11 08:07:47 +00:00
planetmaker
74f6813a55
(svn r23011) -Fix [FS#4791]: When the last used server is deleted from the list also clear the last used server if it is the same (monoid)
2011-10-07 08:17:47 +00:00
rubidium
998bbde49e
(svn r22934) -Fix [FS#4771]: prevent authentication bypass for the admin port when a new game is started
2011-09-15 18:28:39 +00:00
yexo
ad232bd497
(svn r22932) -Fix [FS#4766]: disable the white border on window creation for several windows (based on patch by monoid)
2011-09-15 13:26:27 +00:00
rubidium
4836a6e50e
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
2011-08-26 16:39:02 +00:00
rubidium
f5dd74499b
(svn r22829) -Codechange: unify the dirtying of windows after an AI scan
2011-08-24 16:38:09 +00:00
rubidium
0061b5f184
(svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory
2011-08-24 13:33:49 +00:00
rubidium
f6b0561cd8
(svn r22805) -Codechange: move use of magic number for version checking to more logical location
2011-08-21 18:57:45 +00:00
rubidium
6d51883a87
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
2011-08-21 12:51:18 +00:00
rubidium
327c5dd10c
(svn r22771) -Codechange: unify some NewGRFScan calling code
2011-08-20 17:46:03 +00:00
frosch
6bb33acc0d
(svn r22738) -Fix [FS#4722] (r21854): Setting company passwords via the GUI on servers (including starting a company with the default password) failed, so no client could join.
2011-08-13 08:32:55 +00:00
rubidium
36e887591b
(svn r22696) -Fix: don't requery the servers when the server list window isn't opened
2011-07-30 10:44:58 +00:00
rubidium
289133be14
(svn r22695) -Fix [FS#4697]: mark addresses that could not be resolved as 'do not resolve anymore' as well, instead of trying to resolve them each and every time the address is accessed
2011-07-30 10:28:52 +00:00
frosch
1688470eb9
(svn r22617) -Codechange: Add GameOptionsInvalidationData enum for data values for Window::OnInvalidateData() of windows with class WC_GAME_OPTIONS.
2011-07-02 12:49:44 +00:00
rubidium
e95840b6a8
(svn r22536) -Fix [FS#4632]: documentation omission regarding admin protocol
2011-06-04 13:38:54 +00:00
michi_cc
3536f4086a
(svn r22431) -Fix (r22399): NETWORK_RECV_STATUS_MALFORMED_PACKET != false.
2011-05-06 22:17:34 +00:00
frosch
5e449b8fae
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
2011-05-06 21:13:29 +00:00
rubidium
c4aa943aaa
(svn r22424) -Document: some more bits
2011-05-05 16:24:48 +00:00
rubidium
944a5cb7aa
(svn r22423) -Document: some network stuff
2011-05-04 20:24:23 +00:00
frosch
22286bd7b6
(svn r22421) -Fix: Replace various references to Windows palette greyscale indices with the DOS palette indices.
2011-05-04 17:45:16 +00:00
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
rubidium
99ec3a044a
(svn r22403) -Document: some more network/core code
2011-05-01 13:29:40 +00:00
rubidium
536c581923
(svn r22401) -Codechange: replace some defines in the udp code so doxygen can create better documentation
2011-05-01 12:18:34 +00:00
rubidium
2e572b98de
(svn r22400) -Codechange: replace some defines in the tcp/game code so doxygen can create better documentation
2011-05-01 11:30:03 +00:00
rubidium
d4737e0724
(svn r22399) -Codechange: replace some defines in the tcp/content code so doxygen can create better documentation
2011-05-01 11:13:11 +00:00
rubidium
b2efd73773
(svn r22398) -Codechange: remove some defines from the tcp/admin code, so doxygen can create better documentation
2011-05-01 11:01:57 +00:00
rubidium
c2ac411e69
(svn r22387) -Fix-ish [FS#4601]: Windows' recv seems to return "graceful closed" before having passed the remaining buffer which causes OpenTTD to think all connections are "incorrectly" terminated, i.e. without the "I'm leaving" packet from the client. So let the client wait a tiny bit after sending the "I'm leaving" packet and before gracefully closing the connection
2011-04-30 17:41:14 +00:00
rubidium
1c1e9f6941
(svn r22384) -Fix [FS#4585]: No client error packet was sent to the admin bots
2011-04-30 12:09:26 +00:00
rubidium
380d4b277b
(svn r22372) -Fix (r22364) [FS#4598]: segmentation fault when trying to get the server's IP
2011-04-22 19:53:28 +00:00
rubidium
ce91f6b45e
(svn r22370) -Codechange/fix: keep better accounting of the order in which clients joined:
...
* Clients can't be starved from joining the game
* Clients will see the amount of clients actually waiting in front of them, instead of the amount of waiting clients in total
2011-04-22 16:07:47 +00:00
rubidium
cdfc0ec4a3
(svn r22369) -Codechange: allocate ClientInfo when needed, i.e. don't allocate it for clients that are there to just get a list of companies. This means that these short lived clients won't be seen by the admin network in their client queries anymore
2011-04-22 16:05:05 +00:00
rubidium
2cae0cd54c
(svn r22368) -Codechange: move the IP address field from the ClientInfo to ClientSocket
2011-04-22 16:03:48 +00:00
rubidium
146d532d51
(svn r22367) -Codechange: send ClientSockets instead of ClientInfos to the admin "core" as they send IP addresses to the admin "bots"
2011-04-22 16:03:13 +00:00
rubidium
c61abe0019
(svn r22366) -Codechange: make GetClientIP a function of the server's ClientSocket, after all the Socket is the bit that's associated with the network
2011-04-22 16:02:21 +00:00
rubidium
caf02450fb
(svn r22365) -Codechange: add overload of NetworkServerKickOrBanIP using the ClientID, which later resolves the IP address to ban. This to consolidate the knowledge about resolving IP addresses
2011-04-22 15:59:32 +00:00
rubidium
1c419d99bc
(svn r22364) -Codechange: don't show the (unknown) client address in the client list at clients
2011-04-22 15:57:05 +00:00
rubidium
f1d0c1a746
(svn r22363) -Codechange: NetworkFindClientStateFromClientID -> NetworkClientSocket::GetByClientID
2011-04-22 15:54:42 +00:00
rubidium
bc9a803ea9
(svn r22362) -Codechange: NetworkFindClientInfoFromClientID -> NetworkClientInfo::GetByClientID
2011-04-22 15:54:16 +00:00
rubidium
393fb8e46b
(svn r22361) -Codechange: delete the client list popup when the client got removed (instead of previously selecting some other client)
2011-04-22 15:53:40 +00:00
rubidium
2802c742a4
(svn r22360) -Codechange: use globally unique client id to mark the selected client instead of the position in the client list
2011-04-22 15:52:50 +00:00
rubidium
2f9b6156ee
(svn r22359) -Codechange: pass client info pointers instead of the position to the client popup list's callbacks
2011-04-22 15:51:52 +00:00
rubidium
835ae31f45
(svn r22358) -Codechange: WC_TOOLBAR_MENU isn't the right name when its only used for client list popups
2011-04-22 15:50:13 +00:00
smatz
e2d5ce1b0e
(svn r22357) -Fix (r22345): crash when opening the chat box or company password input box
2011-04-22 15:03:08 +00:00
terkhen
10caf391a1
(svn r22343) -Change: Remove pixel limiter for query strings.
2011-04-17 18:42:17 +00:00
smatz
b1286bbcda
(svn r22335) -Cleanup (r22308): remove superfluous tabs
2011-04-17 13:36:51 +00:00
rubidium
d1a50a01b4
(svn r22308) -Fix [FS#4574]: waiting on a server could kick the client, or rather the client would kick itself due to an unexpected packet
2011-04-09 21:52:38 +00:00
frosch
141f2eba50
(svn r22248) -Codechange: Make OnInvalidateData() process 'delete this;' already in command scope.
2011-03-13 21:34:49 +00:00
frosch
652c9cb663
(svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope.
2011-03-13 21:34:21 +00:00
frosch
ec9540a12a
(svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData().
2011-03-13 21:31:29 +00:00
rubidium
db6121f361
(svn r22208) -Fix [FS#4543]: When downloading a file via HTTP failed mid-way and OpenTTD fell back to the old system the partial downloaded amount would be counted twice
2011-03-06 10:11:59 +00:00
yexo
93533b603a
(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF name becomes available
2011-03-03 18:47:46 +00:00
terkhen
6e641777b1
(svn r22154) -Fix [FS#4529]: _current_company was modified when moving a client to spectators, causing issues in bankruptcy (Rubidium)
2011-02-27 11:38:28 +00:00
alberth
1dbc0a20be
(svn r22144) -Codechange: Unify 'while (true)' to 'for (;;)'
2011-02-25 21:53:43 +00:00
frosch
77fa68c1da
(svn r22123) -Fix [FS#4522]: CommandQueue::Pop() did not update 'last'; popping the last item caused the queue to disconnect unless there was only one item.
2011-02-20 21:00:24 +00:00
rubidium
d594a219c6
(svn r22121) -Fix: In case of high frame_freq one could get commands executed after a new network game was started
2011-02-20 20:55:21 +00:00
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
2011-02-19 23:05:47 +00:00
rubidium
1a5087be69
(svn r22093) -Fix [FS#4514]: The server list did not get sorted with one item in it, so the "position in the list" variable was never updated causing problems when using the keyboard shortcuts for scrolling
2011-02-17 21:05:44 +00:00
rubidium
848761e3a9
(svn r22092) -Fix-ish (r22068): when you change a boolean to a enum, check specifically for a particular value
2011-02-17 18:45:44 +00:00
smatz
a5b9858a36
(svn r22086) -Fix: do not check if we can allocate an item if we won't try to do so anyway
2011-02-15 13:15:12 +00:00
smatz
d2d6b263b3
(svn r22085) -Fix: assert when connecting to the admin port
2011-02-15 12:11:28 +00:00
rubidium
befa79ba4a
(svn r22070) -Fix [FS#4503] (r21399): crashes when disconnecting after requesting the map
2011-02-12 21:30:57 +00:00
rubidium
a19bc28aba
(svn r22069) -Fix: delete all savegame packets, not just the first one
2011-02-12 21:29:35 +00:00
rubidium
adfd648031
(svn r22068) -Codechange/Fix: return "connection lost" instead of "okay" when SendPackets closed the connection
2011-02-12 21:09:34 +00:00
rubidium
92d0d6d10b
(svn r22067) -Fix: don't hold a mutex when sending packets and thus possibly closing the connection as that wants to acquire the mutex again
2011-02-12 21:07:30 +00:00
rubidium
d8cada7563
(svn r22064) -Fix [FS#4497] (r21399): crash when disconnecting and reconnecting while the server is still saving the savegame
2011-02-11 23:20:35 +00:00
rubidium
1dc5ba2210
(svn r22063) -Change: make the "has network" check also check whether the client is actually fully connected
2011-02-11 22:10:10 +00:00
terkhen
8196b03074
(svn r22059) -Fix (r21179): Make the send chat message window follow the position of the status bar.
2011-02-11 18:24:12 +00:00
terkhen
0828653cf9
(svn r22038) -Fix (r21406): Tab completion in chat did not cycle through all possible options.
2011-02-09 15:57:03 +00:00
rubidium
05a846a574
(svn r22032) -Codechange: add some asserts to verify we don't allocate too many NetworkClientSockets/Infos
2011-02-08 21:47:10 +00:00
rubidium
537bd8a429
(svn r22031) -Fix: bad servers could crash a client
2011-02-08 21:45:38 +00:00
rubidium
5f7439a00f
(svn r22030) -Cleanup: dead code in NetworkGameWindow::OnInvalidateData (adf88)
2011-02-08 20:52:38 +00:00
rubidium
e1eeca6440
(svn r22029) -Fix [FS#4482]: the server list got not resorted/redrawn after NewGRFs were downloaded
2011-02-08 20:51:30 +00:00
rubidium
62e5afcdf8
(svn r21918) -Fix [FS#4443]: Languages improperly sorted in the "start server" window (adf88)
2011-01-26 22:42:50 +00:00
rubidium
81ef0dbcfc
(svn r21898) -Fix [FS#4438]: using a pointer-iterator and adding things (thus reallocating) to the iterated array caused OpenTTD to crash on invalid pointers
2011-01-23 11:20:55 +00:00
rubidium
cc8da3e5ab
(svn r21892) -Fix [FS#4421]: only some scenarios from the main scenario folder and no heightmaps could be started in the "start server" window
2011-01-22 23:07:23 +00:00
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
6ff844e7c4
(svn r21887) -Fix-ish: some headers weren't including the headers they depend on
2011-01-22 10:10:03 +00:00
rubidium
eb299736c1
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
2011-01-22 09:53:15 +00:00
smatz
656caf16db
(svn r21875) -Codechange: indentation of some comments was wrong
2011-01-21 01:38:30 +00:00
rubidium
795a528328
(svn r21854) -Codechange: refactor the password setting methods to make it possible to change the password of other companies (on the server)
2011-01-19 16:47:40 +00:00
rubidium
e54a1f6721
(svn r21853) -Codechange: HashCurrentCompanyPassword is only used by servers, so move it to network_server.* (dihedral)
2011-01-19 16:37:06 +00:00
rubidium
e95718bf43
(svn r21852) -Codechange: generalise GenerateCompanyPasswordHash (dihedral)
2011-01-19 16:35:11 +00:00
rubidium
c9609bbbc2
(svn r21851) -Codechange: rename NetworkClientSetPassword to NetworkClientSetCompanyPassword (dihedral)
2011-01-19 16:32:23 +00:00
rubidium
a82118f360
(svn r21850) -Codechange: move password hashing to a more general location (dihedral)
2011-01-19 16:30:09 +00:00
planetmaker
51b97aa3c1
(svn r21741) -Fix (r21668): Some white space slipped past the commit hook
2011-01-08 16:10:07 +00:00
rubidium
7dafd04f4b
(svn r21727) -Fix [FS#4377]: admin bots weren't always notified of password changes (dihedral)
2011-01-04 22:28:02 +00:00
smatz
810873ff33
(svn r21704) -Fix [FS#4374]: no need to perform any more checks after the connection is closed (Rubidium)
2011-01-03 18:36:51 +00:00
rubidium
b25cf57542
(svn r21701) -Codechange: ConsoleColour = TextColour, so make it that way and remove some unneeded casts
2011-01-03 12:01:41 +00:00
smatz
c6a90361fc
(svn r21693) -Codechange: no need to cast char[] to const uint8*
2011-01-01 21:41:01 +00:00
smatz
8b6a8a8935
(svn r21692) -Cleanup: remove unused extern declaration of HashCurrentCompanyPassword(), make it static
2011-01-01 21:39:52 +00:00
smatz
13456934b1
(svn r21691) -Codechange: make sure GenerateCompanyPasswordHash() behaves deterministically when/if the value of NETWORK_SERVER_ID_LENGTH is changed
2011-01-01 21:38:13 +00:00
smatz
666fbb28c2
(svn r21687) -Fix: verify the colour code we received from the server is valid
2011-01-01 17:02:29 +00:00
rubidium
6546561360
(svn r21668) -Feature: command logging using the admin interface (dihedral)
2010-12-30 18:14:37 +00:00
rubidium
2c41b8ee97
(svn r21637) -Codechange: make it more clear that IS_PALETTE_COLOUR belongs to TextColour
2010-12-25 19:47:15 +00:00
alberth
7303f7d199
(svn r21595) -Codechange: Some header files had their name changed, update the ifndef/define/endif lines.
2010-12-22 11:46:41 +00:00
alberth
f65a9a5515
(svn r21593) -Codechange: endif comment correcttions.
2010-12-22 10:50:32 +00:00
alberth
b633ffaa1d
(svn r21571) -Codechange: Having a break after a return is no good.
2010-12-21 15:23:54 +00:00
rubidium
b149fcd127
(svn r21513) -Feature [FS#532]: make the chat message timeout user configurable
2010-12-14 15:00:43 +00:00
rubidium
e68efb9e71
(svn r21512) -Change/Feature: make the delay of the chat messages timing out unrelated to the number of passed game days, i.e. don't stop aging chat messages when the server is paused
2010-12-14 14:57:51 +00:00
rubidium
71e3562f76
(svn r21463) -Fix [FS#4296] (r21405): when packets are filled their pos and size aren't the same as when they're read. As a check was incorrect.
2010-12-11 13:34:23 +00:00
rubidium
0c23b0b3a4
(svn r21429) -Fix [FS#3771]: the server didn't check for the paused state when allowing to execute commands
2010-12-07 21:12:23 +00:00
rubidium
1dfd5c6405
(svn r21420) -Fix: admins were always given the stats of company 0
2010-12-06 14:55:47 +00:00
rubidium
54f3e04590
(svn r21418) -Fix: core.h needs config.h
2010-12-06 11:53:05 +00:00
rubidium
378e233023
(svn r21417) -Fix: ofcourse MSVC x64 has something to complain about
2010-12-05 22:43:56 +00:00
rubidium
cf61c2f11f
(svn r21412) -Codechange: limit company name by amount of characters, not bytes
2010-12-05 22:24:50 +00:00
rubidium
bbaa262b0d
(svn r21406) -Codechange: rename some textbuf related names to make them a bit more descriptive
2010-12-05 22:21:37 +00:00
rubidium
9139a6c858
(svn r21405) -Codechange: prepare sending of company information in the UDP packet for longer company names (in bytes), by truncating the names if needed
2010-12-05 22:21:13 +00:00
rubidium
5f25cdbbd5
(svn r21401) -Fix: ofcourse MSVC x64 has something to complain about...
2010-12-05 15:08:41 +00:00
rubidium
ff8a01fbd2
(svn r21400) -Fix [FS#4284]: when loading a savegame takes more than 2 seconds locally, don't see that as lag of the server. Also increase the client side's lag thresholds a bit
2010-12-05 14:49:46 +00:00
rubidium
216e48cd07
(svn r21399) -Change/Feature/Fix [FS#4284]: perform the compression of savegames to send to the client asynchroniously. This will reduce the lag of the other clients to the time it takes to make the memory dump and it will speed up downloading the map as the download starts earlier (possibly with a slightly lower bandwidth due to slow compression). This should also fix the lag message people get when the savegame compression takes more than a few seconds.
2010-12-05 14:48:39 +00:00
rubidium
02b3bc57d5
(svn r21398) -Change/Feature-ish: when making a savegame to send to a client, don't write it to disk but create the packets immediately
2010-12-05 14:45:52 +00:00
rubidium
948cffc930
(svn r21397) -Change/Feature-ish: when getting a savegame from the server, just keep it in memory instead of writing it to a file
2010-12-05 14:44:31 +00:00
rubidium
69766049ce
(svn r21396) -Codechange: rename SafeSaveOrLoad to SaveLoad (it only did load), and add support for (safe) loading with a LoadFilter
2010-12-05 14:43:10 +00:00
rubidium
97434f0e06
(svn r21392) -Change: prepare the network protocol for getting the file size later in the download process
2010-12-05 14:34:19 +00:00
rubidium
98df56d032
(svn r21390) -Codechange: prepare the network join progress bar for getting the file size later in the download process, i.e. when a chunk of the savegame is already received by the client
2010-12-05 14:32:13 +00:00
rubidium
fd752ca2b0
(svn r21363) -Add: support for limiting the amount of (accepted) incoming data
2010-11-30 20:01:26 +00:00
rubidium
31c8ab0ed8
(svn r21361) -Change: make sure the client is listening, or rather receiving, our frames
2010-11-30 14:18:20 +00:00
rubidium
b6c2216749
(svn r21358) -Codechange: make some network function names conform to coding style
2010-11-30 13:38:46 +00:00
rubidium
9c83a8975f
(svn r21357) -Codechange: make it possible to resize the packet's buffer
2010-11-30 13:22:29 +00:00
rubidium
c60a850fed
(svn r21350) -Fix: some indentation
2010-11-28 22:45:47 +00:00
terkhen
75f86a7a21
(svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU.
2010-11-27 22:52:12 +00:00
rubidium
67f74559fc
(svn r21334) -Fix [FS#4271]: make (more) sure that the savegame and transferred file are the same file and not different ones
2010-11-26 22:25:02 +00:00
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
2010-11-26 15:22:18 +00:00
rubidium
374fc308de
(svn r21322) -Fix [FS#4268] (r20924): packets were leaked
2010-11-25 16:00:04 +00:00
smatz
9594a3f7c5
(svn r21319) -Fix: crash when creating file download by the content download system failed
2010-11-25 13:43:09 +00:00
smatz
eb4516e50c
(svn r21318) -Fix: parameters to ShowErrorMessage() were swapped when content download failed
2010-11-25 13:41:30 +00:00
rubidium
bb02e30a37
(svn r21308) -Fix [FS#4262] (r20933-ish): crash upon desync
2010-11-23 23:59:24 +00:00
smatz
3302a520f4
(svn r21302) -Fix (r18994): do not add HTTP connection to list of connections when it fails in the beginning
2010-11-23 22:16:11 +00:00
smatz
752aab7e11
(svn r21285) -Codechange: prevent ICC warning
2010-11-21 16:32:53 +00:00
rubidium
874abb2965
(svn r21256) -Fix [FS#4189]: Clients weren't always notified when the connection was lost
2010-11-19 15:55:53 +00:00
rubidium
6d09f4a3cb
(svn r21254) -Change: show a different "lag" message when a client is lagging because of connection trouble or lagging because the client is just slow
2010-11-19 12:33:19 +00:00
rubidium
ed04bef953
(svn r21248) -Codechange: don't run the tar scanner twice upon startup
2010-11-18 22:27:15 +00:00
rubidium
c7f0518f16
(svn r21246) -Fix: upon rescanning AIs the new AIs would (after some time) show up in the AI list but you could not select all
2010-11-18 22:24:10 +00:00
rubidium
673b3711b4
(svn r21182) -Fix: possible just-freed memory reads
2010-11-14 12:05:24 +00:00
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
2010-11-13 09:56:25 +00:00
rubidium
d970eac2f2
(svn r21071) -Fix: ofcourse the svn properties weren't set properly either :(
2010-11-01 14:26:57 +00:00
rubidium
dcc4d7a747
(svn r21070) -Fix: file not being picked up by doxygen
2010-11-01 14:18:22 +00:00
rubidium
8f9dcab09b
(svn r21033) -Codechange: be more strict with the packets a client accepts at a given moment
2010-10-24 20:51:12 +00:00
rubidium
4ea67eff8b
(svn r21032) -Codechange: perform some more strict tests on the server side when receiving some packets and don't send some when the clients aren't ready for them
2010-10-24 20:30:53 +00:00
rubidium
f24c91c487
(svn r21030) -Codechange: move ClientStatus into the network server socket class
2010-10-24 20:07:32 +00:00
rubidium
2cd67a51ac
(svn r21029) -Codechange: split the map downloading packet + 3-state enum into 3 separate packets
2010-10-24 20:03:33 +00:00
rubidium
744bc2a614
(svn r21027) -Change/Fix: under some circumstances the file handle of the downloaded savegame wouldn't be closed, and validity of the handled wasn't checked in all cases
2010-10-24 16:40:02 +00:00
rubidium
3317f1c01e
(svn r21025) -Codechange: document PacketGameType's enums and reshuffle them slightly to make the whole more readable and easier to understand
2010-10-24 15:22:59 +00:00
rubidium
073b965829
(svn r21024) -Fix: erroneous tab
2010-10-24 15:02:43 +00:00
rubidium
3a1a915c9a
(svn r21008) -Change: don't make client reconnect waiting time depend on the company; in coop games that does not spread clients at all, and most companies have a low number causing it not to be spread out either. Use the ClientID instead. Based on a patch by dihedral.
2010-10-22 14:41:26 +00:00
rubidium
87edf2524d
(svn r21004) -Fix [FS#3746]: chat/console messages got sometimes messed up due to LTR names in RTL translations and vice-versa
2010-10-21 20:12:48 +00:00
rubidium
af9a6b6b42
(svn r21001) -Fix [FS#4170] (r20936): clients were not always notified of a player leaving the game
2010-10-20 11:58:34 +00:00
rubidium
d71f590ed6
(svn r20993) -Codechange: some shuffling of game protocol packet description so they're documented in the "same" place as UDP, content and admin packets (dihedral)
2010-10-18 20:41:53 +00:00
rubidium
44a03d0478
(svn r20988) -Fix [FS#4167]: no need to send packets and possibly get the connection closed when the next call also tries to send the packets and then closes the connection. Especially if the former frees a structure that the latter assumes to be still there
2010-10-18 10:44:51 +00:00
rubidium
9a5e272195
(svn r20978) -Fix (r20963): MSVC seems to be complaining more than GCC once again :)
2010-10-17 17:52:12 +00:00
rubidium
a5d414a734
(svn r20975) -Add: logging of console output for remote admins (dihedral)
2010-10-17 17:43:01 +00:00
rubidium
ad12a91cda
(svn r20974) -Add: remote console (rcon) for remote admins (dihedral)
2010-10-17 17:41:52 +00:00
rubidium
d9602f4ef9
(svn r20973) -Add: chat sending and receiving support for remote admins (dihedral)
2010-10-17 17:40:18 +00:00
rubidium
459514afe4
(svn r20972) -Add: company statistics updates at intervals to remote admins (dihedral)
2010-10-17 17:38:41 +00:00
rubidium
ca5d9f7002
(svn r20971) -Add: company economy updates at intervals to remote admins (dihedral)
2010-10-17 17:38:16 +00:00
rubidium
ae20cb4f3d
(svn r20970) -Add: company change notification to remote admins (dihedral)
2010-10-17 17:37:45 +00:00
rubidium
fe44944f32
(svn r20969) -Add: client info change notification to remote admins (dihedral)
2010-10-17 17:37:26 +00:00
rubidium
901c4a56bd
(svn r20968) -Add: date notification of remote admins (dihedral)
2010-10-17 17:36:59 +00:00
rubidium
b4ce7fad7f
(svn r20967) -Add: infrastructure to send information to remote admins at specific intervals (dihedral)
2010-10-17 17:36:23 +00:00
rubidium
7cc8a363d8
(svn r20966) -Change: enable remote administration sockets (parts by Yexo and dihedral)
2010-10-17 17:35:42 +00:00
rubidium
61ae6b6e40
(svn r20964) -Add: disconnecting remote admins that fail to authenticate
2010-10-17 17:33:46 +00:00
rubidium
33ed4ddbfb
(svn r20963) -Add: stubs for a remote administration connection
2010-10-17 17:31:03 +00:00
frosch
3972c790c2
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
2010-10-17 12:12:13 +00:00
frosch
98250ad8da
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
2010-10-16 20:34:43 +00:00
rubidium
5ed77b4919
(svn r20939) -Fix: some MSVC warnings
2010-10-15 22:08:57 +00:00
rubidium
234bee0858
(svn r20938) -Codechange: make the code for listening on a socket (more) reusable
2010-10-15 21:56:06 +00:00
rubidium
c9cbab14ea
(svn r20937) -Codechange: move some variables from client/server to server only
2010-10-15 20:29:59 +00:00
rubidium
f712055002
(svn r20936) -Codechange: make server side packet sending methods class methods
2010-10-15 20:25:07 +00:00
rubidium
9858d699a3
(svn r20935) -Codechange: only let the server side use a pool of connected sockets
2010-10-15 19:58:56 +00:00
rubidium
bda26d03b5
(svn r20934) -Codechange: move NetworkGetClientName to the server's socket
2010-10-15 19:35:08 +00:00
rubidium
f555e6d72e
(svn r20933) -Codechange: move some more client related methods and such to network_client.cpp
2010-10-15 19:33:08 +00:00
rubidium
76579df240
(svn r20930) -Codechange: simplify the socket handler allocation
2010-10-15 18:45:56 +00:00
rubidium
7ba07d9573
(svn r20929) -Codechange: make NetworkCloseClient a class method
2010-10-15 18:42:52 +00:00
rubidium
515edee17c
(svn r20925) -Codechange: make the client send commands have a slightly more sensible name
2010-10-15 14:29:13 +00:00
rubidium
0ca7e4e82e
(svn r20924) -Codechange: make the game connection packet handling look more like UDP/content packet handling
2010-10-15 13:47:37 +00:00
rubidium
8eb07d097e
(svn r20923) -Codechange: prepare creating sub-classes of NetworkClientSocket for server and client side
2010-10-15 13:22:00 +00:00
frosch
48767d1bef
(svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news.
2010-09-02 20:00:48 +00:00
frosch
48d8f16653
(svn r20719) -Codechange: Remove some hardcoded iconsizes.
2010-09-02 19:34:44 +00:00
yexo
0068c02244
(svn r20705) -Fix: graphic glitch when switching to a different-sized font while the chat message box was visible
2010-08-31 12:18:28 +00:00
yexo
9a05f8004b
(svn r20692) -Fix [FS#4055]: crash after downloading missing content
2010-08-30 10:16:04 +00:00
alberth
9f5a96ead2
(svn r20689) -Codechange: Make some global functions used in 1 .cpp file static in that file.
2010-08-29 15:58:43 +00:00
alberth
fa6203fdc3
(svn r20678) -Codechange: Remove unused NetworkFindClientInfoFromIndex(), NetworkFindClientInfoFromIP().
2010-08-29 12:37:49 +00:00
alberth
be59c90e86
(svn r20674) -Codechange: Remove declared functions that do not exist (anymore) otherwise.
2010-08-28 20:15:45 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
rubidium
a4c6d07edc
(svn r20553) -Feature: allow rate limiting of incoming commands
2010-08-19 08:59:36 +00:00
rubidium
b594990071
(svn r20549) -Codechange: centralise the handling of the incoming commands (from clients and the server)
2010-08-18 22:40:17 +00:00
rubidium
e8e22c99fd
(svn r20548) -Codechange: rename some variables giving them slightly more meaningful names
2010-08-18 21:30:38 +00:00
rubidium
926594b599
(svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands.
2010-08-18 20:48:38 +00:00
rubidium
69fa0b36d3
(svn r20542) -Codechange: generalise the setting of "p2" to the ClientID.
2010-08-18 17:06:45 +00:00
rubidium
1c3d42598e
(svn r20510) -Codechange: unify packet queue handling and make insertion O(1) instead of O(n)
2010-08-15 23:44:45 +00:00
alberth
35fec79700
(svn r20499) -Doc: Spelling fixes, and one doxygen comment addition.
2010-08-15 14:06:43 +00:00
rubidium
e1d35cba6d
(svn r20497) -Fix [FS#3960]: non-dedicated servers failing to load a game caused the introgame to be the server's game causing desyncs when people tried to join
2010-08-15 11:58:20 +00:00
frosch
9e538acc03
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
2010-08-12 09:16:43 +00:00
frosch
71ca58c2bb
(svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
...
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
2010-08-12 08:37:01 +00:00
frosch
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
2010-08-12 06:44:45 +00:00
alberth
ee01ec9136
(svn r20291) -Codechange: Unify break coding style.
2010-08-01 21:19:49 +00:00
terkhen
80c43f52e8
(svn r20289) -Codechange: Unify fall through coding style.
2010-08-01 20:52:11 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
7aabb887d4
(svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals.
2010-07-31 21:43:07 +00:00
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
yexo
d3c1be9abd
(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible
2010-07-31 09:33:39 +00:00
terkhen
88ca183191
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
2010-07-29 14:26:28 +00:00
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
2010-07-26 13:08:48 +00:00
alberth
be6c058424
(svn r20211) -Codechange: Indented code should have curly braces around it.
2010-07-24 10:14:39 +00:00
rubidium
b8487afe54
(svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :)
2010-07-19 17:28:27 +00:00
frosch
4ce5c6d93d
(svn r20089) -Fix [FS#3932]: Access of already freed memory, esp. due to hidden destructor call from Swap().
2010-07-08 18:38:38 +00:00
rubidium
5ca4098443
(svn r20082) -Fix [FS#3899]: reading deleted memory when selecting a NewGRF in the content download window of which the data has not been acquired from the content server. The crash would occur after the content server's reply was processed and the ContentInfo object was replaced with another.
2010-07-05 21:07:31 +00:00
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
2010-07-02 13:53:05 +00:00
rubidium
ed35d62e70
(svn r20035) -Fix [FS#3909]: under some circumstances you could get into an infinite loop
2010-06-29 21:15:40 +00:00
michi_cc
22357624ff
(svn r20030) -Fix: MSVC 2010 defines more POSIX error constants that we define as well.
2010-06-28 18:14:00 +00:00
alberth
604e56adc2
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
2010-06-27 09:05:10 +00:00
yexo
9683b87466
(svn r20012) -Fix: when joining a company with a password you could only enter 20 characters of the password
2010-06-23 00:11:11 +00:00
rubidium
876eb5ee0b
(svn r19998) -Codechange: Unify the order of ship and plane icon in network-lobby with the rest of the game (frosch)
2010-06-19 16:42:02 +00:00
rubidium
99a11badaf
(svn r19996) -Codechange: Add NetworkVehicleType enum.
2010-06-19 16:37:56 +00:00
frosch
9e53f1e004
(svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation.
2010-06-05 13:32:42 +00:00
rubidium
52b211f939
(svn r19869) -Fix [FS#3819]: when a connection gets lost and a game with AIs was loaded the client might crash due to the AIs not being loaded while the game loop is executed
2010-05-20 18:54:14 +00:00
smatz
80fd67a314
(svn r19818) -Fix [FS#3784](r16004): kicking clients by IP didn't work
2010-05-13 16:00:50 +00:00
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
2010-05-13 10:14:29 +00:00
rubidium
2555522eab
(svn r19809) -Codechange: make some unnamed network related enums/defines static const variables
2010-05-13 09:04:41 +00:00
rubidium
6fa962b867
(svn r19808) -Codechange: NetworkCalculateLag returned an uint, so keep it that way
2010-05-13 08:59:50 +00:00
rubidium
a8fa3dd3ce
(svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille)
2010-05-10 17:11:24 +00:00
rubidium
948beec597
(svn r19777) -Change: use the file scanner to find the .tars
2010-05-10 09:37:17 +00:00
smatz
e3c89df398
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
2010-04-24 20:55:51 +00:00
rubidium
26af87bbaa
(svn r19695) -Fix: leaking a file descriptor
2010-04-22 18:34:45 +00:00
smatz
f48f4c8293
(svn r19693) -Codechange: split STATUS_INACTIVE to two states
2010-04-22 17:26:57 +00:00
smatz
32510296b6
(svn r19686) -Fix (r15126): truncated archives were not detected when using zlib 1.2.3. This also fixes zlib 1.2.4 compatibility, zlib 1.2.5 is bugfree
2010-04-21 11:42:00 +00:00
rubidium
519c8007c8
(svn r19680) -Fix [FS#3775] (r19648): when joining a MP game all clients with company ID > 0 would be shown as if they were a spectator
2010-04-20 11:29:51 +00:00
rubidium
df4d8b3bc9
(svn r19678) -Fix (r19607): client status was shown incorrect in the console
2010-04-19 19:50:56 +00:00
smatz
cd20724d20
(svn r19651) -Fix [FS#3745]: when a company is sold, move connected clients to spectators
2010-04-17 11:39:46 +00:00
rubidium
b907dfdef8
(svn r19648) -Fix [FS#3760]: a client would not be properly moved when moved while joining, e.g. when entering a company's password. This caused the client to be in the wrong company (according to the rest of the clients) and the client being kicked on the first command
2010-04-17 10:52:26 +00:00
rubidium
5eb54ac434
(svn r19629) -Fix [FS#3757]: chat message caused glitch when rejoining a network game
2010-04-14 16:12:54 +00:00
rubidium
088282bcf8
(svn r19620) -Fix: desync when a command is received and in the queue while a client starts joining, i.e. save the game state. This can happen in two ways: with frame_freq > 1 a command received in a previous frame might not be executed yet or when a command is received in the same frame as the join but before the savegame is made. In both cases the joining client would not get all commands to get in-sync with the server (and the other clients).
2010-04-13 18:55:31 +00:00
rubidium
d2ed777fa5
(svn r19619) -Fix (r19618): [desync debug] inserting the "join" pause could cause a crash as some command data was not properly initialised
2010-04-13 18:40:47 +00:00
rubidium
23190b8952
(svn r19617) -Fix [desync debug]: log the sync state only once per day, not multiple times when paused with _date_fract = 0
...
-Change [desync debug]: check the sync state from the command stream and make sure no unknown input is encountered
2010-04-13 17:36:19 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
smatz
24a60b77ec
(svn r19613) -Fix [FS#3755]: possible invalid read when server moves client to spectators before he finishes joining
2010-04-11 22:06:17 +00:00
smatz
7f3844d3aa
(svn r19610) -Codechange: rename STATUS_AUTH to STATUS_AUTHORIZED
2010-04-11 17:32:14 +00:00
smatz
43015ad79b
(svn r19609) -Fix: do not print 'Connection lost' message for clients who failed to enter correct password
2010-04-11 17:25:44 +00:00
smatz
13e5058efe
(svn r19608) -Fix: do not kick client if he entered password and the password was cleared meanwhile
2010-04-11 17:23:11 +00:00
smatz
11d6e21c3a
(svn r19607) -Codechange: use different packet types instead of packet subtypes
2010-04-11 17:17:12 +00:00
smatz
d2dc3a2e2b
(svn r19606) -Codechange: remove global variable pw_type
2010-04-11 16:38:31 +00:00
rubidium
5c7aaf11ba
(svn r19602) -Codechange: add the name of the command to the desync logs
2010-04-11 10:11:26 +00:00
rubidium
9b7d71699d
(svn r19601) -Fix: make the desync replay parse the "whole" string instead of everything up to the first space; make it log the sync state too
2010-04-11 09:54:44 +00:00
frosch
ba5f5c1ce1
(svn r19600) -Fix (r18994): Presence of online content was not properly updated after download due to duplicate slashes in the path.
2010-04-10 21:34:21 +00:00
glx
42f5e930d5
(svn r19596) -Fix (r19593): dedicated server always fast forwarding if compiled without DEBUG_DUMP_COMMANDS
2010-04-10 02:17:18 +00:00
rubidium
465e3be105
(svn r19593) -Codechange: improve loading/executing the desync logs
2010-04-09 17:08:44 +00:00
rubidium
d8baa1342c
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
2010-04-08 21:14:49 +00:00
smatz
837913aa5a
(svn r19508) -Codechange: remove semicolon after DEFINE_UNAVAILABLE_CONTENT_RECEIVE_COMMAND and DEFINE_UNAVAILABLE_UDP_RECEIVE_COMMAND
2010-03-23 22:36:02 +00:00
smatz
53aaabe6e9
(svn r19507) -Codechange: remove semicolon after DECLARE_POSTFIX_INCREMENT and DECLARE_ENUM_AS_BIT_SET
2010-03-23 22:25:43 +00:00
alberth
db1c6b7a81
(svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback.
2010-03-14 19:59:45 +00:00
rubidium
6b35de215c
(svn r19385) -Fix [FS#3684]: [IPv6] Netmask calculations were wrong if cidr >= 32.
2010-03-11 17:57:14 +00:00
peter1138
3c40fe42d4
(svn r19374) -Change: Update documentation for console command connect to use ip:port#company parameter format, in line with command line help.
2010-03-08 11:51:23 +00:00
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
2010-02-28 20:28:08 +00:00
frosch
3926b62446
(svn r19283) -Fix (r19256): GRFConfig is not zeroed for non-dynamic construction. GRFIdentifier is sufficient though.
2010-02-27 20:26:42 +00:00
rubidium
0f6d82df7e
(svn r19262) -Feature: finalise BaNaNaS support for music sets
2010-02-26 00:00:55 +00:00
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
2010-02-25 20:06:11 +00:00
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
terkhen
524a10b375
(svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop.
2010-02-24 21:45:23 +00:00
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
2010-02-24 14:46:15 +00:00
alberth
33a96b5ef3
(svn r19132) -Codechange: No need to end a line with ;;.
2010-02-14 16:31:35 +00:00
yexo
6406b75b8f
(svn r19094) -Codechange: don't check for NULL values before calling StrEmpty
2010-02-11 14:58:51 +00:00
rubidium
7a73a7490d
(svn r19090) -Codechange: some comment coding style fixes
2010-02-10 21:06:05 +00:00
rubidium
0072503496
(svn r19087) -Codechange: some typos in StringIDs
2010-02-10 20:20:18 +00:00
rubidium
21bd2722cd
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
2010-02-10 16:24:05 +00:00
smatz
73ed81b1c7
(svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword()
2010-02-10 15:17:27 +00:00
rubidium
ab35d95b5a
(svn r19072) -Fix [FS#3599]: possible read/write after free when the client triggered the server to close the connection
2010-02-09 23:49:19 +00:00
rubidium
f47f3a4157
(svn r19054) -Fix [FS#3598]: when banning yourself via rcon do not send the 'command response' to the client as the connection has already been terminated
2010-02-07 18:28:09 +00:00
rubidium
228da0ccd3
(svn r19001) -Fix: some GCC compile warnings
2010-02-04 13:35:20 +00:00
rubidium
d818c7c7b1
(svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about
2010-02-03 21:45:48 +00:00
rubidium
2db44fc18e
(svn r18994) -Change: content mirroring support (based on work by TrueBrain).
2010-02-03 18:42:23 +00:00
rubidium
e437362c7b
(svn r18992) -Codechange: move the file opening/closing out of the content download function
2010-02-03 17:15:35 +00:00
rubidium
589aee0cee
(svn r18991) -Codechange: simplify memory management of DownloadSelectedContent
2010-02-03 17:12:19 +00:00
frosch
f9cebfcfc4
(svn r18967) -Fix (r18966): Never trust your copy&paste skills.
2010-01-30 18:43:14 +00:00
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
2010-01-30 18:34:48 +00:00
frosch
2f6fe85f23
(svn r18965) -Fix (r17846): Don't compare horizontal positions with vertical.
2010-01-30 17:42:04 +00:00
rubidium
f608ad7baf
(svn r18875) -Codechange: remove some unneeded bits from the network protocol and improve the naming of some variables
2010-01-21 11:17:40 +00:00
rubidium
15adbad2f4
(svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze)
2010-01-16 22:01:33 +00:00
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
rubidium
4ecb3eb33c
(svn r18804) -Codechange: guard against binaries claiming to be compatible with a future (stable) release of OpenTTD.
2010-01-14 23:06:41 +00:00
rubidium
f89d6bea0e
(svn r18801) -Fix: in some cases error messages weren't properly sent to the client before closing the connection. As a result the client would say 'connection lost' when the cause was something completely different.
2010-01-14 21:48:42 +00:00
rubidium
83c8c562bb
(svn r18800) -Fix: in some cases with invalid packets one can crash recent trunk and 1.0.0 betas; 0.7.5 and before can't be crashed though.
2010-01-14 21:47:31 +00:00
rubidium
ebe99fd493
(svn r18784) -Codechange: make NetworkSend_Command accept a company instead of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company.
2010-01-11 20:32:32 +00:00
rubidium
6a047d2316
(svn r18782) -Codechange: move the content of callback_table.cpp to network_command.cpp; it's only ever used there.
2010-01-11 20:00:14 +00:00
rubidium
1967084bc3
(svn r18746) -Fix [FS#3489]: clear the cached NewGRFs of a server when receiving a reply instead of when requesting the information. With slow/unstable network connections it would look like the NewGRF settings button went randomly missing.
2010-01-06 20:49:24 +00:00
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
2010-01-01 18:45:40 +00:00
smatz
29e05554d7
(svn r18645) -Fix [FS#3433](r942): out-of-bounds access in the 'Start new multiplayer game' GUI
2009-12-27 13:38:08 +00:00
smatz
ce08aebde7
(svn r18640) -Fix (r18633): don't assert when accessing first invalid item, it's used quite often in the code
...
-Revert (r18637): it's not needed any more
2009-12-26 13:49:14 +00:00
rubidium
28c7c49855
(svn r18638) -Fix: downloading music sets would fail
2009-12-26 09:38:41 +00:00
rubidium
e7efb42a27
(svn r18637) -Fix [FS#3428]: check whether the content list is empty before trying to draw it
2009-12-26 09:01:28 +00:00
rubidium
a8d6d18b22
(svn r18608) -Change: add the concept of music sets
2009-12-22 21:40:29 +00:00
rubidium
0cb84effc8
(svn r18595) -Fix (r18277): one couldn't enter test via the keyboard in the company password window. Also replace a magic number with a enumified constant.
2009-12-21 20:32:20 +00:00
alberth
1d7a75032f
(svn r18589) -Codechange: Add tooltip to some network windows, remove old comment.
2009-12-21 16:28:50 +00:00
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
2009-12-20 20:08:39 +00:00
rubidium
cf2349ae10
(svn r18578) -Feature: initially select the last joined server when going to the server list
2009-12-20 19:18:18 +00:00
rubidium
8b9a2218de
(svn r18493) -Fix: don't access something after deleting it
2009-12-13 21:36:10 +00:00
frosch
a12d91423b
(svn r18408) -Fix (r17954): After computing the needed width for the client list, also use it.
2009-12-05 13:53:58 +00:00
rubidium
c559ec6308
(svn r18397) -Fix [FS#3346]: after cancelling downloading the download button would remain disabled
2009-12-04 14:23:54 +00:00
frosch
59f9163e37
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
2009-12-02 17:37:02 +00:00
rubidium
b00a5f1069
(svn r18330) -Cleanup: remove some unneeded includes
2009-11-28 20:35:25 +00:00
rubidium
1f0da3710f
(svn r18324) -Codechange: there's no need for a default size when the window isn't resizable
2009-11-28 15:01:49 +00:00
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
2009-11-28 14:42:35 +00:00
rubidium
458c73aecb
(svn r18318) -Codechange: add an enum value for manual window placement
2009-11-28 13:54:28 +00:00
rubidium
6941db6c39
(svn r18287) -Fix (r17841): a not properly updated list caused reading just freed memory which caused buttons to not work as they should
2009-11-25 17:48:44 +00:00
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
2009-11-24 18:05:55 +00:00
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
2009-11-24 17:28:29 +00:00
rubidium
29c65215ed
(svn r18251) -Codechange: make the join status window big font aware
2009-11-23 12:45:01 +00:00
rubidium
3a16e0edf1
(svn r18249) -Codechange: make the network client list big font aware
2009-11-22 22:17:06 +00:00
rubidium
bd0d32a0b6
(svn r18240) -Change: align the 'select' sprite in the network content GUI based on the font height
2009-11-22 19:27:51 +00:00
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
2009-11-22 18:28:14 +00:00
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