summaryrefslogtreecommitdiff
path: root/src/command.cpp
AgeCommit message (Collapse)Author
2010-03-20(svn r19494) -Codechange: Remove _error_message.alberth
2010-03-14(svn r19419) -Codechange: Use failed CommandCost object to retrieve message ↵alberth
instead of _error_message.
2010-03-14(svn r19415) -Codechange: Forward CommandCost with an error back to the caller.alberth
2010-03-14(svn r19414) -Doc: Several doxygen additions and corrections.alberth
2010-02-24(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bitsmatz
2010-02-14(svn r19130) -Codechange: Use references and inlining in CommandCost.alberth
2010-02-14(svn r19128) -Codechange: CommandCost cost methods return void instead of a ↵alberth
copy of *this.
2010-01-31(svn r18975) -Cleanup: CMD_REMOVE_ROAD is unused.frosch
2010-01-31(svn r18974) -Fix [FS#3578]: CMD_BUILD_ROAD missed CMD_AUTO. Also do not ↵frosch
access tiles anymore after clearing them; that fails either in test or exec run.
2010-01-18(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) ↵rubidium
wrapper functions
2010-01-11(svn r18788) -Codechange: replace macro as without macro it's shorter than ↵rubidium
with the macro.
2010-01-11(svn r18785) -Codechange: rewrite/rework DoCommandP in order to simplify it, ↵rubidium
reduce duplication and remove gotos.
2010-01-11(svn r18784) -Codechange: make NetworkSend_Command accept a company instead ↵rubidium
of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company.
2010-01-11(svn r18783) -Codechange: make CheckCompanyHasMoney set an error on the ↵rubidium
CommandCost it tests when you don't have enough money instead of setting a global variable.
2010-01-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
whether it succeeded or not. -Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2009-11-25(svn r18292) -Codechange: add a command to set the start date of a ↵rubidium
timetable. Based on work by PhilSophus.
2009-11-24(svn r18281) -Feature: founding towns in-game (based on work by Belugas, ↵smatz
TheJosh, GeekToo, Terkhen and others)
2009-10-31(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string ↵alberth
before the details string. Gentlemen, swap your string parameters.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-09-21(svn r17608) -Codechange: use CmdFoundTown when founding 'Random town' toosmatz
2009-09-21(svn r17607) -Fix: when command didn't fail in test run and failed in exec ↵smatz
run, error message wasn't set. Affects only few commands
2009-09-21(svn r17603) -Codechange: since now, towns are 'founded' instead of 'built'smatz
2009-09-18(svn r17567) -Fix: some doxygen warningsrubidium
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.