tron
a227065ab7
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
559babcdc9
(svn r2673) Include functions.h directly, not globally via openttd.h
2005-07-22 07:02:20 +00:00
tron
18d79cc30f
(svn r2672) Move saving/loading related declarations to saveload.h
2005-07-22 06:31:31 +00:00
tron
0762aa9ec9
(svn r2669) Shuffle some more stuff around to reduce dependencies
2005-07-21 22:15:02 +00:00
ludde
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
2005-07-16 12:30:03 +00:00
ludde
71f9078bdd
(svn r2583) Move OS specific code out of misc.c
...
Added support for Mersenne Twister random number generator (not implemented in network yet)
Wrap player randoms around #ifdef
2005-07-15 20:29:06 +00:00
tron
1b4a0897b6
(svn r2535) Tabs
2005-07-08 22:25:24 +00:00
celestar
aa7334a3ec
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
2005-06-21 16:28:17 +00:00
tron
fea5965679
(svn r2324) Introduce _cmd_text for passing strings with a command instead of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-15 18:50:55 +00:00
Darkvater
31f8f6a7b5
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
...
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
2005-05-12 23:47:45 +00:00
Darkvater
010d1a9be3
(svn r2004) - Fix: [ 1149487 ] Autosave ignoring settings
...
- Fix: [ 1153926 ] All my settings in vain... IGNORED!
- Change: I hope I got it all right. Pressing 'New Game' (either choosing random or a preset scenario) and 'Create Scenario' will start a new game with the settings and difficulty in the intro menu. Using 'Load Game' and 'Play Scenario' will take the values from the savegame/scenario itself.
2005-03-12 21:21:47 +00:00
tron
b2ae5b197e
(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
0381073e56
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
2005-02-06 08:18:00 +00:00
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
truelight
24c9e6ff66
(svn r1527) -Add: RCon (Remote Connection). A server can set:
...
'set rcon_pw <password>'
Which enables rcon. A client can now do:
'rcon <password> "<command>"'
The command will be executed on the server. (guru3)
-Fix: 'kick 1' did crash dedicated servers
-Fix: server password is now correctly saved
!!Warning!!: do not give your rcon password to people you do not thrust!
2005-01-15 20:09:16 +00:00
truelight
83b00ad861
(svn r1513) -Fix: glitch in revision 1510
...
-Fix: MSVC6 project file update (bociusz)
-Fix: MSVC6 default language is now English (UK), no longer Swedish (bociusz)
2005-01-14 21:59:31 +00:00
truelight
e9a57c56b7
(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
tron
49584082a0
(svn r1451) Fix some of the signed/unsigned comparison warnings
2005-01-09 21:25:44 +00:00
truelight
523a6a1cff
(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
truelight
a11f46fed4
(svn r1322) -Add: banning system (mostly tnx to guru3)
...
A server can ban people via ClientList
Both server and dedicated can do it via console:
'ban', 'unban', 'banlist'.
2005-01-02 12:03:43 +00:00
truelight
a14a78de34
(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because
...
company-index was sent, which should have been the client-index
2004-12-23 13:53:05 +00:00
darkvater
28c1dc3e39
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
...
-Fix: removed some warnings
-Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
2004-12-23 00:24:44 +00:00
truelight
19e3842615
(svn r1204) -Add: [Network] Added some cheaters-protection (money-cheat mostly)
2004-12-21 17:31:10 +00:00
truelight
5f25a0788a
(svn r1186) -Fix: [Network] You can now join a company on a server where a company
...
went bankrupt, without joining the wrong company (or even failing to do so)
2004-12-20 16:02:01 +00:00
truelight
db16262698
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
2004-12-19 15:14:55 +00:00
truelight
4d94803d32
(svn r1169) -Fix: [Network] [ 1087591 ] When you want to be a spectator, you now
...
stay a spectator even if someone else joins.
2004-12-19 10:24:45 +00:00
truelight
0e19f74c16
(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
c5770907ac
(svn r1125) -Fix: [Network] You can now safely join a company again
2004-12-16 11:09:00 +00:00
truelight
fa1f026367
(svn r1108) -Fix: [Network] Fixed problem around slow clients:
...
They joined, they got the map, but it took some time before the new
player was created. In this time a player could do stuff, causing a
player-id-mismatch, and the player was kicked out. Now a player get's a
nice GUI which says: registering.. When that is gone, the player is
joined and can play safely. Tnx to Moriarty for bugging me with this bug ;)
2004-12-15 21:13:52 +00:00
truelight
29b844a408
(svn r1096) -Fix: [Network] PlayAs is now registered correctly
...
-Codewise: [Network] Cleaned some code, removed some comment, changed
some wrong comment
2004-12-15 15:19:51 +00:00
darkvater
c58549d512
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-15 00:31:08 +00:00
truelight
b6c74c1c20
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
2004-12-14 20:27:00 +00:00
truelight
c0603e4768
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
...
windows uses WITH_REV_HACK instead of WITH_REV :s)
2004-12-13 09:01:24 +00:00
truelight
0e79314353
(svn r1026) -Add: [Network] Added unique id, so in network, each client has an
...
unique id (generated via md5)
2004-12-12 16:04:32 +00:00
truelight
2bb5145a20
(svn r982) -Fix: [Network] Because dparams are misused as a char, we had some
...
endian-problems. To fix this, we are sending dparams byte by byte
(instead of an uint32). Because of this dparam is sent
not-uint32-endian-safe, but char-endian-safe. Too bad dparam can no
longer be used for normal stuff (which is currently not the case) (tnx
to Tron and Bjarni)
2004-12-08 18:16:43 +00:00
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00