frosch
d9b4413bc9
Codechange: rename sound ids to make more sense. ( #8701 )
4 years ago
glx22
6b8ad5a9b1
Change: Apply some consistency to singleplayer related comments
4 years ago
Patric Stout
62cdadb582
Change: move "give money" from client-list to company window
...
This is a much better location for this button, as you send
money from one company to another company, not from player
to player.
This is based on work done by JGRPP in:
f820543391
and surrounding commits, which took the work from estys:
https://www.tt-forums.net/viewtopic.php?p=1183311#p1183311
We did modify it to fix several bugs and clean up the code while
here anyway.
The callback was removed, as it meant a modified client could
prevent anyone from seeing money was transfered. The message
is now generated in the command itself, making that impossible.
4 years ago
glx
41232f18c1
Codechange: Replace network related FOR_ALL with range-based for loops
5 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
6 years ago
Patric Stout
e3c639a09f
Remove: ENABLE_NETWORK switch
...
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.
Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.
A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.
With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.
All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
6 years ago
frosch
9aa33862a7
(svn r27571) -Codechange: Consistent naming for command callbacks which play a sound effect.
8 years ago
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
11 years ago
rubidium
7adc453473
(svn r25770) -Fix [Admin]: the frame of a command packet wasn't set for the packets that were sent via de admin interface
11 years ago
michi_cc
37e321044a
(svn r24139) -Add: Creating a new vehicle group by drag and drop. (Based on patch by Juanjo)
13 years ago
rubidium
b888027ddd
(svn r23843) -Fix: minor issue with replaying ;)
13 years ago
rubidium
ede8c86f77
(svn r23821) -Fix-ish: when replaying a command log, ignore the command limit
13 years ago
truebrain
12aa5b6a58
(svn r23604) -Add: initial support for GameScripts
13 years ago
truebrain
5cda1d7c90
(svn r23603) -Add: support for control commands in strings, in both network and safe/load (Rubidium)
13 years ago
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
13 years ago
rubidium
4836a6e50e
(svn r22845) -Fix [FS#4745]: perform stricter checks on some commands (monoid)
13 years ago
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
14 years ago
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.
14 years ago
rubidium
d594a219c6
(svn r22121) -Fix: In case of high frame_freq one could get commands executed after a new network game was started
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
rubidium
6546561360
(svn r21668) -Feature: command logging using the admin interface (dihedral)
14 years ago
rubidium
0c23b0b3a4
(svn r21429) -Fix [FS#3771]: the server didn't check for the paused state when allowing to execute commands
14 years ago
rubidium
b6c2216749
(svn r21358) -Codechange: make some network function names conform to coding style
14 years ago
rubidium
f24c91c487
(svn r21030) -Codechange: move ClientStatus into the network server socket class
14 years ago
rubidium
9858d699a3
(svn r20935) -Codechange: only let the server side use a pool of connected sockets
14 years ago
rubidium
515edee17c
(svn r20925) -Codechange: make the client send commands have a slightly more sensible name
14 years ago
rubidium
a4c6d07edc
(svn r20553) -Feature: allow rate limiting of incoming commands
14 years ago
rubidium
b594990071
(svn r20549) -Codechange: centralise the handling of the incoming commands (from clients and the server)
14 years ago
rubidium
e8e22c99fd
(svn r20548) -Codechange: rename some variables giving them slightly more meaningful names
14 years ago
rubidium
1c3d42598e
(svn r20510) -Codechange: unify packet queue handling and make insertion O(1) instead of O(n)
14 years ago
alberth
7aabb887d4
(svn r20269) -Codechange: Use IsLocalCompany() everywhere, document the function and two company globals.
14 years ago
rubidium
ed35d62e70
(svn r20035) -Fix [FS#3909]: under some circumstances you could get into an infinite loop
14 years ago
frosch
9e53f1e004
(svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation.
15 years ago
smatz
e3c89df398
(svn r19714) -Feature: ctrl+click on a vehicle to start/stop it
15 years ago
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).
15 years ago
alberth
db1c6b7a81
(svn r19423) -Codechange: Move error message reporting of industry build in SE to a callback.
15 years ago
terkhen
524a10b375
(svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop.
15 years ago
rubidium
21bd2722cd
(svn r19081) -Codechange: make it possible to disable compilation of the AI+Squirrel
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
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.
15 years ago
rubidium
6a047d2316
(svn r18782) -Codechange: move the content of callback_table.cpp to network_command.cpp; it's only ever used there.
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
f5316c5cbd
(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
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
e39484e9a8
(svn r14916) -Codechange: make it possible to send CommandContainers directly to DoCommand(P).
16 years ago
rubidium
427e2d30c5
(svn r14915) -Codechange: unify the receiving and sending of commands, and thus unifying most of the validity checking too.
16 years ago
belugas
38bd396f90
(svn r14914) -Documentation: Correct doxygen comment for file name. <nitpicked> by Swallow
16 years ago
rubidium
d4b6cc997d
(svn r14910) -Codechange: merge the command queue handling into a single location
16 years ago