ludde
bb1e1f2b5f
(svn r2755) Fix: Fix a desync issue with autoreplace
19 years ago
tron
af9f55c977
(svn r2720) Remove unused declarations and definitions
19 years ago
tron
7e65f44168
(svn r2716) Do not use strncat()
19 years ago
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
19 years ago
tron
559babcdc9
(svn r2673) Include functions.h directly, not globally via openttd.h
19 years ago
tron
18d79cc30f
(svn r2672) Move saving/loading related declarations to saveload.h
19 years ago
tron
0762aa9ec9
(svn r2669) Shuffle some more stuff around to reduce dependencies
19 years ago
ludde
11d9f50115
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
20 years ago
ludde
8ff1f8c526
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
20 years ago
ludde
f12b3a0c18
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
20 years ago
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
20 years ago
celestar
b29556e6b5
(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statements
20 years ago
celestar
aa7334a3ec
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
20 years ago
Darkvater
54b7fb0203
(svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
20 years ago
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.
20 years ago
Darkvater
d99dddc704
(svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
20 years ago
Darkvater
2bf3d14dfc
(svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security"
...
- CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited.
20 years ago
Darkvater
56e7e4cf25
(svn r2299) - Fix: add more verbose output to possible hack-attempt.
...
- Btw, only 14 more commands are remaining, 88% done \o/
20 years ago
matthijs
6eb094c726
(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)
...
- Add: GetVehicleTrackdir() helper function.
- Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed.
- Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte".
- Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called.
20 years ago
truelight
508738f836
(svn r2106) -Fix: improved the network-join algoritm, it is now a bit more stable
...
-Add: added 'pause_on_join' and 'max_join_time' for MP games, where you
can auto-pause the game when a client wants to join the game. This to
avoid connection losses because of big maps (200+ trains). (with tnx to
#openttdcoop for the ideas and testing)
20 years ago
tron
b2ae5b197e
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
20 years ago
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)
20 years ago
tron
f0f85a7ef3
(svn r1803) Move debugging stuff into files of it's own
20 years ago
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
bjarni
2fd3553d78
(svn r1568) made an enum of train subtypes to make the code more readable
20 years ago
truelight
8521367373
(svn r1546) -Fix: possible buffer-overflow in network
20 years ago
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!
20 years ago
darkvater
f9b5f704b1
(svn r1518) -Fix: server issue where some company names were wrong
...
-Fix: Highscore troubles; accessing members of deleted window
20 years ago
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
20 years ago
darkvater
29b4ab04c3
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
20 years ago
tron
49584082a0
(svn r1451) Fix some of the signed/unsigned comparison warnings
20 years ago
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.
20 years ago
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'.
20 years ago
truelight
a0716c39de
(svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could talk).. 1
...
variable was still byte instead of uint16 (with a very big tnx to guru3!)
20 years ago
miham
57852f6498
(svn r1297) Language fixes in the source.. (ln-)
20 years ago
truelight
97ec7de9e6
(svn r1263) -Fix: [Network] Client-names are limited (serverside) to 25 chars
...
-Fix: You can enter some more chars in the chatbox
20 years ago
truelight
c9645885d0
(svn r1252) -Add: [Network] With 'set restart_game_date' you can set the date for in
...
which year the server must restart hisself. (0 = disabled, default value)
20 years ago
truelight
a14a78de34
(svn r1246) -Fix: [ 1090099 ] Company-messages did crash the game, because
...
company-index was sent, which should have been the client-index
20 years ago
truelight
19e3842615
(svn r1204) -Add: [Network] Added some cheaters-protection (money-cheat mostly)
20 years ago
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)
20 years ago
truelight
7460764d91
(svn r1185) -Fix: [Network] Send to team now results in correct company on the sender
20 years ago
truelight
db16262698
(svn r1174) -Fix: [Network] All strings can now be translated (no more hardcoded strings)
20 years ago
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.
20 years ago
truelight
f04d49ca17
(svn r1136) -Fix: [Network] Revision check on windows-servers is working now
20 years ago
truelight
5e28fb8f97
(svn r1131) -Add: [Network] Autoclean_companies (set it with 'set autoclean_companies on/off').
...
When enabled, empty companies (companies with no active clients) with no
password are declared bankrupt after 1 year of emptyness.
For empty companies with password, the password is removed after 3 years
of emptyness.
The delay of removing company/password can be configured via:
- 'set autoclean_protected <months>'
- 'set autoclean_unprotected <months>'
20 years ago
truelight
523ba1ff50
(svn r1127) -Fix: [Network] Protect the network against an illegal PLAYER_CTRL (in
...
which a modified client could, for example, delete a random active company)
20 years ago
truelight
015fb81810
(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)
20 years ago
darkvater
d867a845fd
(svn r1104) -Fix: nasty server crash buffer overflow problem when using release build. Big thanks to Truelight for the guidance in fixing this very annoying bug!
...
-VS.NET now treats warnings as errors too in the release build.
20 years ago
darkvater
f1b6b1711b
(svn r1098) -Fix: server without revision build doesn't care about the client's version. Also moved all revision things where it belongs (network.c)
20 years ago
truelight
29b844a408
(svn r1096) -Fix: [Network] PlayAs is now registered correctly
...
-Codewise: [Network] Cleaned some code, removed some comment, changed
some wrong comment
20 years ago