summaryrefslogtreecommitdiff
path: root/src/command.cpp
AgeCommit message (Collapse)Author
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-07-29(svn r16990) -Codechange: unify some (command) naming w.r.t. stations/waypoints.rubidium
2009-07-22(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the ↵rubidium
setting of the error message to a single place
2009-06-02(svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the ↵smatz
scenario editor
2009-05-26(svn r16438) -Fix (r16436): set 'old_company' after modifying '_current_company'smatz
2009-05-26(svn r16436) -Codechange: always execute 'spectator'/'server' commands as ↵rubidium
spectator. This to reduce the difference between dedicated and non-dedicated servers and normal clients.
2009-05-26(svn r16435) -Codechange: don't require the 'user company 0' hack for commands.rubidium
2009-05-26(svn r16429) -Change: Make the company settings behave like all others ↵yexo
settings: the default set in the main menu / config file is now really the default for a new company, and changing the value in game will no longer change the default for new companies.
2009-05-18(svn r16352) -Codechange: use PoolItem::GetIfValid() instead of ↵smatz
PoolItem::IsValidID() and PoolItem::Get()
2009-05-17(svn r16327) -Codechange: replace IsValidPoolItemID(index) by ↵smatz
PoolItem::IsValidID(index)
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-04-21(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had ↵rubidium
this ID' from 'some' strings and replace the string name with something more sensible.
2009-03-15(svn r15718) -Cleanup: apply some comment coding style on the rest of the ↵rubidium
sources too
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-08(svn r15410) -Cleanup: get rid of most of the references to the 'patches' ↵rubidium
except where it's used for backward compatability.
2009-02-07(svn r15402) -Codechange: verify _current_company didn't change when ↵smatz
executing a command
2009-02-07(svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore ↵rubidium
in a 'dedicated' server.
2009-02-04(svn r15337) -Fix: don't allow a spectating server to build stuff.rubidium
2009-02-04(svn r15335) -Change: use the patch change mechanism to change the road side ↵rubidium
too instead of a separate command.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo
2009-01-12(svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hacksmatz
2009-01-12(svn r15014) -Codechange: Add a helper function to get the needed DC_xxx ↵frosch
flags from the result of GetCommandFlags().
2009-01-08(svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus)rubidium
2009-01-08(svn r14916) -Codechange: make it possible to send CommandContainers ↵rubidium
directly to DoCommand(P).
2009-01-07(svn r14897) -Codechange: don't allow a few command flags to be sent over ↵rubidium
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(svn r14896) -Codechange: remove an unused constant and the related dead code.rubidium
2009-01-07(svn r14895) -Change: move CMD_NO_WATER from all DoCommandPs to the command ↵rubidium
table
2009-01-07(svn r14890) -Codechange: move the notest information into the command table.rubidium
2009-01-07(svn r14889) -Codechange: replace some magic numbers with constants.rubidium
2008-12-29(svn r14772) -Codechange: make the "dump log of game to reproduce" desync ↵rubidium
debug stuff a runtime configurable debug option instead of a compile time option.
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-10-14(svn r14465) -Codechange: minor code style of command.cpp.rubidium
2008-10-07(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch ↵smatz
by planetmaker)
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-15(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, ↵smatz
president and company renaming commands, too
2008-08-16(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the ↵frosch
autoreplace kernel.
2008-08-15(svn r14076) -Codechange: Merge the four start/stop commands into a single ↵frosch
CMD_START_STOP_VEHICLE.
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
2008-05-26(svn r13256) -Codechange: merge the OPTS and PATS chuncks.rubidium
-Codechange: split the diff_custom variable. -Feature: allow changing some of the diff_custom variables via the console in network games.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-27(svn r12913) -Add: ability to backup and restore a player's economic data ↵bjarni
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-07(svn r12616) -Codechange: r12591 didn't work as expected for NDS, move one ↵smatz
function back to cpp
2008-04-06(svn r12591) -Codechange: move CommandCost accessors to header file, 8kB of ↵smatz
binary size saved
2008-03-25(svn r12421) -Feature: [autoreplace] the autoreplace button in train depots ↵bjarni
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-02-28(svn r12304) -Codechange: use IsValidTile() where it should be usedglx
2008-02-09(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player ↵smatz
property to allow further fixes
2008-02-06(svn r12075) -Codechange: Remove explicit numbering on command enum, and ↵peter1138
remove blanks from command list where old commands have been removed.