Darkvater
771df2df51
(svn r7076) -Codechange: Prefer includes instead of using extern. Move UpdateNetworkGameWindow
...
declaration to network.h, and remove stale externs of NetworkPopulateCompanyInfo
2006-11-06 00:12:55 +00:00
Darkvater
33bdf3c701
(svn r6816) -Codechange: Some coding style, variable localization, const correctness.
...
-Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState
2006-10-17 23:34:12 +00:00
Darkvater
b70e4cefb3
(svn r6814) -Codechange: For network games ci->client_playas was always p->index + 1. To
...
correctly handle this ci->client_playas - 1 was used all over the code making
it pretty confusing at times. Use proper one-on-one values now. Special handling
is only needed for user-output to not to confuse users.
2006-10-17 22:16:46 +00:00
Darkvater
0ca42cbd44
(svn r6750) -Codechange: Juggle around some header includes as they're only used when
...
networking is enabled.
2006-10-12 14:13:39 +00:00
rubidium
908d3bcfe6
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-22 14:38:37 +00:00
rubidium
6fb092aa7a
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
...
The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before
1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
2006-08-20 18:40:57 +00:00
rubidium
9fc837ad85
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-08-14 14:21:15 +00:00
tron
772fbda3e3
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
5ee201d71e
(svn r5294) -Fix: Plug a memory leak
2006-06-17 10:37:20 +00:00
tron
213061ef47
(svn r5293) -Fix: Not all network interfaces are capable of broadcasting. Don't record those which aren't
...
-Fix: Not all networks are /24. Generate proper broadcast addresses for non-/24 nets
2006-06-17 10:24:20 +00:00
tron
5f7a8a3c58
(svn r5265) Replace a dozen bogus uses of strncmp() by strcmp()
2006-06-14 13:22:30 +00:00
tron
02c1322ece
(svn r4416) Remove a pointless buffer copy and use strlcpy() instead of snprintf("%s")
2006-04-14 18:52:08 +00:00
truelight
b93da7b279
(svn r4413) -Fix: fixed a bug which pushed the client back to the main menu when a
...
server is in the mainserver-list which sends out illegal signals. Many
tnx to 'test' for finding and isolating the problem.
-Fix: also specify the problem a bit better
2006-04-14 12:19:51 +00:00
Darkvater
55aff858c5
(svn r4291) - Fix: validate all received strings for correctness. This fixes potential crashes on invalid clients/servers (thanks test for bringing this to our attention)
2006-04-05 20:11:01 +00:00
Darkvater
5502f3bf3d
(svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking.
2006-01-31 22:16:15 +00:00
Darkvater
f14df34790
(svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information.
2006-01-25 19:03:50 +00:00
Darkvater
082aa38f79
(svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
2006-01-25 18:11:06 +00:00
peter1138
c56ae910f0
(svn r3409) - Change the server advertisement interval to use the frame counter instead
...
of game days. This allows a paused server to continue to advertise itself.
This also fixes advertising for games that start before 1922.
2006-01-19 17:50:40 +00:00
tron
318fe153eb
(svn r3365) Staticise 36 functions
2006-01-05 12:40:50 +00:00
tron
255c4052b2
(svn r3337) Remove an unused variable and add 2 times static
2005-12-24 20:51:21 +00:00
Darkvater
eea9e95278
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
...
- CodeChange: added str_validate(char *str) function that checks if a string contains only printable characters and if not, replaces those characters by question marks. Also move IsValidAsciiChar() to string.h
2005-12-20 20:52:05 +00:00
truelight
548f8575fb
(svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB)
2005-10-16 15:00:22 +00:00
bjarni
488db23ed8
(svn r3023) -Fix [BeOS] fixed compilation on BeOS R5 (MYOB)
2005-10-06 18:28:27 +00:00
tron
647cbd6bdd
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
b0779b4b65
(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h
2005-07-21 18:44:27 +00:00
truelight
3965366b97
(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;))
2005-05-17 16:01:19 +00:00
tron
dcc381bf5c
(svn r1847) Adjustment for MorphOS to unbreak the build there and removal of some now obsolete preprocessor magic
2005-02-08 15:42:28 +00:00
tron
257e97c09a
(svn r1833) byte -> char transition: the rest
2005-02-06 22:25:27 +00:00
tron
59fa465dce
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
2005-02-06 13:41:02 +00:00
tron
36c9758c94
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
truelight
65b55ffafe
(svn r1689) -Fix: big typo in network_udp.c, the company-password flag didn't work
2005-01-26 19:40:21 +00:00
tron
dd6db73069
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
2005-01-15 08:58:31 +00:00
truelight
b33df5936f
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
...
- Added green dot if company income is positive (else red dot)
- Added lock icon if company is password protected
2005-01-14 21:47:35 +00:00
truelight
553c169dbc
(svn r1483) -Fix: don't close a socket if it is already closed (windows doesn't like
...
it :() (partly tnx to tamlin)
2005-01-11 15:52:18 +00:00
truelight
503ccc81c9
(svn r1389) -Add: [Network] Added packet protection. No longer a client or server
...
reads beyond the size of the packet
-Fix: [Network] A server no longer crashes when a client sends an
invalid DoCommand, but drops the client instead.
2005-01-05 14:39:48 +00:00
tron
a8b727e9c3
(svn r1331) Update map size before sending game info
2005-01-03 09:14:31 +00:00
truelight
9ec8692038
(svn r1276) -Fix: [Network] Bug in bind system. Advertising failed on systems with
...
more then 1 ip, and server_bind active to one of them.
2004-12-24 08:54:00 +00:00
truelight
1d1a78c011
(svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
...
from the server-list
2004-12-22 18:56:52 +00:00
truelight
457720ff95
(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
...
-Fix: UDPListener was launched wrongly
-Fix: Not all sockets have broadcast enabled anymore
-Fix: Server-advertise retries 3 times before giving up
2004-12-22 18:42:56 +00:00
dominik
f5ccb662f8
(svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key.
2004-12-20 22:14:39 +00:00
truelight
df995a32ed
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
...
and 'void' where needed, prefixed all functions, typedefs and global
vars with 'Network' and organized all externals nicely.
2004-12-19 10:17:26 +00:00
truelight
bd4da76891
(svn r1106) -Add: [Network] Added master-server protocol and advertise to
...
master-server option. No GUI yet, and disabled by default (it still is WIP)
2004-12-15 20:10:34 +00:00
truelight
be4152b648
(svn r1069) -Add: [Network] Added UDP-packet for detail info about a server for
...
upcoming server-listing
2004-12-13 19:55:31 +00:00
truelight
83bdec9b91
(svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'
...
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use
scripts/pre_dedicated.scr)
2004-12-13 17:47:21 +00:00
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00