Commit Graph

122 Commits (777123c228e163c976303be0588093732816f8ca)

Author SHA1 Message Date
alberth 777123c228 (svn r19414) -Doc: Several doxygen additions and corrections. 14 years ago
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
alberth 7dcc414000 (svn r19130) -Codechange: Use references and inlining in CommandCost. 15 years ago
alberth e8d40d6a19 (svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this. 15 years ago
frosch 5f4f562d53 (svn r18975) -Cleanup: CMD_REMOVE_ROAD is unused. 15 years ago
frosch cbbe311cea (svn r18974) -Fix [FS#3578]: CMD_BUILD_ROAD missed CMD_AUTO. Also do not access tiles anymore after clearing them; that fails either in test or exec run. 15 years ago
rubidium 4d93b704d9 (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium 351eb4665c (svn r18788) -Codechange: replace macro as without macro it's shorter than with the macro. 15 years ago
rubidium 2365819312 (svn r18785) -Codechange: rewrite/rework DoCommandP in order to simplify it, reduce duplication and remove gotos. 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 3e5a87a52c (svn r18783) -Codechange: make CheckCompanyHasMoney set an error on the CommandCost it tests when you don't have enough money instead of setting a global variable. 15 years ago
rubidium 2b97f38cd1 (svn r18781) -Codechange: pass the CommandCost to the callback instead of 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.
15 years ago
rubidium a951c505bf (svn r18292) -Codechange: add a command to set the start date of a timetable. Based on work by PhilSophus. 15 years ago
smatz f0c64208cf (svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others) 15 years ago
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
smatz 93d275f1be (svn r17608) -Codechange: use CmdFoundTown when founding 'Random town' too 15 years ago
smatz 0a6e336484 (svn r17607) -Fix: when command didn't fail in test run and failed in exec run, error message wasn't set. Affects only few commands 15 years ago
smatz 15511678e3 (svn r17603) -Codechange: since now, towns are 'founded' instead of 'built' 15 years ago
rubidium 04d5b67eb6 (svn r17567) -Fix: some doxygen warnings 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 37e6f6a003 (svn r16990) -Codechange: unify some (command) naming w.r.t. stations/waypoints. 15 years ago
rubidium b04ba7dcea (svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place 15 years ago
smatz 78a25e84e9 (svn r16504) -Fix [FS#2948](r16435): one couldn't build anything in the scenario editor 15 years ago
smatz aa62ec0a1f (svn r16438) -Fix (r16436): set 'old_company' after modifying '_current_company' 15 years ago
rubidium 5b92584c40 (svn r16436) -Codechange: always execute 'spectator'/'server' commands as spectator. This to reduce the difference between dedicated and non-dedicated servers and normal clients. 15 years ago
rubidium fd9bbdc54a (svn r16435) -Codechange: don't require the 'user company 0' hack for commands. 15 years ago
yexo a10e5f707a (svn r16429) -Change: Make the company settings behave like all others 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. 15 years ago
smatz 8808f3beea (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz 6221d74644 (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
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. 15 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium d846eef0b6 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
smatz 575e349828 (svn r15402) -Codechange: verify _current_company didn't change when executing a command 16 years ago
rubidium d7a053578d (svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server. 16 years ago
rubidium b6e6be58da (svn r15337) -Fix: don't allow a spectating server to build stuff. 16 years ago
rubidium 09fca459a7 (svn r15335) -Change: use the patch change mechanism to change the road side too instead of a separate command. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
Yexo db3ee34b44 (svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map. 16 years ago
smatz 26e5ccb60d (svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack 16 years ago
frosch 508fc29221 (svn r15014) -Codechange: Add a helper function to get the needed DC_xxx flags from the result of GetCommandFlags(). 16 years ago
rubidium c8c61e36bd (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 16 years ago
rubidium e39484e9a8 (svn r14916) -Codechange: make it possible to send CommandContainers directly to DoCommand(P). 16 years ago
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.
16 years ago
rubidium f5b23103d7 (svn r14896) -Codechange: remove an unused constant and the related dead code. 16 years ago
rubidium 5fcf07f388 (svn r14895) -Change: move CMD_NO_WATER from all DoCommandPs to the command table 16 years ago
rubidium d66d36126c (svn r14890) -Codechange: move the notest information into the command table. 16 years ago