command.c
Thu, 05 Jan 2006 21:50:09 +0000 tron (svn r3368) Fix the same type of off-by-one error when checking, if the passed coordinate is on the map, like in r3357, but this time in DoCommandP - *cough* code duplication *cough*
Thu, 05 Jan 2006 21:35:54 +0000 tron (svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command.
Fri, 30 Dec 2005 14:28:32 +0000 tron (svn r3357) Fix an off-by-one error in checking if a coordinate passed to a command is on the map
Sun, 18 Dec 2005 22:48:45 +0000 Darkvater (svn r3319) - Fix (regression): "Unnamed Competitors". A result of revision r3224 which allowed AI's for multiplayer. Old AI's didn't function correctly anymore. The update of last-built tile is moved back, but to a slightly different place so it is only executed when the command is actually successfully executed. This code shouldn't be neccessary, but alas, the old AI doesn't use DoCommandDP() functions.
Sun, 18 Dec 2005 12:10:46 +0000 tron (svn r3313) Remove GPMI related changes from trunk
Wed, 14 Dec 2005 14:38:23 +0000 truelight (svn r3304) -Add: allow AI-events to see the UID of the command
Tue, 13 Dec 2005 21:21:57 +0000 Darkvater (svn r3294) - Fix: use INVALID_STRING_ID instead of -1.
Mon, 05 Dec 2005 12:27:58 +0000 truelight (svn r3260) -Add: add events for AIs to check if a command execution failed or succeeded
Mon, 21 Nov 2005 14:28:31 +0000 truelight (svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
Tue, 15 Nov 2005 09:47:25 +0000 tron (svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing
Wed, 14 Sep 2005 18:03:38 +0000 Darkvater (svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone
Sun, 07 Aug 2005 10:03:14 +0000 tron (svn r2828) Only command.c needs to know about _docommand_recursive, so make it static. Tell me if there's a problem, because i removed it from network_server.c, but afaict it should be ok
Sun, 31 Jul 2005 13:08:08 +0000 bjarni (svn r2764) -Feature: Clone vehicles
Tue, 26 Jul 2005 19:34:03 +0000 tron (svn r2720) Remove unused declarations and definitions
Sun, 24 Jul 2005 14:12:37 +0000 tron (svn r2701) Insert Id tags into all source files
Fri, 22 Jul 2005 07:02:20 +0000 tron (svn r2673) Include functions.h directly, not globally via openttd.h
Thu, 21 Jul 2005 22:15:02 +0000 tron (svn r2669) Shuffle some more stuff around to reduce dependencies
Sat, 25 Jun 2005 06:15:43 +0000 tron (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
Tue, 21 Jun 2005 16:28:17 +0000 celestar (svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Mon, 30 May 2005 14:45:36 +0000 Darkvater (svn r2383) - Fix: Monkey-testing turned up some command crashes.
Tue, 17 May 2005 20:52:52 +0000 Darkvater (svn r2343) - Fix (regression): dedicated server caused desyncs with its commands, because the player sent over the network is OWNER_SPECTATOR as well, which on clients cannot execute anything. So *hack*hack* it into temporarily player 0.
Tue, 17 May 2005 18:22:59 +0000 Darkvater (svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
Sun, 15 May 2005 18:50:55 +0000 tron (svn r2324) Introduce _cmd_text for passing strings with a command instead of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
Sat, 14 May 2005 19:25:18 +0000 Darkvater (svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security"
Sat, 14 May 2005 12:36:16 +0000 Darkvater (svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
Thu, 12 May 2005 23:46:01 +0000 Darkvater (svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
Thu, 12 May 2005 00:18:30 +0000 Darkvater (svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
Wed, 11 May 2005 00:00:27 +0000 Darkvater (svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :)
Mon, 09 May 2005 22:33:00 +0000 Darkvater (svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Mon, 09 May 2005 16:37:40 +0000 Darkvater (svn r2286) - CodeChange: paramcheck the next batch of commands.
Sat, 07 May 2005 10:26:45 +0000 Darkvater (svn r2280) - Fix: Check if the passed tile to DoCommand is within the current mapsize
Mon, 25 Apr 2005 13:52:59 +0000 tron (svn r2232) Remove unused commands
Fri, 15 Apr 2005 21:37:56 +0000 Darkvater (svn r2206) - Regression Fix: slight typo of res2 into res, this also fixes recent bug "[ 1183396 ] Train can't find depot, it gives money in Multiplayer"
Fri, 15 Apr 2005 20:23:54 +0000 Darkvater (svn r2205) - Fixup of revision 2200, not twice CMD_REMOVE_LONG_ROAD :p. Thanks TrueLight.
Thu, 14 Apr 2005 22:07:39 +0000 Darkvater (svn r2200) - Fix [ 1179892 ] click & drag removal of road assertion fail. Add CMD_REMOVE_LONG_ROAD to the 'notest' section as it might have difficulties with town ratings, etc. Read the comment for more info (mgasterix)
Thu, 14 Apr 2005 11:17:36 +0000 tron (svn r2195) Add CmdFailed() as the One True Way(tm) to check if a command failed.
Sat, 02 Apr 2005 15:59:07 +0000 pasky (svn r2127) Get rid again of the CmdSetNewMapSize(), which was agreed to be just useless clutter. (Perhaps we should get rid of CmdSetNewLandscapeType() too, but I won't take responsibility for that. ;-)
Sat, 02 Apr 2005 15:03:48 +0000 pasky (svn r2125) - Feature: In the intro dialog, show a map size selector below the landscape type selector.
Fri, 04 Feb 2005 17:14:36 +0000 tron (svn r1791) Remove the remnants of CMD_DESTROY_INDUSTRY, which was removed a long time ago
Sun, 30 Jan 2005 15:57:38 +0000 darkvater (svn r1731) - Fix: [ 1106930 ] BugFix: placing signals with 2x1 drags workaround is completely rewritten. Also features checks for hacked/modified clients. Thanks a lot Hackykid!
Sat, 29 Jan 2005 19:41:44 +0000 celestar (svn r1721) -Feature: It is now possible to build multiple road stations (up to 8) on
Sat, 22 Jan 2005 20:23:18 +0000 tron (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Sun, 09 Jan 2005 21:25:44 +0000 tron (svn r1451) Fix some of the signed/unsigned comparison warnings
Fri, 07 Jan 2005 17:02:43 +0000 tron (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Wed, 05 Jan 2005 14:39:48 +0000 truelight (svn r1389) -Add: [Network] Added packet protection. No longer a client or server
Tue, 04 Jan 2005 17:11:03 +0000 darkvater (svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.
Sun, 02 Jan 2005 17:23:04 +0000 bjarni (svn r1323) Adding autoreplace feature
Wed, 29 Dec 2004 13:13:29 +0000 miham (svn r1297) Language fixes in the source.. (ln-)
Mon, 27 Dec 2004 18:18:44 +0000 truelight (svn r1283) -Add: AutoRenew is now a client-side patch instead of a game-side patch
Wed, 15 Dec 2004 22:18:54 +0000 tron (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
Tue, 14 Dec 2004 18:13:02 +0000 truelight (svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error
Sun, 12 Dec 2004 15:43:55 +0000 truelight (svn r1025) -Fix: [Network] [ 1083687 ] Sending to depot caused desync because the
Sat, 04 Dec 2004 17:54:56 +0000 truelight (svn r942) -Merged branch/network back into the trunk
Thu, 02 Dec 2004 22:53:07 +0000 tron (svn r901) Small step in the process to clean up the DPARAM mess:
Thu, 25 Nov 2004 10:47:30 +0000 tron (svn r815) Include strings.h only in the files which need it.
Sat, 20 Nov 2004 02:25:31 +0000 pasky (svn r697) Fix the town road removal crash _still_ present there.
Sun, 14 Nov 2004 13:07:07 +0000 darkvater (svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
Sun, 12 Sep 2004 17:36:29 +0000 truelight (svn r216) -Fix: paused network game now disallows all commands (instead of doing
Sun, 12 Sep 2004 15:29:37 +0000 darkvater (svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de)