summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-10 07:15:58 +0000
committertron <tron@openttd.org>2006-04-10 07:15:58 +0000
commit35e93e451fbf0b88401d9af137b2423fefe1dc58 (patch)
treef8613338e934555520fd9b45b411e8a946c5be7a /engine.c
parentb0b5641639e042399e0ee3886740999678bc63ea (diff)
downloadopenttd-35e93e451fbf0b88401d9af137b2423fefe1dc58.tar.xz
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine.c b/engine.c
index 17a7f1088..78f895bb1 100644
--- a/engine.c
+++ b/engine.c
@@ -334,11 +334,11 @@ void EnginesDailyLoop(void)
/** Accept an engine prototype. XXX - it is possible that the top-player
* changes while you are waiting to accept the offer? Then it becomes invalid
- * @param x,y unused
+ * @param tile unused
* @param p1 engine-prototype offered
* @param p2 unused
*/
-int32 CmdWantEnginePreview(int x, int y, uint32 flags, uint32 p1, uint32 p2)
+int32 CmdWantEnginePreview(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
{
Engine *e;
@@ -445,11 +445,11 @@ void EnginesMonthlyLoop(void)
}
/** Rename an engine.
- * @param x,y unused
+ * @param tile unused
* @param p1 engine ID to rename
* @param p2 unused
*/
-int32 CmdRenameEngine(int x, int y, uint32 flags, uint32 p1, uint32 p2)
+int32 CmdRenameEngine(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
{
StringID str;