smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
2009-04-21 23:40:56 +00:00
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
2009-03-15 00:32:18 +00:00
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
2009-02-09 21:20:05 +00:00
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
2009-02-09 02:57:15 +00:00
rubidium
377ce6c5bf
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
2009-02-08 12:25:13 +00:00
smatz
575e349828
(svn r15402) -Codechange: verify _current_company didn't change when executing a command
2009-02-07 18:09:30 +00:00
rubidium
d7a053578d
(svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server.
2009-02-07 12:02:13 +00:00
rubidium
b6e6be58da
(svn r15337) -Fix: don't allow a spectating server to build stuff.
2009-02-04 16:57:40 +00:00
rubidium
09fca459a7
(svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command.
2009-02-04 16:09:16 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
Yexo
db3ee34b44
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
smatz
26e5ccb60d
(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack
2009-01-12 19:49:23 +00:00
frosch
508fc29221
(svn r15014) -Codechange: Add a helper function to get the needed DC_xxx flags from the result of GetCommandFlags().
2009-01-12 15:27:39 +00:00
rubidium
c8c61e36bd
(svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)
2009-01-08 16:35:45 +00:00
rubidium
e39484e9a8
(svn r14916) -Codechange: make it possible to send CommandContainers directly to DoCommand(P).
2009-01-08 14:55:28 +00:00
rubidium
8d017f0ea1
(svn r14897) -Codechange: don't allow a few command flags to be sent over the network as it's bogus information anyway; e.g. the "do not send over network" flag as it will be set whenever the command is received from the server/client.
...
-Codechange: test earlier whether the command (send from the server) is actually valid.
2009-01-07 15:27:19 +00:00
rubidium
f5b23103d7
(svn r14896) -Codechange: remove an unused constant and the related dead code.
2009-01-07 14:58:43 +00:00
rubidium
5fcf07f388
(svn r14895) -Change: move CMD_NO_WATER from all DoCommandPs to the command table
2009-01-07 14:45:07 +00:00
rubidium
d66d36126c
(svn r14890) -Codechange: move the notest information into the command table.
2009-01-07 13:31:09 +00:00
rubidium
cb81e637b0
(svn r14889) -Codechange: replace some magic numbers with constants.
2009-01-07 13:26:48 +00:00
rubidium
3c6add5293
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
2008-12-29 21:50:25 +00:00
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
2008-12-28 14:37:19 +00:00
rubidium
0c5c199f2f
(svn r14465) -Codechange: minor code style of command.cpp.
2008-10-14 18:49:21 +00:00
smatz
1906aa2bbb
(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker)
2008-10-07 20:57:41 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
smatz
5f4ff33ce3
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
2008-09-15 22:58:41 +00:00
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
2008-08-16 14:02:20 +00:00
frosch
844a83ed58
(svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE.
2008-08-15 13:57:43 +00:00
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
2008-07-17 20:13:01 +00:00
rubidium
cd8e589fa9
(svn r13256) -Codechange: merge the OPTS and PATS chuncks.
...
-Codechange: split the diff_custom variable.
-Feature: allow changing some of the diff_custom variables via the console in network games.
2008-05-26 00:31:36 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
bjarni
757de2bdf5
(svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
...
Autoreplace uses this with the following benefits:
-Mass autoreplace (the button in the depot window) will now estimate costs correctly
-Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
Thanks to Ammler for testing this
2008-04-27 20:09:29 +00:00
smatz
42a66ef990
(svn r12616) -Codechange: r12591 didn't work as expected for NDS, move one function back to cpp
2008-04-07 20:02:36 +00:00
smatz
aaa1b0744a
(svn r12591) -Codechange: move CommandCost accessors to header file, 8kB of binary size saved
2008-04-06 14:50:37 +00:00
bjarni
06c0e5df5a
(svn r12421) -Feature: [autoreplace] the autoreplace button in train depots will now also replace wagons even if they aren't connected to a locomotive
...
fixed estimated cost in CmdDepotMassAutoReplace() (will still not estimate wagon removal profits)
Made it possible to command CmdDepotMassAutoReplace() to either replace everything or nothing (the button will still happily replace just some of the vehicles if cash premits)
2008-03-25 21:58:13 +00:00
glx
86a4d377b1
(svn r12304) -Codechange: use IsValidTile() where it should be used
2008-02-28 00:17:49 +00:00
smatz
802c949755
(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes
2008-02-09 15:07:31 +00:00
peter1138
a187d92d87
(svn r12075) -Codechange: Remove explicit numbering on command enum, and remove blanks from command list where old commands have been removed.
2008-02-06 23:08:49 +00:00
smatz
23c669fe50
(svn r12061) -Cleanup: since r12060, DC_FORCETEST is not used anymore
2008-02-04 22:44:05 +00:00
frosch
7cf4f09c26
(svn r12012) -Fix (r11795): Enable TownRatingTestMode during cost estimation with 'shift'-key.
2008-01-29 14:02:18 +00:00
smatz
9556623281
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
2008-01-16 01:18:15 +00:00
rubidium
3ca95f2a85
(svn r11839) -Codechange: move some variables from variables.h to a more logical location.
2008-01-13 21:41:24 +00:00
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
ac528411df
(svn r11818) -Codechange: split player.h into smaller pieces.
2008-01-12 14:10:35 +00:00
rubidium
04f936c2c6
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
2008-01-11 00:30:32 +00:00
glx
785572ea32
(svn r11795) -Fix [FS#1616]: take town rating into account when testing if a command can be executed.
2008-01-09 17:47:05 +00:00
rubidium
46650c54b6
(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).
2008-01-09 16:55:48 +00:00
glx
91be5d7531
(svn r11762) -Fix: compilation with DEBUG_DUMP_COMMANDS was broken
2008-01-05 21:42:34 +00:00
glx
72afdb8d34
(svn r11750) -Revert (r11749): commited too much
2008-01-03 23:54:23 +00:00
glx
42bddcf723
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
2008-01-03 23:50:58 +00:00
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
2007-12-25 11:26:07 +00:00
rubidium
a773d45885
(svn r11684) -Codechange: split gfx.h in a type and functional header.
2007-12-23 10:56:02 +00:00
rubidium
9e9cfe6e59
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
2007-12-21 21:50:46 +00:00
rubidium
433a9f3c09
(svn r11675) -Codechange: split the string types from the string functions.
2007-12-21 19:49:27 +00:00
rubidium
5b49e75453
(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h
2007-12-19 23:26:02 +00:00
rubidium
d582aea639
(svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found.
2007-12-19 20:45:46 +00:00
smatz
0b08f7370d
(svn r11657) -Fix: show better error message when trying to convert rail
...
-Codechange: merge DoConvert functions into one, make test and exec runs the same for tunnels/bridges
2007-12-17 22:29:27 +00:00
rubidium
42dbdbb7f9
(svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482.
2007-12-06 22:29:47 +00:00
rubidium
8212088c03
(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
2007-10-20 14:51:09 +00:00
rubidium
c68c83dffa
(svn r11138) -Codechange: prepare some subsystems for persistent storage for NewGRFs.
2007-09-22 12:59:43 +00:00
rubidium
a2a3a00e17
(svn r11084) -Documentation [FS#1219]: of command.*. Patch by Progman.
2007-09-10 15:21:14 +00:00
rubidium
9706c32ed6
(svn r11040) -Fix [FS#1179]: removing CMD_AUTO from some commands could remotely trigger an assertion.
2007-09-04 11:58:27 +00:00
rubidium
9695727120
(svn r11021) -Fix [FS#1175]: do not display income/expenses when they do not belong to a "valid" tile, like the money cheat/giving money.
2007-08-31 17:43:29 +00:00
rubidium
efc7fdf2fd
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +00:00
rubidium
872e74c028
(svn r10501) -Fix [FS#1015]: error dialog was sometimes shown on all clients when a command failed instead of only the client that actually did the command.
2007-07-10 20:59:41 +00:00
maedhros
4af9ca5335
(svn r10331) -Feature: Add the possibility of automatically filling in timetables based on
...
the times from the first (or subsequent) run-throughs.
2007-06-25 20:55:43 +00:00
rubidium
9c0944aa09
(svn r10258) -Codechange: as we are now using int64 all over the place, it's better to use int64 variables in the string generating too instead of packing them into two int32s.
...
-Fix: some displays of money were wrong.
2007-06-21 17:25:17 +00:00
rubidium
eb1472a82d
(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to place money in some string.
2007-06-21 14:54:51 +00:00
rubidium
f806b46cc9
(svn r10246) -Fix (r10297): some forgotten money conversions and truncation issues. Thanks to benc for providing the patch.
2007-06-21 14:32:27 +00:00
maedhros
cf0118ee63
(svn r10236) -Feature: Introduce a form of timetabling for vehicles.
2007-06-20 19:17:22 +00:00
rubidium
16ce2192e4
(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.
2007-06-19 00:05:26 +00:00
rubidium
2ee73b50b8
(svn r10208) -Codechange: replace int32 with Money where appropriate.
2007-06-18 21:44:47 +00:00
rubidium
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
rubidium
6b1cb3aaae
(svn r10071) -Feature [FS#828]: moving of orders (skidd13).
2007-06-08 18:59:29 +00:00
rubidium
c4806955e5
(svn r10033) -Feature [FS#760]: skip to the selected order in the order list when clicking on the "skip" button while pressing CTRL.
2007-06-04 19:32:45 +00:00
peter1138
2125b96387
(svn r9898) -Fix (r9874): Many...
...
- Group protection status wasn't changed via a command.
- Group renaming didn't check group owner (and in fact changed the owner,
just like renaming a sign...).
- Added owner checks to other group commands.
- Invalidate window data after the command has been completed instead of after
the command has been sent. This fixes gui issues in network play.
2007-05-22 19:48:11 +00:00
rubidium
7d4be11516
(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
2007-05-19 09:40:18 +00:00
rubidium
c53bd7404d
(svn r9855) -Fix: [FS#779] do not perform any commands on MP_VOID tiles.
2007-05-16 08:20:37 +00:00
maedhros
02e770ff2c
(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, hopefully for good this time.
2007-04-29 08:43:00 +00:00
rubidium
80c259f64f
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
maedhros
ccaaa7d33a
(svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist.
2007-04-12 13:07:15 +00:00
maedhros
afc3da5fc8
(svn r9581) -Revert (r9562): This broke as much as it fixed, so revert until a proper way of paying for refits when cloning can be found.
2007-04-10 09:01:56 +00:00
maedhros
abf88b687c
(svn r9562) -Fix: When cloning, pay for the refit costs as well.
2007-04-04 14:21:46 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
belugas
6d199fcdb7
(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-02-23 11:50:43 +00:00
rubidium
0e8f006dc1
(svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p.
2007-02-14 16:37:16 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00