From 81e6d68f95e7dea5c0d7dd105d67980d64af71e0 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 10 Apr 2006 07:15:58 +0000 Subject: (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() --- economy.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'economy.c') diff --git a/economy.c b/economy.c index 1bc1d3e93..2d4d30aad 100644 --- a/economy.c +++ b/economy.c @@ -1531,11 +1531,11 @@ static void DoAcquireCompany(Player *p) extern int GetAmountOwnedBy(Player *p, byte owner); /** Acquire shares in an opposing company. - * @param x,y unused + * @param tile unused * @param p1 player to buy the shares from * @param p2 unused */ -int32 CmdBuyShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2) +int32 CmdBuyShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { Player *p; int64 cost; @@ -1576,11 +1576,11 @@ int32 CmdBuyShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2) } /** Sell shares in an opposing company. - * @param x,y unused + * @param tile unused * @param p1 player to sell the shares from * @param p2 unused */ -int32 CmdSellShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2) +int32 CmdSellShareInCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { Player *p; int64 cost; @@ -1611,11 +1611,11 @@ int32 CmdSellShareInCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2) * When a competing company is gone bankrupt you get the chance to purchase * that company. * @todo currently this only works for AI players - * @param x,y unused + * @param tile unused * @param p1 player/company to buy up * @param p2 unused */ -int32 CmdBuyCompany(int x, int y, uint32 flags, uint32 p1, uint32 p2) +int32 CmdBuyCompany(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) { Player *p; -- cgit v1.2.3-70-g09d2