Commit Graph

160 Commits (3ea7690ae7f0dfd70f334bd39501ec96819f9cbd)

Author SHA1 Message Date
rubidium 1cd3dac854 (svn r23215) -Codechange: stricter type safety for CommandFlags 13 years ago
rubidium de980ef0f9 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
yexo 77e9a482be (svn r22996) -Fix: make sure temporary storage is cleared before test and exec runs for DoCommands so NewGRF callbacks can't change the result between the runs 13 years ago
rubidium 727580274b (svn r22785) -Codechange: rename IsGeneratingWorld to HasModalProgress 13 years ago
frosch ef5b18ab3b (svn r22629) -Fix [FS#4599]: Remove all usages of the ErrorRefStack. It was continuously overwritten by e.g. industry prospection without closing the old error window; also StopTextRefStackUsage() was not called for errors returned by commands (which caused FS#4599). Now return in the CommandCost result whether the textref stack needs to be used, and store a copy of the stack values in the error window just like for the normal string parameters. 13 years ago
rubidium aed86fec3f (svn r22016) -Fix [FS#4479]: when paused and having the allowed actions while paused setting on "no actions" cheating money would fail 14 years ago
rubidium a90d7ffdee (svn r22015) -Codechange: move yet another pair of methods from functions.h 14 years ago
rubidium 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium 97623b6fc1 (svn r21430) -Feature [FS#1521]: building while paused always works in the scenario editor 14 years ago
rubidium 434abd6dea (svn r21428) -Fix [FS#4021]: vehicles could be built while the game it paused. Now you can enable or disable that with a setting 14 years ago
rubidium 78054d7ad5 (svn r21427) -Add: helper function to determine whether a command may be executed 14 years ago
rubidium 8f3607bbc7 (svn r21425) -Codechange: add "command types" to all commands 14 years ago
rubidium c7066d00af (svn r21358) -Codechange: make some network function names conform to coding style 14 years ago
alberth 9f3845227e (svn r21273) -Codechange: Return values should start at the same line. 14 years ago
rubidium db3a6485d7 (svn r20768) -Codechange: unify send-to-depot commands 14 years ago
yexo 6c336d9926 (svn r20746) -Fix: set CMD_NO_WATER flag for CmdBuildBridge 14 years ago
yexo 0d040f03e6 (svn r20729) -Fix [FS#4107]: assert when overbuilding object 14 years ago
rubidium 360d6daf34 (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 27e45d96a4 (svn r20547) -Change: the way order backups are performed. Now restoring an order doesn't require up to 765 commands. 14 years ago
rubidium db8af95d58 (svn r20546) -Fix (r20542): starting AIs shouldn't cause an assertion to trigger 14 years ago
rubidium 8a9929d702 (svn r20542) -Codechange: generalise the setting of "p2" to the ClientID. 14 years ago
rubidium 982df3e96b (svn r20536) -Codechange: unify the refitting of vehicles 14 years ago
rubidium c57a5b735a (svn r20532) -Codechange: unify selling of vehicles a bit 14 years ago
rubidium 253080ad64 (svn r20531) -Codechange: unify quite a bit of the vehicle building commands 14 years ago
rubidium 1f2276b785 (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. 14 years ago
rubidium 7fe695dc28 (svn r20328) -Codechange: unify the unmovable related commands and make building lighthouses/transmitters actually happen via a command 14 years ago
terkhen ec6cba6b92 (svn r20323) -Codechange: Move Delete town code to a command. 14 years ago
terkhen 014771848d (svn r20322) -Codechange: Move Expand town code to a command. 14 years ago
rubidium c28f639c40 (svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account 14 years ago
frosch 65d058723e (svn r19933) -Fix [FS#3804]: Keep _current_company and _local_company in sync during GUI operation. 14 years ago
rubidium 63865a5ed7 (svn r19801) -Add [FS#3691]: custom naming of depots. Based on work by sbr 14 years ago
smatz d053f0dcf3 (svn r19663) -Fix: in rare cases, update of signals could be missed 14 years ago
rubidium ea7aececf8 (svn r19602) -Codechange: add the name of the command to the desync logs 14 years ago
rubidium ff6ec70007 (svn r19601) -Fix: make the desync replay parse the "whole" string instead of everything up to the first space; make it log the sync state too 14 years ago
rubidium ff5dfd9c7e (svn r19589) -Change: add some more useful information to the desync log and unify the formatting 14 years ago
alberth 72d62fd6fc (svn r19494) -Codechange: Remove _error_message. 14 years ago
alberth efddc16fc3 (svn r19419) -Codechange: Use failed CommandCost object to retrieve message instead of _error_message. 14 years ago
alberth cb10444807 (svn r19415) -Codechange: Forward CommandCost with an error back to the caller. 14 years ago
alberth 19dff3a6b2 (svn r19414) -Doc: Several doxygen additions and corrections. 14 years ago
smatz 5504b1105e (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
alberth 9e302e5fa1 (svn r19130) -Codechange: Use references and inlining in CommandCost. 15 years ago
alberth a2af272a52 (svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this. 15 years ago
frosch 6ade772f01 (svn r18975) -Cleanup: CMD_REMOVE_ROAD is unused. 15 years ago
frosch 15f0fcf3c4 (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 f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
rubidium dc94ed8d02 (svn r18788) -Codechange: replace macro as without macro it's shorter than with the macro. 15 years ago
rubidium 8343a34805 (svn r18785) -Codechange: rewrite/rework DoCommandP in order to simplify it, reduce duplication and remove gotos. 15 years ago
rubidium 7f1bf45c03 (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 9313532ddd (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 26b203e3ff (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